类 EMGetHistoryMessageResource

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

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

    • SERIALIZED_NAME_URL

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMGetHistoryMessageResource

      public EMGetHistoryMessageResource()
  • 方法详细资料

    • url

    • getUrl

      @Nullable public String getUrl()
      历史消息记录的下载地址。该 URL 由历史消息记录的存储地址、到期 Unix 时间戳(Expires,单位为秒)、第三方云存储访问密钥(OSSAccessKeyId)和第三方云存储验证签名(Signature)组成。URL 仅在一定时间内有效,请及时通过 URL 下载聊天记录文件,URL 过期后会下载失败,需要重新调用该接口获取新的 URL
      返回:
      url
    • setUrl

      public void setUrl(String url)
    • 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 EMGetHistoryMessageResource
    • fromJson

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

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