类 EMDeviceResource

java.lang.Object
com.easemob.im.api.model.EMDeviceResource

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-01-25T14:51:53.998371+08:00[Asia/Shanghai]") public class EMDeviceResource extends Object
EMDeviceResource
  • 字段详细资料

    • SERIALIZED_NAME_RES

      public static final String SERIALIZED_NAME_RES
      另请参阅:
    • SERIALIZED_NAME_DEVICE_UUID

      public static final String SERIALIZED_NAME_DEVICE_UUID
      另请参阅:
    • SERIALIZED_NAME_DEVICE_NAME

      public static final String SERIALIZED_NAME_DEVICE_NAME
      另请参阅:
    • openapiFields

      public static HashSet<String> openapiFields
    • openapiRequiredFields

      public static HashSet<String> openapiRequiredFields
  • 构造器详细资料

    • EMDeviceResource

      public EMDeviceResource()
  • 方法详细资料

    • res

      public EMDeviceResource res(String res)
    • getRes

      @Nullable public String getRes()
      已登录设备的资源 ID,即服务器分配给每个设备资源的唯一标识符
      返回:
      res
    • setRes

      public void setRes(String res)
    • deviceUuid

      public EMDeviceResource deviceUuid(String deviceUuid)
    • getDeviceUuid

      @Nullable public String getDeviceUuid()
      已登录设备的 UUID
      返回:
      deviceUuid
    • setDeviceUuid

      public void setDeviceUuid(String deviceUuid)
    • deviceName

      public EMDeviceResource deviceName(String deviceName)
    • getDeviceName

      @Nullable public String getDeviceName()
      已登录设备的名称
      返回:
      deviceName
    • setDeviceName

      public void setDeviceName(String deviceName)
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      参数:
      jsonElement - JSON Element
      抛出:
      IOException - if the JSON Element is invalid with respect to EMDeviceResource
    • fromJson

      public static EMDeviceResource fromJson(String jsonString) throws IOException
      Create an instance of EMDeviceResource given an JSON string
      参数:
      jsonString - JSON string
      返回:
      An instance of EMDeviceResource
      抛出:
      IOException - if the JSON string is invalid with respect to EMDeviceResource
    • toJson

      public String toJson()
      Convert an instance of EMDeviceResource to an JSON string
      返回:
      JSON string