DeviceParser 类

定义

public class DeviceParser
继承
java.lang.Object
DeviceParser

构造函数

DeviceParser()

Empty constructor.

DeviceParser(String json)

Constructor for a DeviceParser object that is built from the provided JSON.

方法

getAuthenticationParser()

Getter for AuthenticationParser.

getCapabilities()

Getter for Capabilities.

getCloudToDeviceMessageCount()

Getter for CloudToDeviceMessageCount.

getConnectionState()

Getter for ConnectionState.

getConnectionStateUpdatedTime()

Getter for ConnectionStateUpdatedTime.

getDeviceId()

Getter for DeviceId.

geteTag()

Getter for eTag.

getGenerationId()

Getter for GenerationId.

getLastActivityTime()

Getter for LastActivityTime.

getManagedBy()

Getter for ManagedBy.

getModuleId()

Getter for ModuleId.

getParentScopes()

Get the parent scopes for this device.

getScope()

Get the device scope for this device.

getStatus()

Getter for Status.

getStatusReason()

Getter for StatusReason.

getStatusUpdatedTime()

Getter for StatusUpdatedTime.

setAuthenticationParser(AuthenticationParser authenticationParser)

Setter for AuthenticationParser.

setCapabilities(DeviceCapabilitiesParser capabilities)

Setter for Capabilities.

setCloudToDeviceMessageCount(long cloudToDeviceMessageCount)

Setter for CloudToDeviceMessageCount.

setConnectionState(String connectionState)

Setter for ConnectionState.

setConnectionStateUpdatedTime(Date connectionStateUpdatedTime)

Setter for ConnectionStateUpdatedTime.

setDeviceId(String deviceId)

Setter for DeviceId.

seteTag(String eTag)

Setter for eTag.

setGenerationId(String generationId)

Setter for GenerationId.

setLastActivityTime(Date lastActivityTime)

Setter for LastActivityTime.

setManagedBy(String managedBy)

Setter for ManagedBy.

setModuleId(String moduleId)

Setter for ModuleId.

setParentScopes(List<String> parentScopes)

Sets the parent scopes for this device.

setScope(String scope)

Set the device scope for this device.

setStatus(String status)

Setter for Status.

setStatusReason(String statusReason)

Setter for StatusReason.

setStatusUpdatedTime(Date statusUpdatedTime)

Setter for StatusUpdatedTime.

toJson()

Converts this into JSON format and returns it.

适用于