{"action":"created","comment":{"url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/comments/26311071","id":26311071,"diff_hunk":"@@ -0,0 +1,48 @@\n+//\n+//  ApiMock.m\n+//  Training\n+//\n+//  Created by Michel Agopian on 3/11/15.\n+//  Copyright (c) 2015 Michel Agopian. All rights reserved.\n+//\n+\n+#import \"ApiMock.h\"\n+\n+@implementation ApiMock\n+\n+- (void)createUser:(NSString *)user withPassword:(NSString*)password withSuccess:(void(^)())success andFailure:(void(^)())failure{\n+    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];\n+    NSMutableDictionary *users = [NSMutableDictionary dictionaryWithDictionary:[defaults objectForKey:@\"users\"]];\n+    if(!users || ![users objectForKey: user] ){\n+        if(!users){\n+            users = [NSMutableDictionary new];\n+        }\n+        NSString *key = [user stringByAppendingString:@\":\"];\n+        key = [key stringByAppendingString:password];\n+        NSDictionary *userInfo = @{@\"name \": user,\n+                                   @\"location\": @\"Buenos Aires, Argentina\",\n+                                   @\"description\": @\"Aguante el futbol\"};\n+        [users setObject:userInfo forKey:key];\n+        [defaults setObject:userInfo forKey:@\"isLoggedIn\"];\n+        [defaults setObject:users forKey:@\"users\"];\n+        [defaults synchronize];\n+        success();\n+    }\n+    failure();","path":"Training/ApiMock/ApiMock.m","position":31,"original_position":31,"commit_id":"900d597c229eb0529c01e5336ab04b37dc992064","original_commit_id":"900d597c229eb0529c01e5336ab04b37dc992064","user":{"login":"pablog","id":287281,"avatar_url":"https://avatars.githubusercontent.com/u/287281?v=3","gravatar_id":"","url":"https://api.github.com/users/pablog","html_url":"https://github.com/pablog","followers_url":"https://api.github.com/users/pablog/followers","following_url":"https://api.github.com/users/pablog/following{/other_user}","gists_url":"https://api.github.com/users/pablog/gists{/gist_id}","starred_url":"https://api.github.com/users/pablog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pablog/subscriptions","organizations_url":"https://api.github.com/users/pablog/orgs","repos_url":"https://api.github.com/users/pablog/repos","events_url":"https://api.github.com/users/pablog/events{/privacy}","received_events_url":"https://api.github.com/users/pablog/received_events","type":"User","site_admin":false},"body":"IDEM","created_at":"2015-03-12T15:22:01Z","updated_at":"2015-03-12T15:22:01Z","html_url":"https://github.com/mishuagopian/TrainingiOS/pull/2#discussion_r26311071","pull_request_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/comments/26311071"},"html":{"href":"https://github.com/mishuagopian/TrainingiOS/pull/2#discussion_r26311071"},"pull_request":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2","id":30190111,"html_url":"https://github.com/mishuagopian/TrainingiOS/pull/2","diff_url":"https://github.com/mishuagopian/TrainingiOS/pull/2.diff","patch_url":"https://github.com/mishuagopian/TrainingiOS/pull/2.patch","issue_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/2","number":2,"state":"open","locked":false,"title":"Log in and sign up","user":{"login":"mishuagopian","id":9448790,"avatar_url":"https://avatars.githubusercontent.com/u/9448790?v=3","gravatar_id":"","url":"https://api.github.com/users/mishuagopian","html_url":"https://github.com/mishuagopian","followers_url":"https://api.github.com/users/mishuagopian/followers","following_url":"https://api.github.com/users/mishuagopian/following{/other_user}","gists_url":"https://api.github.com/users/mishuagopian/gists{/gist_id}","starred_url":"https://api.github.com/users/mishuagopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishuagopian/subscriptions","organizations_url":"https://api.github.com/users/mishuagopian/orgs","repos_url":"https://api.github.com/users/mishuagopian/repos","events_url":"https://api.github.com/users/mishuagopian/events{/privacy}","received_events_url":"https://api.github.com/users/mishuagopian/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-27T18:43:30Z","updated_at":"2015-03-12T15:22:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afafd9ac4e77e565d1c13945fd7eb3ba0dd3456a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2/commits","review_comments_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2/comments","review_comment_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/2/comments","statuses_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/statuses/900d597c229eb0529c01e5336ab04b37dc992064","head":{"label":"mishuagopian:logInAndSignUp","ref":"logInAndSignUp","sha":"900d597c229eb0529c01e5336ab04b37dc992064","user":{"login":"mishuagopian","id":9448790,"avatar_url":"https://avatars.githubusercontent.com/u/9448790?v=3","gravatar_id":"","url":"https://api.github.com/users/mishuagopian","html_url":"https://github.com/mishuagopian","followers_url":"https://api.github.com/users/mishuagopian/followers","following_url":"https://api.github.com/users/mishuagopian/following{/other_user}","gists_url":"https://api.github.com/users/mishuagopian/gists{/gist_id}","starred_url":"https://api.github.com/users/mishuagopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishuagopian/subscriptions","organizations_url":"https://api.github.com/users/mishuagopian/orgs","repos_url":"https://api.github.com/users/mishuagopian/repos","events_url":"https://api.github.com/users/mishuagopian/events{/privacy}","received_events_url":"https://api.github.com/users/mishuagopian/received_events","type":"User","site_admin":false},"repo":{"id":31382891,"name":"TrainingiOS","full_name":"mishuagopian/TrainingiOS","owner":{"login":"mishuagopian","id":9448790,"avatar_url":"https://avatars.githubusercontent.com/u/9448790?v=3","gravatar_id":"","url":"https://api.github.com/users/mishuagopian","html_url":"https://github.com/mishuagopian","followers_url":"https://api.github.com/users/mishuagopian/followers","following_url":"https://api.github.com/users/mishuagopian/following{/other_user}","gists_url":"https://api.github.com/users/mishuagopian/gists{/gist_id}","starred_url":"https://api.github.com/users/mishuagopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishuagopian/subscriptions","organizations_url":"https://api.github.com/users/mishuagopian/orgs","repos_url":"https://api.github.com/users/mishuagopian/repos","events_url":"https://api.github.com/users/mishuagopian/events{/privacy}","received_events_url":"https://api.github.com/users/mishuagopian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mishuagopian/TrainingiOS","description":"Training iOS","fork":false,"url":"https://api.github.com/repos/mishuagopian/TrainingiOS","forks_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/forks","keys_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/teams","hooks_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/hooks","issue_events_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/events{/number}","events_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/events","assignees_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/assignees{/user}","branches_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/branches{/branch}","tags_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/tags","blobs_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/statuses/{sha}","languages_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/languages","stargazers_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/stargazers","contributors_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/contributors","subscribers_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/subscribers","subscription_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/subscription","commits_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/contents/{+path}","compare_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/merges","archive_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/downloads","issues_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues{/number}","pulls_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls{/number}","milestones_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/milestones{/number}","notifications_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/labels{/name}","releases_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/releases{/id}","created_at":"2015-02-26T18:48:12Z","updated_at":"2015-02-26T18:48:12Z","pushed_at":"2015-03-12T15:11:58Z","git_url":"git://github.com/mishuagopian/TrainingiOS.git","ssh_url":"git@github.com:mishuagopian/TrainingiOS.git","clone_url":"https://github.com/mishuagopian/TrainingiOS.git","svn_url":"https://github.com/mishuagopian/TrainingiOS","homepage":null,"size":404,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"mishuagopian:master","ref":"master","sha":"eb493cb6c6c723e28ed11270801c770d419a2f62","user":{"login":"mishuagopian","id":9448790,"avatar_url":"https://avatars.githubusercontent.com/u/9448790?v=3","gravatar_id":"","url":"https://api.github.com/users/mishuagopian","html_url":"https://github.com/mishuagopian","followers_url":"https://api.github.com/users/mishuagopian/followers","following_url":"https://api.github.com/users/mishuagopian/following{/other_user}","gists_url":"https://api.github.com/users/mishuagopian/gists{/gist_id}","starred_url":"https://api.github.com/users/mishuagopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishuagopian/subscriptions","organizations_url":"https://api.github.com/users/mishuagopian/orgs","repos_url":"https://api.github.com/users/mishuagopian/repos","events_url":"https://api.github.com/users/mishuagopian/events{/privacy}","received_events_url":"https://api.github.com/users/mishuagopian/received_events","type":"User","site_admin":false},"repo":{"id":31382891,"name":"TrainingiOS","full_name":"mishuagopian/TrainingiOS","owner":{"login":"mishuagopian","id":9448790,"avatar_url":"https://avatars.githubusercontent.com/u/9448790?v=3","gravatar_id":"","url":"https://api.github.com/users/mishuagopian","html_url":"https://github.com/mishuagopian","followers_url":"https://api.github.com/users/mishuagopian/followers","following_url":"https://api.github.com/users/mishuagopian/following{/other_user}","gists_url":"https://api.github.com/users/mishuagopian/gists{/gist_id}","starred_url":"https://api.github.com/users/mishuagopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mishuagopian/subscriptions","organizations_url":"https://api.github.com/users/mishuagopian/orgs","repos_url":"https://api.github.com/users/mishuagopian/repos","events_url":"https://api.github.com/users/mishuagopian/events{/privacy}","received_events_url":"https://api.github.com/users/mishuagopian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mishuagopian/TrainingiOS","description":"Training iOS","fork":false,"url":"https://api.github.com/repos/mishuagopian/TrainingiOS","forks_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/forks","keys_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/teams","hooks_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/hooks","issue_events_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/events{/number}","events_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/events","assignees_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/assignees{/user}","branches_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/branches{/branch}","tags_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/tags","blobs_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/statuses/{sha}","languages_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/languages","stargazers_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/stargazers","contributors_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/contributors","subscribers_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/subscribers","subscription_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/subscription","commits_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/contents/{+path}","compare_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/merges","archive_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/downloads","issues_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues{/number}","pulls_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls{/number}","milestones_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/milestones{/number}","notifications_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/labels{/name}","releases_url":"https://api.github.com/repos/mishuagopian/TrainingiOS/releases{/id}","created_at":"2015-02-26T18:48:12Z","updated_at":"2015-02-26T18:48:12Z","pushed_at":"2015-03-12T15:11:58Z","git_url":"git://github.com/mishuagopian/TrainingiOS.git","ssh_url":"git@github.com:mishuagopian/TrainingiOS.git","clone_url":"https://github.com/mishuagopian/TrainingiOS.git","svn_url":"https://github.com/mishuagopian/TrainingiOS","homepage":null,"size":404,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2"},"html":{"href":"https://github.com/mishuagopian/TrainingiOS/pull/2"},"issue":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/2"},"comments":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/mishuagopian/TrainingiOS/statuses/900d597c229eb0529c01e5336ab04b37dc992064"}}}}