GitHub PullRequestReviewCommentEvent at 2014-03-21 15:32:57
Repository: WordPress-iOS
Actor: bakyelli
Payload: {"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/comments/10840504","id":10840504,"diff_hunk":"@@ -0,0 +1,64 @@\n+/*\n+ *  PasscodeButtonStyleProvider.m\n+ *\n+ * Copyright (c) 2014 WordPress. All rights reserved.\n+ *\n+ * Licensed under GNU General Public License 2.0.\n+ * Some rights reserved. See license.txt\n+ */\n+\n+#import \"PasscodeButtonStyleProvider.h\"\n+\n+@implementation PasscodeStyle\n+\n+@end\n+\n+\n+@interface PasscodeButtonStyleProvider ()\n+\n+@property (strong, nonatomic) NSMutableDictionary *buttonStyles;\n+\n+@end\n+\n+\n+@implementation PasscodeButtonStyleProvider\n+\n+-(id)init{\n+    self = [super init];\n+     if(self)\n+     {\n+         _buttonStyles = [NSMutableDictionary new];\n+     }\n+     return self;\n+}\n+\n+- (void) addStyleForButton:(PasscodeButton)button stye:(PasscodeStyle *)passcodeStyle\n+{\n+    [_buttonStyles setObject:passcodeStyle forKey:[NSNumber numberWithInt:button]];\n+}\n+\n+- (PasscodeStyle *) styleForButton:(PasscodeButton)button\n+{\n+    if([_buttonStyles objectForKey:[NSNumber numberWithInt:button]] != nil){\n+        return [_buttonStyles objectForKey:[NSNumber numberWithInt:button]];\n+    }else{\n+        PasscodeStyle *defaultStyle = [[PasscodeStyle alloc]init];\n+        defaultStyle.titleColor = [UIColor blackColor];\n+        defaultStyle.lineColor = [UIColor blackColor];\n+        defaultStyle.fillColor = [UIColor clearColor];\n+        defaultStyle.selectedFillColor = [UIColor blackColor];\n+        defaultStyle.selectedLineColor = [UIColor whiteColor];\n+        defaultStyle.selectedTitleColor = [UIColor whiteColor];\n+        return defaultStyle;\n+    }\n+}\n+\n+- (BOOL) styleExistsForButton:(PasscodeButton)button{\n+    if([_buttonStyles objectForKey:[NSNumber numberWithInt:button]]){","path":"Pods/iOSPasscodeLock/iOSPasscodeLock/PasscodeButtonStyleProvider.m","position":null,"original_position":57,"commit_id":"8224fa8ef1a159e12ec94b3ba6276536993a6f6c","original_commit_id":"7c2ea0f7f5b185c4e5238fdb9803123050cf94a8","user":{"login":"bakyelli","id":5252893,"avatar_url":"https://avatars.githubusercontent.com/u/5252893?","gravatar_id":"0aa954e9ca9dcd547e22177600115f7b","url":"https://api.github.com/users/bakyelli","html_url":"https://github.com/bakyelli","followers_url":"https://api.github.com/users/bakyelli/followers","following_url":"https://api.github.com/users/bakyelli/following{/other_user}","gists_url":"https://api.github.com/users/bakyelli/gists{/gist_id}","starred_url":"https://api.github.com/users/bakyelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bakyelli/subscriptions","organizations_url":"https://api.github.com/users/bakyelli/orgs","repos_url":"https://api.github.com/users/bakyelli/repos","events_url":"https://api.github.com/users/bakyelli/events{/privacy}","received_events_url":"https://api.github.com/users/bakyelli/received_events","type":"User","site_admin":false},"body":"Agreed - fixed. ","created_at":"2014-03-21T15:32:57Z","updated_at":"2014-03-21T15:32:57Z","html_url":"https://github.com/wordpress-mobile/WordPress-iOS/pull/1288#discussion_r10840504","pull_request_url":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/1288","_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/comments/10840504"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-iOS/pull/1288#discussion_r10840504"},"pull_request":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-iOS/pulls/1288"}}}}