class WarningStatusItem
class WarningStatusItem implements Comparable <WarningStatusItem >
Package: dji.common.logics.warningstatuslogic
Description:
This class wraps the required elements of the status into one WarningStatusItem.
Class Members:
enum WarningLevel
Package: dji.common.logics.warningstatuslogic
Description:
The warning level of the status
Enum Members:
NONEThe status has an undetermined warning level. OFFLINEThe status is offline. GOODThe status is good. WARNINGThe status is a warning. ERRORThe status is an error.
Class Members:
method isUrgentMessage
boolean isUrgentMessage ()
Package: dji.common.logics.warningstatuslogic
Description:
Get the urgency of the message.
Return:
boolean true
if message is urgent, false
otherwise.
method getWarningLevel
WarningLevel getWarningLevel ()
Package: dji.common.logics.warningstatuslogic
Description:
Get the warning level of the message.
Return:
WarningLevel WarningLevel type of the warning level.
method getMessage
Package: dji.common.logics.warningstatuslogic
Description:
Get the message of the warning status item.
Return:
String String message for the WarningStatusItem.
method getDefaultItem
static WarningStatusItem getDefaultItem ()
Package: dji.common.logics.warningstatuslogic
Description:
Get a default warning status item with - Warning level: WarningLevel.OFFLINE - urgentMessage: false - message: "" (Empty string) This can be used for initialization.
Return:
method getTestItem
static WarningStatusItem getTestItem ()
Package: dji.common.logics.warningstatuslogic
Description:
Get a test warning status item with - Warning level: WarningLevel.ERROR - urgentMessage: true - message: "Test Warning Status Logic Item" This can be used for unit and integration testing as required.
Return: