类 EMUserContactCheckResource
java.lang.Object
com.easemob.im.api.model.EMUserContactCheckResource
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-04-02T18:37:16.027660+08:00[Asia/Shanghai]",
comments="Generator version: 7.14.0")
public class EMUserContactCheckResource
extends Object
EMUserContactCheckResource
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanstatic EMUserContactCheckResourceCreate an instance of EMUserContactCheckResource given an JSON string是否为好友:- friend:是 - not_friend:否系统内为用户生成的系统内唯一标识inthashCode()voidsetRelation(String relation) voidsetUsername(String username) toJson()Convert an instance of EMUserContactCheckResource to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
字段详细资料
-
构造器详细资料
-
EMUserContactCheckResource
public EMUserContactCheckResource()
-
-
方法详细资料
-
username
-
getUsername
系统内为用户生成的系统内唯一标识- 返回:
- username
-
setUsername
-
relation
-
getRelation
是否为好友:- friend:是 - not_friend:否- 返回:
- relation
-
setRelation
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- 参数:
jsonElement- JSON Element- 抛出:
IOException- if the JSON Element is invalid with respect to EMUserContactCheckResource
-
fromJson
Create an instance of EMUserContactCheckResource given an JSON string- 参数:
jsonString- JSON string- 返回:
- An instance of EMUserContactCheckResource
- 抛出:
IOException- if the JSON string is invalid with respect to EMUserContactCheckResource
-
toJson
Convert an instance of EMUserContactCheckResource to an JSON string- 返回:
- JSON string
-