类 EMUploadChatFileResource

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

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

    • SERIALIZED_NAME_UUID

      public static final String SERIALIZED_NAME_UUID
      另请参阅:
    • SERIALIZED_NAME_TYPE

      public static final String SERIALIZED_NAME_TYPE
      另请参阅:
    • SERIALIZED_NAME_SHARE_SECRET

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMUploadChatFileResource

      public EMUploadChatFileResource()
  • 方法详细资料

    • uuid

      public EMUploadChatFileResource uuid(String uuid)
    • getUuid

      @Nullable public String getUuid()
      文件 ID,即时通讯服务分配给该文件的唯一标识符。该参数在发送消息时需用到
      返回:
      uuid
    • setUuid

      public void setUuid(String uuid)
    • type

      public EMUploadChatFileResource type(String type)
    • getType

      @Nullable public String getType()
      文件类型,为固定值 chatfile
      返回:
      type
    • setType

      public void setType(String type)
    • shareSecret

      public EMUploadChatFileResource shareSecret(String shareSecret)
    • getShareSecret

      @Nullable public String getShareSecret()
      文件访问密钥。你需要自行保存 share-secret,以便 下载文件时使用
      返回:
      shareSecret
    • setShareSecret

      public void setShareSecret(String shareSecret)
    • 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 EMUploadChatFileResource
    • fromJson

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

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