com.ibm.wiotp.sdk.devicemgmt.resource

Class DateResource



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

      • DateResource

        public DateResource(String name,
                            Date value)
    • Method Detail

      • toJsonObject

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

Copyright © 2019. All rights reserved.