类 EMImportChatGroupMessage

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

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

    • SERIALIZED_NAME_FROM

      public static final String SERIALIZED_NAME_FROM
      另请参阅:
    • SERIALIZED_NAME_TARGET

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

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

      public static final String SERIALIZED_NAME_BODY
      另请参阅:
    • SERIALIZED_NAME_IS_ACK_READ

      public static final String SERIALIZED_NAME_IS_ACK_READ
      另请参阅:
    • SERIALIZED_NAME_MSG_TIMESTAMP

      public static final String SERIALIZED_NAME_MSG_TIMESTAMP
      另请参阅:
    • SERIALIZED_NAME_NEED_DOWNLOAD

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMImportChatGroupMessage

      public EMImportChatGroupMessage()
  • 方法详细资料

    • from

      public EMImportChatGroupMessage from(String from)
    • getFrom

      @Nonnull public String getFrom()
      消息发送方的用户 ID
      返回:
      from
    • setFrom

      public void setFrom(String from)
    • target

      public EMImportChatGroupMessage target(String target)
    • getTarget

      @Nonnull public String getTarget()
      群组 ID
      返回:
      target
    • setTarget

      public void setTarget(String target)
    • type

      public EMImportChatGroupMessage type(String type)
    • getType

      @Nonnull public String getType()
      消息类型: - txt:文本消息; - img:图片消息; - audio:语音消息; - video:视频消息; - file:文件消息; - loc:位置消息; - cmd:透传消息; - custom:自定义消息
      返回:
      type
    • setType

      public void setType(String type)
    • body

    • getBody

      @Nonnull public EMMessageContent getBody()
      Get body
      返回:
      body
    • setBody

      public void setBody(EMMessageContent body)
    • isAckRead

      public EMImportChatGroupMessage isAckRead(Boolean isAckRead)
    • getIsAckRead

      @Nullable public Boolean getIsAckRead()
      是否设置消息为已读。 - true:是; - false:否
      返回:
      isAckRead
    • setIsAckRead

      public void setIsAckRead(Boolean isAckRead)
    • msgTimestamp

      public EMImportChatGroupMessage msgTimestamp(BigDecimal msgTimestamp)
    • getMsgTimestamp

      @Nullable public BigDecimal getMsgTimestamp()
      要导入的消息的时间戳,单位为毫秒。若不传该参数,环信服务器会将导入的消息的时间戳设置为当前时间
      返回:
      msgTimestamp
    • setMsgTimestamp

      public void setMsgTimestamp(BigDecimal msgTimestamp)
    • needDownload

      public EMImportChatGroupMessage needDownload(Boolean needDownload)
    • getNeedDownload

      @Nullable public Boolean getNeedDownload()
      是否需要下载附件并上传到服务器。 - true:是。这种情况下,需确保附件地址可直接访问,没有访问权限的限制。 - (默认)false:否
      返回:
      needDownload
    • setNeedDownload

      public void setNeedDownload(Boolean needDownload)
    • 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 EMImportChatGroupMessage
    • fromJson

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

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