Package ai.nexconn.chat.params
Class SetFriendInfoParams
-
- All Implemented Interfaces:
public final class SetFriendInfoParamsSet friend info parameters.
Usage Example:
val params = SetFriendInfoParams("userId").apply { remark = "Remark name" extProfile = mapOf("key1" to "value1") } NCEngine.user.setFriendInfo(params) { errorKeys, error -> // ... }
-
-
Field Summary
Fields Modifier and Type Field Description private Stringremarkprivate Map<String, String>extProfileprivate final StringuserId
-
Constructor Summary
Constructors Constructor Description SetFriendInfoParams(String userId)
-
Method Summary
Modifier and Type Method Description final StringgetRemark()Friend remark name, up to 64 characters. final UnitsetRemark(String remark)Friend remark name, up to 64 characters. final Map<String, String>getExtProfile()Extended info. final UnitsetExtProfile(Map<String, String> extProfile)Extended info. final StringgetUserId()-
-
Method Detail
-
getRemark
final String getRemark()
Friend remark name, up to 64 characters. Spaces-only values are not allowed. Pass null or empty to clear the remark name
-
setRemark
final Unit setRemark(String remark)
Friend remark name, up to 64 characters. Spaces-only values are not allowed. Pass null or empty to clear the remark name
-
getExtProfile
final Map<String, String> getExtProfile()
Extended info.
Defaults to a maximum of 10 entries. Must be configured via the developer console or API first; otherwise the operation returns failure.
-
setExtProfile
final Unit setExtProfile(Map<String, String> extProfile)
Extended info.
Defaults to a maximum of 10 entries. Must be configured via the developer console or API first; otherwise the operation returns failure.
-
getUserId
final String getUserId()
-
-
-
-