com.ibm.wiotp.sdk.devicemgmt.resource

Class NumberResource



  • public class NumberResource
    extends Resource<Number>
    An internal class that represents a number attribute of the Device
    • Constructor Detail

      • NumberResource

        public NumberResource(String name,
                              Number value)
    • Method Detail

      • toJsonObject

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

Copyright © 2019. All rights reserved.