Class SetFriendInfoParams

  • All Implemented Interfaces:

    
    public final class SetFriendInfoParams
    
                        

    Set friend info parameters.

    Usage Example:

    val params = SetFriendInfoParams("userId").apply {
        remark = "Remark name"
        extProfile = mapOf("key1" to "value1")
    }
    NCEngine.user.setFriendInfo(params) { errorKeys, error ->
        // ...
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private String remark
      private Map<String, String> extProfile
      private final String userId
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getRemark() Friend remark name, up to 64 characters.
      final Unit setRemark(String remark) Friend remark name, up to 64 characters.
      final Map<String, String> getExtProfile() Extended info.
      final Unit setExtProfile(Map<String, String> extProfile) Extended info.
      final String getUserId()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SetFriendInfoParams

        SetFriendInfoParams(String userId)
        Parameters:
        userId - friend user ID
    • 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.