User
public class User : AppEntity
Provides information of the User Object
-
provides uid of the user
Declaration
Swift
@objc public var uid: String? { get set } -
provides name of the user
Declaration
Swift
@objc public var name: String? { get set } -
provides avatar of the user
Declaration
Swift
@objc public var avatar: String? { get set } -
provides link of the user.
Declaration
Swift
@objc public var link: String? { get set } -
provides role of the user
Declaration
Swift
@objc public var role: String? { get set } -
provides metadata of the user
Declaration
Swift
@objc public var metadata: [String : Any]? { get set } -
provides credits of the user
Declaration
Swift
@objc public var credits: Int { get set } -
provides status of the user i.e online or offline
Declaration
Swift
@objc public var status: CometChat.UserStatus { get set } -
provides status message of the user
Declaration
Swift
@objc public var statusMessage: String? { get set } -
provides timestamp of the user’s last activity
Declaration
Swift
@objc public var lastActiveAt: Double { get set } -
provides value whether the user has been blocked or not
Declaration
Swift
@objc public var hasBlockedMe: Bool { get set } -
provides value whether the loggedIn user has blocked particular user or not
Declaration
Swift
@objc public var blockedByMe: Bool { get set } -
Initialiser for the User Object
Declaration
Swift
@objc public init(uid: String, name: String, avatar: String, link: String, role: String, metadata: [String : String], credits: Int, status: CometChat.UserStatus, statusMessage: String, lastActiveAt: Double) -
provides string representation of User Object
Declaration
Swift
@objc public func stringValue() -> String
User Class Reference