// // PNUser.h // Pods // // Created by Giuseppe Nucifora on 15/01/16. // // #import "PNObject.h" @interface PNUser : PNObject /** * gets singleton object of current user session. * * @return singleton */ + (instancetype _Nonnull) currentUser; /** * <#Description#> * * @param password <#password description#> * * @return <#return value description#> */ - (BOOL) isValidPassword:(NSString* _Nonnull) password; /** * <#Description#> */ - (void) logout; /** * <#Description#> * * @return <#return value description#> */ - (BOOL) hasValidUserAndPasswordData; /** * <#Description#> * * @param success <#success description#> * @param failure <#failure description#> */ - (void) registerCurrentUserWithBlockSuccess:(nullable void (^)(PNUser * _Nullable responseObject))success failure:(nullable void (^)(NSError * _Nonnull error))failure; /** * <#Description#> * * @return <#return value description#> */ - (BOOL) autenticated; //- (void) setPassword:(NSString * _Nonnull)password inBackGroundWithBlock:(nullable void (^)(BOOL saveStatus, id responseObject, NSError * error)) responseBlock; ///-------------------------------------- #pragma mark - PNUser Properties ///-------------------------------------- /** * <#Description#> */ @property (strong, nonatomic, nullable) NSString * userId; /** * <#Description#> */ @property (strong, nonatomic, nullable) NSString * firstName; /** * <#Description#> */ @property (strong, nonatomic, nullable) NSString * lastName; /** * <#Description#> */ @property (nonatomic, strong, nullable) UIImage * profileImage; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * sex; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSDate * birthDate; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * phone; /** * <#Description#> */ @property (nonatomic) BOOL hasAcceptedPrivacy; /** * <#Description#> */ @property (nonatomic) BOOL hasAcceptedNewsletter; /** * <#Description#> */ @property (nonatomic) BOOL hasVerifiedEmail; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSDate * emailVerifiedDate; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * email; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * username; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * password; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * confirmPassword; /** * <#Description#> */ @property (nonatomic) BOOL publicProfile; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSNumber * loginCount; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * facebookId; /** * <#Description#> */ @property (nonatomic, strong, nullable) NSString * facebookAccessToken; @end