VOSimpleUser

@interface VOSimpleUser : NSObject

VOSimpleUser is a simplified, mutable version of VOUser that is used as part of registration or when a full VOUser is not required.

  • The email address of the VOSimpleUser.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *_Nonnull email;

    Swift

    var email: String { get set }
  • The first name of the VOSimpleUser.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *firstName;

    Swift

    var firstName: String? { get set }
  • The last name of the VOSimpleUser.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *lastName;

    Swift

    var lastName: String? { get set }
  • A profile picture for a VOSimpleUser.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *profileImageUrl;

    Swift

    var profileImageUrl: String? { get set }
  • A birthday for the VOSimpleUser in the format mm/dd/yyyy.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *birthday;

    Swift

    var birthday: String? { get set }
  • Default initializer for VOSimpleUser.

    Declaration

    Objective-C

    + (nonnull instancetype)simpleUserWithFirstName:(nullable NSString *)firstName
                                           lastName:(nullable NSString *)lastName
                                              email:(nonnull NSString *)email
                                    profileImageUrl:
                                        (nullable NSString *)profileImageUrl
                                           birthday:(nullable NSString *)birthday;

    Swift

    convenience init(firstName: String?, lastName: String?, email: String, profileImageUrl: String?, birthday: String?)

    Parameters

    firstName

    - firstName for the VOSimpleUser.

    lastName

    - lastName for the VOSimpleUser.

    email

    - email for the VOSimpleUser.

    profileImageUrl

    - profile picture for the VOSimpleUser.

    Return Value

    Instance of VOSimpleUser.

  • Converts a VOSimpleUser to an NSDictionary that can be used for caching or sending to the server.

    Declaration

    Objective-C

    - (nonnull NSDictionary *)dictionaryRepresentation;

    Swift

    func dictionaryRepresentation() -> [AnyHashable : Any]

    Return Value

    dictionary - Dictionary form of a VOSimpleUser.