Permalink
Browse files

Split issue requests into two separate methods.

switch statement in previous approach was causing exc_bad_access.
  • Loading branch information...
1 parent 194bb82 commit 404fc11929eafe1c447bdba8fe6cba093a6d6482 Owain R Hunt committed Apr 7, 2012
Showing with 187 additions and 201 deletions.
  1. +2 −1 Classes/UAGithubEngine.h
  2. +185 −200 Classes/UAGithubEngine.m
View
@@ -64,7 +64,8 @@ typedef void (^UAGithubEngineFailureBlock)(NSError *);
#pragma mark Issues
#pragma mark
-- (void)issuesForRepository:(NSString *)repositoryPath withParameters:(NSDictionary *)parameters requestType:(UAGithubRequestType)requestType success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
+- (void)openIssuesForRepository:(NSString *)repositoryPath withParameters:(NSDictionary *)parameters success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
+- (void)closedIssuesForRepository:(NSString *)repositoryPath withParameters:(NSDictionary *)parameters success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
- (void)issue:(NSInteger)issueNumber inRepository:(NSString *)repositoryPath success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
- (void)editIssue:(NSInteger)issueNumber inRepository:(NSString *)repositoryPath withDictionary:(NSDictionary *)issueDictionary success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
- (void)addIssueForRepository:(NSString *)repositoryPath withDictionary:(NSDictionary *)issueDictionary success:(UAGithubEngineSuccessBlock)successBlock failure:(UAGithubEngineFailureBlock)failureBlock;
Oops, something went wrong.

0 comments on commit 404fc11

Please sign in to comment.