类 EMMuteGroupMember

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

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

    • SERIALIZED_NAME_USERNAMES

      public static final String SERIALIZED_NAME_USERNAMES
      另请参阅:
    • SERIALIZED_NAME_MUTE_DURATION

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMMuteGroupMember

      public EMMuteGroupMember()
  • 方法详细资料

    • usernames

      public EMMuteGroupMember usernames(List<String> usernames)
    • addUsernamesItem

      public EMMuteGroupMember addUsernamesItem(String usernamesItem)
    • getUsernames

      @Nullable public List<String> getUsernames()
      要添加到禁言列表的用户 ID 列表,每次最多可添加 60 个
      返回:
      usernames
    • setUsernames

      public void setUsernames(List<String> usernames)
    • muteDuration

      public EMMuteGroupMember muteDuration(BigDecimal muteDuration)
    • getMuteDuration

      @Nullable public BigDecimal getMuteDuration()
      禁言时长,单位为毫秒
      返回:
      muteDuration
    • setMuteDuration

      public void setMuteDuration(BigDecimal muteDuration)
    • 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 EMMuteGroupMember
    • fromJson

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

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