123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- //
- // GitHubUser.h
- // ModelBenchmark
- //
- // Created by ibireme on 15/9/18.
- // Copyright (c) 2015 ibireme. All rights reserved.
- //
- #import "YYModel.h"
- #import "Mantle.h"
- #import "JSONModelLib.h"
- #import "FastEasyMapping.h"
- #import "MJExtension.h"
- // https://api.github.com/users/facebook
- /// manually GHUser
- @interface GHUser : NSObject <NSCoding>
- @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 <NSCoding>
- @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 <MTLJSONSerializing>
- @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 <NSCoding>
- @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
|