类 EMContactRemarkResource

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

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

    • SERIALIZED_NAME_REMARK

      public static final String SERIALIZED_NAME_REMARK
      另请参阅:
    • SERIALIZED_NAME_USERNAME

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

      public static HashSet<String> openapiFields
    • openapiRequiredFields

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

    • EMContactRemarkResource

      public EMContactRemarkResource()
  • 方法详细资料

    • remark

      public EMContactRemarkResource remark(String remark)
    • getRemark

      @Nullable public String getRemark()
      好友备注内容
      返回:
      remark
    • setRemark

      public void setRemark(String remark)
    • username

      public EMContactRemarkResource username(String username)
    • getUsername

      @Nullable public String getUsername()
      好友 ID
      返回:
      username
    • setUsername

      public void setUsername(String username)
    • 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 EMContactRemarkResource
    • fromJson

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

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