Class PrivateUser

  • Direct Known Subclasses:
    ConflictUser, CurrentUser

    public class PrivateUser
    extends User
    Internal immutable properties for a user including all public properties, private properties and identities.
    • Constructor Detail

      • PrivateUser

        public PrivateUser​(java.lang.String userId,
                           java.lang.String displayName,
                           java.lang.String avatarUrl,
                           java.util.Map<java.lang.String,​java.lang.String> identities,
                           java.util.Map<java.lang.String,​java.lang.String> publicProperties,
                           java.util.Map<java.lang.String,​java.lang.String> privateProperties,
                           BanInfo banInfo,
                           boolean isVerified)
      • PrivateUser

        public PrivateUser​(PrivateUser newUser)
    • Method Detail

      • getPrivateProperties

        public java.util.Map<java.lang.String,​java.lang.String> getPrivateProperties()
        Get all private properties of user. The map is a copy of origin user properties.
        unmodifiable copy of user private properties.
      • getBanInfo

        public BanInfo getBanInfo()
        ban information if user is banned, null otherwise.
      • isBanned

        public boolean isBanned()
        true if user is banned, false otherwise.
      • toString

        public java.lang.String toString()
        toString in class User