action

package
v0.0.0-...-e633676 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RingStart             = "ringStart"
	SendSensorAgent       = "sendSensorAgent"
	RingStop              = "ringStop"
	OpenURL               = "openUrl"
	LockDevice            = "lockDevice"
	WakeUpDevice          = "wakeUpDevice"
	SwitchContainer       = "switchContainer"
	StartApp              = "startApp"
	RemoveModeApplication = "removeModeApplication"
	RemoveNodeSensor      = "removeNodeSensor"
	UnLockDevice          = "unLockDevice"
	Wipe                  = "wipe"
	Reboot                = "reboot"
	TakeScreenShot        = "takeScreenShot"
	SendMessage           = "sendMessage"
	LogOff                = "logOff"
	PushDROM              = "PUSH_CMD_DROM"
	SendProductProfile    = "sendProductProfile"
	GetCurrentStatus      = "getCurrentStatus"
)

These constants help to identify future types of action messages

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct{}

Action is

func (Action) GetActionStatus

func (a Action) GetActionStatus(setDeviceCode string, setControlType string, setSize int, visualFlag bool) []byte

GetActionStatus is

type ResponseActionMessageJSON

type ResponseActionMessageJSON struct {
	Links []struct {
		Rel  string `json:"rel"`
		Href string `json:"href"`
	} `json:"links"`
	Content []struct {
		Code               string        `json:"code"`
		DeviceID           string        `json:"deviceId"`
		DeviceSerial       string        `json:"deviceSerial"`
		Command            string        `json:"command"`
		DeviceCode         string        `json:"deviceCode"`
		Parameters         interface{}   `json:"parameters"`
		Label              interface{}   `json:"label"`
		ResponseID         string        `json:"responseId"`
		StartDate          interface{}   `json:"startDate"`
		EndDate            interface{}   `json:"endDate"`
		SentStatus         bool          `json:"sentStatus"`
		ErrorMessage       interface{}   `json:"errorMessage"`
		CreatedBy          string        `json:"createdBy"`
		UserMail           string        `json:"userMail"`
		Links              []interface{} `json:"links"`
		SendToDeviceStatus struct {
			Status   interface{} `json:"status"`
			TryCount interface{} `json:"tryCount"`
			Body     interface{} `json:"body"`
			SentDate time.Time   `json:"sentDate"`
		} `json:"sendToDeviceStatus"`
		DeliveryFromDeviceStatus interface{} `json:"deliveryFromDeviceStatus"`
		ExecutionInDeviceStatus  interface{} `json:"executionInDeviceStatus"`
		SentDate                 time.Time   `json:"sentDate"`
	} `json:"content"`
	Page struct {
		Size          int `json:"size"`
		TotalElements int `json:"totalElements"`
		TotalPages    int `json:"totalPages"`
		Number        int `json:"number"`
	} `json:"page"`
}

ResponseActionMessageJSON is the JSON template created to use the action message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL