com.ibm.wiotp.sdk.devicemgmt.resource

Class StringResource



  • public class StringResource
    extends Resource<String>
    An internal class that represents a String attribute of the Device
    • Constructor Detail

      • StringResource

        public StringResource(String name,
                              String value)
    • Method Detail

      • toJsonObject

        public com.google.gson.JsonElement toJsonObject()
        Returns the value in Json Format
        Specified by:
        toJsonObject in class Resource<String>
      • 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<String>
      • 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<String>

Copyright © 2019. All rights reserved.