Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 65 lines (43 sloc) 1.93 kb
711f5a4 Initial Commit.
Owain R Hunt authored
1 //
2 // UAGithubEngine.h
3 // UAGithubEngine
4 //
5 // Created by Owain Hunt on 02/04/2010.
6 // Copyright 2010 Owain R Hunt. All rights reserved.
7 //
8
9 #import <Cocoa/Cocoa.h>
10 #import "UAGithubEngineDelegate.h"
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
11 #import "UAGithubEngineRequestTypes.h"
aecd1e5 Basic repository retrieval and XML parsing works.
Owain R Hunt authored
12 #import "UAGithubParserDelegate.h"
711f5a4 Initial Commit.
Owain R Hunt authored
13
aecd1e5 Basic repository retrieval and XML parsing works.
Owain R Hunt authored
14 @interface UAGithubEngine : NSObject <UAGithubParserDelegate> {
711f5a4 Initial Commit.
Owain R Hunt authored
15 id <UAGithubEngineDelegate> delegate;
16 NSString *username;
17 NSString *apiKey;
18 NSString *dataFormat;
19 }
20
21 @property (assign) id <UAGithubEngineDelegate> delegate;
22 @property (nonatomic, retain) NSString *username;
23 @property (nonatomic, retain) NSString *apiKey;
24 @property (nonatomic, retain) NSString *dataFormat;
25
26 - (id)initWithUsername:(NSString *)aUsername apiKey:(NSString *)aKey delegate:(id)theDelegate;
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
27 - (NSData *)sendRequest:(NSString *)path withParameters:(NSDictionary *)params;
28
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
29
30 #pragma mark Repositories
31
aecd1e5 Basic repository retrieval and XML parsing works.
Owain R Hunt authored
32 - (void)getRepositoriesForUser:(NSString *)aUser includeWatched:(BOOL)watched;
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
33 - (id)getRepository:(NSString *)repositoryPath;
34
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
35
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
36 #pragma mark Issues
37
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
38 - (id)getIssuesForRepository:(NSString *)repositoryPath withRequestType:(UAGithubRequestType)requestType;
39 - (id)getIssue:(NSString *)issuePath;
40 - (id)editIssue:(NSString *)issuePath withDictionary:(NSDictionary *)issueDictionary;
41 - (id)addIssueForRepository:(NSString *)repositoryPath withDictionary:(NSDictionary *)issueDictionary;
42 - (id)closeIssue:(NSString *)issuePath;
43 - (id)reopenIssue:(NSString *)issuePath;
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
44
45
46 #pragma mark Labels
47
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
48 - (id)getLabelsForRepository:(NSString *)repositoryPath;
49 - (id)addLabel:(NSString *)label toIssue:(NSInteger *)issueNumber inRepository:(NSString *)repositoryPath;
50 - (id)removeLabel:(NSString *)label fromIssue:(NSInteger *)issueNumber inRepository:(NSString *)repositoryPath;;
51
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
52
53 #pragma mark Comments
54
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
55 - (id)getCommentsForIssue:(NSString *)issuePath;
56 - (id)addComment:(NSString *)comment toIssue:(NSString *)issuePath;
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
57
58
59 #pragma mark Users
60
6a28467 Added stub methods for all required API routes.
Owain R Hunt authored
61 - (id)getUser:(NSString *)user;
cd07a56 Implemented repository methods. Added stubs for labels, issues, comments...
Owain R Hunt authored
62
63
711f5a4 Initial Commit.
Owain R Hunt authored
64 @end
Something went wrong with that request. Please try again.