DALIMember
public struct DALIMember : Equatable
A member of DALI
The user object contains as much data as is allowed to a general client by the api
-
The current member
Declaration
Swift
public static var current: DALIMember? { get }
-
User’s full name (eg. John Kotz)
Declaration
Swift
public var name: String { get set }
-
User’s entered gender
Declaration
Swift
public var gender: String? { get set }
-
User’s email address
Declaration
Swift
public var email: String { get set }
-
URL to the user’s photo
Declaration
Swift
public var photoURL: String { get set }
-
URL to the user’s website
Declaration
Swift
public var website: String? { get set }
-
URL to the user’s linkedin
Declaration
Swift
public var linkedin: String? { get set }
-
User’s greeting
Declaration
Swift
public var greeting: String? { get set }
-
User’s Github username
Declaration
Swift
public var githubUsername: String? { get set }
-
URL to user’s cover photo
Declaration
Swift
public var coverPhoto: String? { get set }
-
URL to user’s goolge photo
Declaration
Swift
public var googlePhotoURL: String { get set }
-
User’s chosen origin location (data used by mappy)
Declaration
Swift
public var location: CLLocation? { get set }
-
User’s job title
Declaration
Swift
public var jobTitle: String? { get set }
-
A list of skills the user has listed for themselves
Declaration
Swift
public var skills: [String]? { get set }
-
The user is an admin
Declaration
Swift
public private(set) var isAdmin: Bool
-
The identifier used by the server
Declaration
Swift
public var id: String { get }
-
Signifies if data has been changed in the object without saving to the server
Declaration
Swift
public var dirty: Bool { get }
-
Parses a json object and returns a DALIUser object if it can find all the required information
Declaration
Swift
public static func parse(_ object: JSON) -> DALIMember?
Parameters
object
JSON
object used to generate the userReturn Value
DALIUser?
- The user object that was generated, if it could -
Declaration
Swift
public static func == (lhs: DALIMember, rhs: DALIMember) -> Bool