Inherits from LUAPIModel : NSObject
Declared in LUUser.h
LUUser.m

Overview

LUUser is a representation of a user in the LevelUp system.

Properties

birthdate

The user’s birthday.

@property (nonatomic, copy) NSDate *birthdate

Discussion

The user’s birthday.

Declared In

LUUser.h

causeID

The ID of the user’s current cause, if they have selected one.

@property (nonatomic, copy, readonly) NSNumber *causeID

Discussion

The ID of the user’s current cause, if they have selected one.

Declared In

LUUser.h

customAttributes

An arbitrary NSMutableDictionary of custom attributes. This may be used to store app-specific user information.

@property (nonatomic, strong) NSMutableDictionary *customAttributes

Discussion

An arbitrary NSMutableDictionary of custom attributes. This may be used to store app-specific user information.

Declared In

LUUser.h

debitCardOnly

Designates if the user is part of the debit_card_only AB Test (internal).

@property (nonatomic, assign, readonly) BOOL debitCardOnly

Discussion

Designates if the user is part of the debit_card_only AB Test (internal).

Declared In

LUUser.h

email

The user’s email address.

@property (nonatomic, copy) NSString *email

Discussion

The user’s email address.

Declared In

LUUser.h

firstName

The user’s first name.

@property (nonatomic, copy) NSString *firstName

Discussion

The user’s first name.

Declared In

LUUser.h

gender

The user’s gender. Maybe set to LUGenderMale, LUGenderFemale or LUGenderUnspecified.

@property (nonatomic, assign) LUGender gender

Discussion

The user’s gender. Maybe set to LUGenderMale, LUGenderFemale or LUGenderUnspecified.

Declared In

LUUser.h

globalCredit

The amount of the user’s global credit: that is, credit that can be used at any merchant.

@property (nonatomic, strong, readonly) LUMonetaryValue *globalCredit

Discussion

The amount of the user’s global credit: that is, credit that can be used at any merchant.

Declared In

LUUser.h

lastName

The user’s last name.

@property (nonatomic, copy) NSString *lastName

Discussion

The user’s last name.

Declared In

LUUser.h

merchantsVisitedCount

The total number of merchants at which the user has made an order.

@property (nonatomic, copy, readonly) NSNumber *merchantsVisitedCount

Discussion

The total number of merchants at which the user has made an order.

Declared In

LUUser.h

ordersCount

The total number of orders that the user has made on LevelUp.

@property (nonatomic, copy, readonly) NSNumber *ordersCount

Discussion

The total number of orders that the user has made on LevelUp.

Declared In

LUUser.h

password

The user’s password. This is only used to set a password; it will always be nil when returned by the server.

@property (nonatomic, copy) NSString *password

Discussion

The user’s password. This is only used to set a password; it will always be nil when returned by the server.

Declared In

LUUser.h

termsAccepted

Specifies if the user has accepted the LevelUp Terms & Conditions.

@property (nonatomic, assign) BOOL termsAccepted

Discussion

Specifies if the user has accepted the LevelUp Terms & Conditions.

Declared In

LUUser.h

totalSavings

The total amount of money that the user has saved using LevelUp.

@property (nonatomic, strong, readonly) LUMonetaryValue *totalSavings

Discussion

The total amount of money that the user has saved using LevelUp.

Declared In

LUUser.h

userID

The unique identifier for this user.

@property (nonatomic, copy, readonly) NSNumber *userID

Discussion

The unique identifier for this user.

Declared In

LUUser.h

Class Methods

genderForGenderString:

Returns an enumerated value representing a gender.

+ (LUGender)genderForGenderString:(NSString *)genderString

Parameters

genderString

The string representation of the gender. This string is case insensitive.

Discussion

Returns an enumerated value representing a gender.

Declared In

LUUser.h

genderStringForGender:

Returns a string representation of the gender for display. The return string will be capitalized (Male, Female).

+ (NSString *)genderStringForGender:(LUGender)gender

Parameters

gender

The enumerated value for the gender.

Discussion

Returns a string representation of the gender for display. The return string will be capitalized (Male, Female).

Declared In

LUUser.h