{"action":"created","comment":{"url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments/51533012","id":51533012,"diff_hunk":"@@ -0,0 +1,46 @@\n+//\n+//  SCParseManager+SCLocalStorage.m\n+//  syncano-ios\n+//\n+//  Created by Jan Lipmann on 05/11/15.\n+//  Copyright © 2015 Syncano. All rights reserved.\n+//\n+\n+#import \"SCParseManager+SCLocalStorage.h\"\n+#import \"Mantle.h\"\n+#import \"SCDataObject.h\"\n+#import \"SCRegisterManager.h\"\n+\n+@implementation SCParseManager (SCLocalStorage)\n+- (NSDictionary *)JSONRepresentationOfDataObject:(SCDataObject *)dataObject error:(NSError *__autoreleasing *)error {\n+    NSDictionary *serialized = [MTLJSONAdapter JSONDictionaryFromModel:dataObject error:nil];\n+    NSDictionary *relations = [SCRegisterManager relationsForClass:[dataObject class]];\n+    if (relations.count > 0) {\n+        NSMutableDictionary *mutableSerialized = serialized.mutableCopy;","path":"syncano-ios/SCParseManager+SCLocalStorage.m","position":19,"original_position":19,"commit_id":"c694877db0b4ef4980bf115fed33d7f605e63873","original_commit_id":"c694877db0b4ef4980bf115fed33d7f605e63873","user":{"login":"trapi","id":491783,"avatar_url":"https://avatars.githubusercontent.com/u/491783?v=3","gravatar_id":"","url":"https://api.github.com/users/trapi","html_url":"https://github.com/trapi","followers_url":"https://api.github.com/users/trapi/followers","following_url":"https://api.github.com/users/trapi/following{/other_user}","gists_url":"https://api.github.com/users/trapi/gists{/gist_id}","starred_url":"https://api.github.com/users/trapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trapi/subscriptions","organizations_url":"https://api.github.com/users/trapi/orgs","repos_url":"https://api.github.com/users/trapi/repos","events_url":"https://api.github.com/users/trapi/events{/privacy}","received_events_url":"https://api.github.com/users/trapi/received_events","type":"User","site_admin":false},"body":"[serialized mutableCopy];","created_at":"2016-02-02T07:22:06Z","updated_at":"2016-02-02T07:22:06Z","html_url":"https://github.com/Syncano/syncano-ios/pull/66#discussion_r51533012","pull_request_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments/51533012"},"html":{"href":"https://github.com/Syncano/syncano-ios/pull/66#discussion_r51533012"},"pull_request":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66","id":57831180,"html_url":"https://github.com/Syncano/syncano-ios/pull/66","diff_url":"https://github.com/Syncano/syncano-ios/pull/66.diff","patch_url":"https://github.com/Syncano/syncano-ios/pull/66.patch","issue_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/66","number":66,"state":"open","locked":false,"title":"Offline support","user":{"login":"jaskooo","id":369252,"avatar_url":"https://avatars.githubusercontent.com/u/369252?v=3","gravatar_id":"","url":"https://api.github.com/users/jaskooo","html_url":"https://github.com/jaskooo","followers_url":"https://api.github.com/users/jaskooo/followers","following_url":"https://api.github.com/users/jaskooo/following{/other_user}","gists_url":"https://api.github.com/users/jaskooo/gists{/gist_id}","starred_url":"https://api.github.com/users/jaskooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaskooo/subscriptions","organizations_url":"https://api.github.com/users/jaskooo/orgs","repos_url":"https://api.github.com/users/jaskooo/repos","events_url":"https://api.github.com/users/jaskooo/events{/privacy}","received_events_url":"https://api.github.com/users/jaskooo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-01T12:09:47Z","updated_at":"2016-02-02T07:22:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"818defec08266dd864553ed83fdc5b201f5af1f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66/commits","review_comments_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66/comments","review_comment_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/66/comments","statuses_url":"https://api.github.com/repos/Syncano/syncano-ios/statuses/c694877db0b4ef4980bf115fed33d7f605e63873","head":{"label":"Syncano:offline-support","ref":"offline-support","sha":"c694877db0b4ef4980bf115fed33d7f605e63873","user":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"repo":{"id":18832511,"name":"syncano-ios","full_name":"Syncano/syncano-ios","owner":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Syncano/syncano-ios","description":"iOS library for http://syncano.com API","fork":false,"url":"https://api.github.com/repos/Syncano/syncano-ios","forks_url":"https://api.github.com/repos/Syncano/syncano-ios/forks","keys_url":"https://api.github.com/repos/Syncano/syncano-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syncano/syncano-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syncano/syncano-ios/teams","hooks_url":"https://api.github.com/repos/Syncano/syncano-ios/hooks","issue_events_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Syncano/syncano-ios/events","assignees_url":"https://api.github.com/repos/Syncano/syncano-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Syncano/syncano-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Syncano/syncano-ios/tags","blobs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syncano/syncano-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syncano/syncano-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syncano/syncano-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Syncano/syncano-ios/languages","stargazers_url":"https://api.github.com/repos/Syncano/syncano-ios/stargazers","contributors_url":"https://api.github.com/repos/Syncano/syncano-ios/contributors","subscribers_url":"https://api.github.com/repos/Syncano/syncano-ios/subscribers","subscription_url":"https://api.github.com/repos/Syncano/syncano-ios/subscription","commits_url":"https://api.github.com/repos/Syncano/syncano-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syncano/syncano-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syncano/syncano-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syncano/syncano-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Syncano/syncano-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syncano/syncano-ios/merges","archive_url":"https://api.github.com/repos/Syncano/syncano-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syncano/syncano-ios/downloads","issues_url":"https://api.github.com/repos/Syncano/syncano-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Syncano/syncano-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Syncano/syncano-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syncano/syncano-ios/labels{/name}","releases_url":"https://api.github.com/repos/Syncano/syncano-ios/releases{/id}","deployments_url":"https://api.github.com/repos/Syncano/syncano-ios/deployments","created_at":"2014-04-16T08:29:30Z","updated_at":"2016-01-29T09:53:35Z","pushed_at":"2016-02-01T15:27:28Z","git_url":"git://github.com/Syncano/syncano-ios.git","ssh_url":"git@github.com:Syncano/syncano-ios.git","clone_url":"https://github.com/Syncano/syncano-ios.git","svn_url":"https://github.com/Syncano/syncano-ios","homepage":"","size":731,"stargazers_count":8,"watchers_count":8,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"Syncano:develop","ref":"develop","sha":"e43f0c232632832e4e4e669a4fe8ee2d7752244a","user":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"repo":{"id":18832511,"name":"syncano-ios","full_name":"Syncano/syncano-ios","owner":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Syncano/syncano-ios","description":"iOS library for http://syncano.com API","fork":false,"url":"https://api.github.com/repos/Syncano/syncano-ios","forks_url":"https://api.github.com/repos/Syncano/syncano-ios/forks","keys_url":"https://api.github.com/repos/Syncano/syncano-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syncano/syncano-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syncano/syncano-ios/teams","hooks_url":"https://api.github.com/repos/Syncano/syncano-ios/hooks","issue_events_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Syncano/syncano-ios/events","assignees_url":"https://api.github.com/repos/Syncano/syncano-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Syncano/syncano-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Syncano/syncano-ios/tags","blobs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syncano/syncano-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syncano/syncano-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syncano/syncano-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Syncano/syncano-ios/languages","stargazers_url":"https://api.github.com/repos/Syncano/syncano-ios/stargazers","contributors_url":"https://api.github.com/repos/Syncano/syncano-ios/contributors","subscribers_url":"https://api.github.com/repos/Syncano/syncano-ios/subscribers","subscription_url":"https://api.github.com/repos/Syncano/syncano-ios/subscription","commits_url":"https://api.github.com/repos/Syncano/syncano-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syncano/syncano-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syncano/syncano-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syncano/syncano-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Syncano/syncano-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syncano/syncano-ios/merges","archive_url":"https://api.github.com/repos/Syncano/syncano-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syncano/syncano-ios/downloads","issues_url":"https://api.github.com/repos/Syncano/syncano-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Syncano/syncano-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Syncano/syncano-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syncano/syncano-ios/labels{/name}","releases_url":"https://api.github.com/repos/Syncano/syncano-ios/releases{/id}","deployments_url":"https://api.github.com/repos/Syncano/syncano-ios/deployments","created_at":"2014-04-16T08:29:30Z","updated_at":"2016-01-29T09:53:35Z","pushed_at":"2016-02-01T15:27:28Z","git_url":"git://github.com/Syncano/syncano-ios.git","ssh_url":"git@github.com:Syncano/syncano-ios.git","clone_url":"https://github.com/Syncano/syncano-ios.git","svn_url":"https://github.com/Syncano/syncano-ios","homepage":"","size":731,"stargazers_count":8,"watchers_count":8,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66"},"html":{"href":"https://github.com/Syncano/syncano-ios/pull/66"},"issue":{"href":"https://api.github.com/repos/Syncano/syncano-ios/issues/66"},"comments":{"href":"https://api.github.com/repos/Syncano/syncano-ios/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/Syncano/syncano-ios/statuses/c694877db0b4ef4980bf115fed33d7f605e63873"}}}}