User

@objc(GetSocialUser)
@objcMembers
public class User : NSObject, Encodable

Describe user instance.

  • GetSocial Id of user.

    Declaration

    Swift

    public internal(set) var userId: String
  • Display name.

    Declaration

    Swift

    public internal(set) var displayName: String
  • Avatar Url.

    Declaration

    Swift

    public internal(set) var avatarUrl: String?
  • Identities added to user.

    Declaration

    Swift

    public internal(set) var identities: [String : String]
  • Public properties. These properties are accessible to other users.

    Declaration

    Swift

    public internal(set) var publicProperties: [String : String]
  • Check if user is the app itself.

    Declaration

    Swift

    public internal(set) var isApp: Bool
  • Check if user is verified.

    Declaration

    Swift

    public internal(set) var isVerified: Bool
  • Description.

    Declaration

    Swift

    public override var description: String { get }
  • Check if user is equal to another user.

    Declaration

    Swift

    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    Another user object.

    Return Value

    true if users are equal, otherwise false.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws