// // GitHubUser.h // ModelBenchmark // // Created by ibireme on 15/9/18. // Copyright (c) 2015 ibireme. All rights reserved. // #import #import #import #import #import // https://api.github.com/users/facebook /// manually GHUser @interface GHUser : NSObject @property (nonatomic, strong) NSString *login; @property (nonatomic, assign) UInt64 userID; @property (nonatomic, strong) NSString *avatarURL; @property (nonatomic, strong) NSString *gravatarID; @property (nonatomic, strong) NSString *url; @property (nonatomic, strong) NSString *htmlURL; @property (nonatomic, strong) NSString *followersURL; @property (nonatomic, strong) NSString *followingURL; @property (nonatomic, strong) NSString *gistsURL; @property (nonatomic, strong) NSString *starredURL; @property (nonatomic, strong) NSString *subscriptionsURL; @property (nonatomic, strong) NSString *organizationsURL; @property (nonatomic, strong) NSString *reposURL; @property (nonatomic, strong) NSString *eventsURL; @property (nonatomic, strong) NSString *receivedEventsURL; @property (nonatomic, strong) NSString *type; @property (nonatomic, assign) BOOL siteAdmin; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *blog; @property (nonatomic, strong) NSString *location; @property (nonatomic, strong) NSString *email; @property (nonatomic, strong) NSString *hireable; @property (nonatomic, strong) NSString *bio; @property (nonatomic, assign) UInt32 publicRepos; @property (nonatomic, assign) UInt32 publicGists; @property (nonatomic, assign) UInt32 followers; @property (nonatomic, assign) UInt32 following; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; @property (nonatomic, strong) NSValue *test; - (instancetype)initWithJSONDictionary:(NSDictionary *)dictionary; - (NSDictionary *)convertToJSONDictionary; @end /// YYModel GHUser @interface YYGHUser : NSObject @property (nonatomic, strong) NSString *login; @property (nonatomic, assign) UInt64 userID; @property (nonatomic, strong) NSString *avatarURL; @property (nonatomic, strong) NSString *gravatarID; @property (nonatomic, strong) NSString *url; @property (nonatomic, strong) NSString *htmlURL; @property (nonatomic, strong) NSString *followersURL; @property (nonatomic, strong) NSString *followingURL; @property (nonatomic, strong) NSString *gistsURL; @property (nonatomic, strong) NSString *starredURL; @property (nonatomic, strong) NSString *subscriptionsURL; @property (nonatomic, strong) NSString *organizationsURL; @property (nonatomic, strong) NSString *reposURL; @property (nonatomic, strong) NSString *eventsURL; @property (nonatomic, strong) NSString *receivedEventsURL; @property (nonatomic, strong) NSString *type; @property (nonatomic, assign) BOOL siteAdmin; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *blog; @property (nonatomic, strong) NSString *location; @property (nonatomic, strong) NSString *email; @property (nonatomic, strong) NSString *hireable; @property (nonatomic, strong) NSString *bio; @property (nonatomic, assign) UInt32 publicRepos; @property (nonatomic, assign) UInt32 publicGists; @property (nonatomic, assign) UInt32 followers; @property (nonatomic, assign) UInt32 following; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; @property (nonatomic, strong) NSValue *test; @end /// JSONModel GHUser @interface JSGHUser : JSONModel @property (nonatomic, strong) NSString *login; @property (nonatomic, assign) UInt64 userID; @property (nonatomic, strong) NSString *avatarURL; @property (nonatomic, strong) NSString *gravatarID; @property (nonatomic, strong) NSString *url; @property (nonatomic, strong) NSString *htmlURL; @property (nonatomic, strong) NSString *followersURL; @property (nonatomic, strong) NSString *followingURL; @property (nonatomic, strong) NSString *gistsURL; @property (nonatomic, strong) NSString *starredURL; @property (nonatomic, strong) NSString *subscriptionsURL; @property (nonatomic, strong) NSString *organizationsURL; @property (nonatomic, strong) NSString *reposURL; @property (nonatomic, strong) NSString *eventsURL; @property (nonatomic, strong) NSString *receivedEventsURL; @property (nonatomic, strong) NSString *type; @property (nonatomic, assign) BOOL siteAdmin; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *blog; @property (nonatomic, strong) NSString *location; @property (nonatomic, strong) NSString *email; @property (nonatomic, strong) NSString *hireable; @property (nonatomic, strong) NSString *bio; @property (nonatomic, assign) unsigned publicRepos; @property (nonatomic, assign) unsigned publicGists; @property (nonatomic, assign) unsigned followers; @property (nonatomic, assign) unsigned following; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; @property (nonatomic, strong) NSValue *test; // JSONModel doesn't support UInt32 in armv7... Replace UInt32 with unsigned @end /// Mantle GHUser @interface MTGHUser : MTLModel @property (nonatomic, strong) NSString *login; @property (nonatomic, assign) UInt64 userID; @property (nonatomic, strong) NSString *avatarURL; @property (nonatomic, strong) NSString *gravatarID; @property (nonatomic, strong) NSString *url; @property (nonatomic, strong) NSString *htmlURL; @property (nonatomic, strong) NSString *followersURL; @property (nonatomic, strong) NSString *followingURL; @property (nonatomic, strong) NSString *gistsURL; @property (nonatomic, strong) NSString *starredURL; @property (nonatomic, strong) NSString *subscriptionsURL; @property (nonatomic, strong) NSString *organizationsURL; @property (nonatomic, strong) NSString *reposURL; @property (nonatomic, strong) NSString *eventsURL; @property (nonatomic, strong) NSString *receivedEventsURL; @property (nonatomic, strong) NSString *type; @property (nonatomic, assign) BOOL siteAdmin; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *blog; @property (nonatomic, strong) NSString *location; @property (nonatomic, strong) NSString *email; @property (nonatomic, strong) NSString *hireable; @property (nonatomic, strong) NSString *bio; @property (nonatomic, assign) UInt32 publicRepos; @property (nonatomic, assign) UInt32 publicGists; @property (nonatomic, assign) UInt32 followers; @property (nonatomic, assign) UInt32 following; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; @property (nonatomic, strong) NSValue *test; @end /// FastEasyMapping GHUser @interface FEGHUser : NSObject @property (nonatomic, strong) NSString *login; @property (nonatomic, assign) UInt64 userID; @property (nonatomic, strong) NSString *avatarURL; @property (nonatomic, strong) NSString *gravatarID; @property (nonatomic, strong) NSString *url; @property (nonatomic, strong) NSString *htmlURL; @property (nonatomic, strong) NSString *followersURL; @property (nonatomic, strong) NSString *followingURL; @property (nonatomic, strong) NSString *gistsURL; @property (nonatomic, strong) NSString *starredURL; @property (nonatomic, strong) NSString *subscriptionsURL; @property (nonatomic, strong) NSString *organizationsURL; @property (nonatomic, strong) NSString *reposURL; @property (nonatomic, strong) NSString *eventsURL; @property (nonatomic, strong) NSString *receivedEventsURL; @property (nonatomic, strong) NSString *type; @property (nonatomic, assign) BOOL siteAdmin; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *blog; @property (nonatomic, strong) NSString *location; @property (nonatomic, strong) NSString *email; @property (nonatomic, strong) NSString *hireable; @property (nonatomic, strong) NSString *bio; @property (nonatomic, assign) UInt32 publicRepos; @property (nonatomic, assign) UInt32 publicGists; @property (nonatomic, assign) UInt32 followers; @property (nonatomic, assign) UInt32 following; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; @property (nonatomic, strong) NSValue *test; + (FEMMapping *)defaultMapping; @end /// MJExtension GHUser @interface MJGHUser : NSObject @property (nonatomic, strong) NSString *login; @property (nonatomic, assign) UInt64 userID; @property (nonatomic, strong) NSString *avatarURL; @property (nonatomic, strong) NSString *gravatarID; @property (nonatomic, strong) NSString *url; @property (nonatomic, strong) NSString *htmlURL; @property (nonatomic, strong) NSString *followersURL; @property (nonatomic, strong) NSString *followingURL; @property (nonatomic, strong) NSString *gistsURL; @property (nonatomic, strong) NSString *starredURL; @property (nonatomic, strong) NSString *subscriptionsURL; @property (nonatomic, strong) NSString *organizationsURL; @property (nonatomic, strong) NSString *reposURL; @property (nonatomic, strong) NSString *eventsURL; @property (nonatomic, strong) NSString *receivedEventsURL; @property (nonatomic, strong) NSString *type; @property (nonatomic, assign) BOOL siteAdmin; @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *company; @property (nonatomic, strong) NSString *blog; @property (nonatomic, strong) NSString *location; @property (nonatomic, strong) NSString *email; @property (nonatomic, strong) NSString *hireable; @property (nonatomic, strong) NSString *bio; @property (nonatomic, assign) UInt32 publicRepos; @property (nonatomic, assign) UInt32 publicGists; @property (nonatomic, assign) UInt32 followers; @property (nonatomic, assign) UInt32 following; @property (nonatomic, strong) NSDate *createdAt; @property (nonatomic, strong) NSDate *updatedAt; @property (nonatomic, strong) NSValue *test; @end