RVP_Cocoa_SDK_User

public class RVP_Cocoa_SDK_User : A_RVP_Cocoa_SDK_Data_Object
  • Declaration

    Swift

    override public var asDictionary: [String : Any?] { get }

    Return Value

    all of the values for this object, as a Dictionary. READ ONLY

  • Declaration

    Swift

    public var surname: String? { get set }

    Return Value

    the user surname, as an optional String

  • Declaration

    Swift

    public var middleName: String? { get set }

    Return Value

    the user middle name, as an optional String

  • Declaration

    Swift

    public var givenName: String? { get set }

    Return Value

    the user given (first) name, as an optional String

  • Declaration

    Swift

    public var nickame: String? { get set }

    Return Value

    the user nickame, as an optional String

  • Declaration

    Swift

    public var prefix: String? { get set }

    Return Value

    the user prefix, as an optional String

  • Declaration

    Swift

    public var suffix: String? { get set }

    Return Value

    the user suffix, as an optional String

  • NOTE: Although this will let anyone with write permission set the ID, it will not be accepted on the server, unless the admin also has at least read permissions for the login object.

    Declaration

    Swift

    public var loginID: Int { get set }

    Return Value

    the associated login ID (if any). 0, if no associated login.

  • Declaration

    Swift

    public var tag7: String { get set }

    Return Value

    the tag7 String.

  • Declaration

    Swift

    public var tag8: String { get set }

    Return Value

    the tag8 String.

  • Declaration

    Swift

    public var tag9: String { get set }

    Return Value

    the tag9 String.

  • This is the default initializer.

    Declaration

    Swift

    public override init(sdkInstance inSDKInstance: RVP_Cocoa_SDK?, objectInfoData inData: [String : Any])

    Parameters

    sdkInstance

    REQUIRED (Can be nil) This is the SDK instance that owns this object. It may be nil for history instances.

    objectInfoData

    REQUIRED This is the parsed JSON data for this object, as a Dictionary.

  • This method tells the SDK to fetch the associated login object.

    Nothing happens, if this user does not have an associated login.

    Declaration

    Swift

    public func fetchLoginInstance() -> Bool

    Return Value

    true, if we have an instance, and have requested it be fetched. False, if we have no instance.