com.ibm.wiotp.sdk.devicemgmt

Class DeviceMetadata



  • public class DeviceMetadata
    extends Resource

    This class represents the metadata information of a device.

    • Constructor Detail

      • DeviceMetadata

        public DeviceMetadata(com.google.gson.JsonObject metadata)
    • Method Detail

      • setMetadata

        public void setMetadata(com.google.gson.JsonObject metadata)
        Set the metadata to new value
        Parameters:
        metadata - new metadata to be set
      • toJsonObject

        public com.google.gson.JsonElement toJsonObject()
        Returns the value in Json Format
        Specified by:
        toJsonObject in class Resource
      • getMetadata

        public com.google.gson.JsonObject getMetadata()
        Returns the value
        Returns:
        JsonObject containing the metadata
      • update

        public int update(com.google.gson.JsonElement json)
        Updates the value of this resource with the given Json value
        Specified by:
        update in class Resource
        Returns:
        return the status of the update
      • update

        public int update(com.google.gson.JsonElement json,
                          boolean fireEvent)
        Updates the value of this resource with the given Json value
        Specified by:
        update in class Resource
        Returns:
        returns of the status of the update

Copyright © 2019. All rights reserved.