public class ApplySecureConfigRequestExecutor extends RequestExecutor<Configs>
DevicesApi
. Use this class if you want to apply
secure configs through fluent API in chained fashion. Example of use:
IKontaktCloud kontaktCloud = KontaktCloud.newInstance();
// define secure configs
kontaktCloud.devices().applySecureConfigs(secureConfigs).execute();
Note that every config object passed to applySecureConfigs
method should contain
non-null unique ID and secure response with timestamp. Otherwise an exception will be thrown at runtime.Constructor and Description |
---|
ApplySecureConfigRequestExecutor(DevicesService devicesService,
Config... configs)
Constructs request executor initialized with corresponding service class and configs to apply.
|
ApplySecureConfigRequestExecutor(DevicesService devicesService,
java.util.List<Config> configs)
Constructs request executor initialized with corresponding service class and configs to apply.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.String> |
params()
Composes the request's parameters in map.
|
protected retrofit2.Call<Configs> |
prepareCall()
Prepares a request to execute.
|
execute, execute
public ApplySecureConfigRequestExecutor(DevicesService devicesService, Config... configs)
devicesService
- the devices API service.configs
- secure configs to apply.public ApplySecureConfigRequestExecutor(DevicesService devicesService, java.util.List<Config> configs)
devicesService
- the devices API service.configs
- secure configs to apply.protected retrofit2.Call<Configs> prepareCall()
prepareCall
in class RequestExecutor<Configs>
protected java.util.Map<java.lang.String,java.lang.String> params()
params
in class RequestExecutor<Configs>