- Refactoring classes

- Add Installation Class
- Add AccessToken Class (not yet complete)
- Remove PNObjectProperty
- Move PNObjectProperty methods to "PNObject+Protected.h"
This commit is contained in:
giuseppenuc committed 2016-01-27 15:14:04 +01:00
1 parent 1efd26a133
commit fad171373e
24 files changed
+1358 -945

No files matched your search

+46 -13
View File
@@ -7,24 +7,57 @@
//
#import <PNObject/PNObject.h>
#import <objc/runtime.h>
@interface PNObject (Protected)
/**
* <#Description#>
*
* @param JSON <#JSON description#>
*/
- (void)populateObjectFromJSON:(id _Nullable)JSON;
/**
* <#Description#>
*
* @param obj <#obj description#>
*
* @return <#return value description#>
*/
- (BOOL)isObjNull:(id _Nullable)obj;
/**
* <#Description#>
*
* @return <#return value description#>
*/
+ (NSArray * _Nonnull) protectedProperties;
/**
* <#Description#>
*
* @param PNObjClass <#PNObjClass description#>
*
* @return <#return value description#>
*/
+ (NSDictionary * _Nullable)propertiesForClass:(Class _Nonnull)PNObjClass;
@property (nonatomic, strong) PNObjectModel * _Nonnull objectModel;
@property (nonatomic, strong) NSDictionary * _Nonnull JSON;
@property (nonatomic, strong) NSString * _Nonnull endPoint;
///--------------------------------------
#pragma mark - PNObject (Protected) Properties
///--------------------------------------
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) PNObjectModel * objectModel;
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) NSDictionary * JSON;
/**
* <#Description#>
*/
@property (nonatomic, strong, nonnull) NSString * endPoint;
/**
* <#Description#>
*/
@property (nonatomic) BOOL singleInstance;
- (void)populateObjectFromJSON:(id _Nullable)JSON;
- (BOOL)isStringNull:(NSString * _Nullable)str;
- (BOOL)isObjNull:(id _Nullable)obj;
+ (NSArray * _Nonnull) protectedProperties;
@end