This repository has been archived by the owner on May 19, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 255
/
GHRepository.h
46 lines (42 loc) · 2.08 KB
/
GHRepository.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#import "GHResource.h"
@class GHIssues, GHPullRequests, GHForks, GHTags, GHBranches, GHMilestones, GHMilestone, GHLabels, GHUser, GHReadme, GHEvents, GHUsers;
@interface GHRepository : GHResource
@property(nonatomic,readonly)NSString *repoId;
@property(nonatomic,readonly)NSMutableAttributedString *attributedDescriptionText;
@property(nonatomic,strong)NSString *name;
@property(nonatomic,strong)NSString *owner;
@property(nonatomic,strong)NSString *descriptionText;
@property(nonatomic,strong)NSString *mainBranch;
@property(nonatomic,strong)NSString *language;
@property(nonatomic,strong)NSURL *htmlURL;
@property(nonatomic,strong)NSURL *homepageURL;
@property(nonatomic,strong)NSDate *pushedAtDate;
@property(nonatomic,strong)GHIssues *openIssues;
@property(nonatomic,strong)GHIssues *closedIssues;
@property(nonatomic,strong)GHPullRequests *openPullRequests;
@property(nonatomic,strong)GHPullRequests *closedPullRequests;
@property(nonatomic,strong)GHMilestones *milestones;
@property(nonatomic,strong)GHMilestone *milestone;
@property(nonatomic,strong)GHLabels *labels;
@property(nonatomic,strong)GHForks *forks;
@property(nonatomic,strong)GHTags *tags;
@property(nonatomic,strong)GHBranches *branches;
@property(nonatomic,strong)GHReadme *readme;
@property(nonatomic,strong)GHEvents *events;
@property(nonatomic,strong)GHUsers *contributors;
@property(nonatomic,strong)GHUsers *stargazers;
@property(nonatomic,strong)GHUsers *assignees;
@property(nonatomic,strong)GHUser *assignee;
@property(nonatomic,readonly)GHUser *user;
@property(nonatomic,readonly)GHRepository *parent;
@property(nonatomic,readwrite)NSInteger forkCount;
@property(nonatomic,readwrite)NSInteger watcherCount;
@property(nonatomic,readwrite)BOOL isPrivate;
@property(nonatomic,readwrite)BOOL isFork;
@property(nonatomic,readwrite)BOOL hasIssues;
@property(nonatomic,readwrite)BOOL hasWiki;
@property(nonatomic,readwrite)BOOL hasDownloads;
- (id)initWithOwner:(NSString *)owner andName:(NSString *)name;
- (void)setOwner:(NSString *)owner andName:(NSString *)name;
- (void)checkAssignment:(GHUser *)user usingBlock:(void (^)(BOOL isAssignee))block;
@end