public class FirmwaresApi
extends java.lang.Object
Constructor and Description |
---|
FirmwaresApi(FirmwaresService firmwaresService)
Constructs Firmwares API endpoint initialized with corresponding service class.
|
Modifier and Type | Method and Description |
---|---|
FirmwaresRequestExecutor |
fetch()
Provides executor that can be used to obtain firmwares.
|
FirmwareRequestExecutor |
fetch(java.lang.String name)
Provides executor that can be used to obtain single firmware by name.
|
FirmwareFileRequestExecutor |
fileOf(java.lang.String name,
Model model)
Provides executor responsible for loading firmware file.
|
FirmwareFileFromUrlRequestExecutor |
fileOfUrl(java.lang.String url)
Provides executor responsible for loading firmware file from url.
|
ScheduleFirmwareUpdateRequestExecutor |
scheduleUpdate()
Provides executor that can be used to schedule firmware update.
|
UnscheduleFirmwareUpdateRequestExecutor |
unscheduleUpdate()
Provides executor that can be used to unschedule firmware update.
|
public FirmwaresApi(FirmwaresService firmwaresService)
firmwaresService
- the firmwares API service.public FirmwareRequestExecutor fetch(java.lang.String name)
name
- the firmware's name.public FirmwaresRequestExecutor fetch()
public FirmwareFileRequestExecutor fileOf(java.lang.String name, Model model)
name
- the firmware's name.model
- device modelpublic FirmwareFileFromUrlRequestExecutor fileOfUrl(java.lang.String url)
url
- the urlpublic ScheduleFirmwareUpdateRequestExecutor scheduleUpdate()
public UnscheduleFirmwareUpdateRequestExecutor unscheduleUpdate()