{"action":"created","comment":{"url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/comments/45917545","id":45917545,"diff_hunk":"@@ -0,0 +1,33 @@\n+//\n+//  InstaPost.swift\n+//  GreatPics-Swift\n+//\n+//  Created by kateryna.zaikina on 11/24/15.\n+//  Copyright © 2015 kateryna.zaikina. All rights reserved.\n+//\n+\n+import Foundation\n+import CoreData\n+\n+class InstaPost: NSManagedObject {\n+    \n+    func updateWithDictionary(responseObject: [String : AnyObject]?) {\n+        if let id = responseObject?[\"id\"] as? String {\n+            identifier = id\n+        }\n+        if let caption = responseObject?[\"caption\"] as? [String : AnyObject] {","path":"GreatPics-Swift/GreatPics-Swift/InstaPost.swift","position":18,"original_position":18,"commit_id":"e4fca3d7d4ff048279f3796cb614dedace7a4c97","original_commit_id":"e4fca3d7d4ff048279f3796cb614dedace7a4c97","user":{"login":"AEugene","id":8107146,"avatar_url":"https://avatars.githubusercontent.com/u/8107146?v=3","gravatar_id":"","url":"https://api.github.com/users/AEugene","html_url":"https://github.com/AEugene","followers_url":"https://api.github.com/users/AEugene/followers","following_url":"https://api.github.com/users/AEugene/following{/other_user}","gists_url":"https://api.github.com/users/AEugene/gists{/gist_id}","starred_url":"https://api.github.com/users/AEugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AEugene/subscriptions","organizations_url":"https://api.github.com/users/AEugene/orgs","repos_url":"https://api.github.com/users/AEugene/repos","events_url":"https://api.github.com/users/AEugene/events{/privacy}","received_events_url":"https://api.github.com/users/AEugene/received_events","type":"User","site_admin":false},"body":"Кстати забыл тебе рассказать  что let можно писать через запятую т.е. if  let caption = responseObject?[\"caption\"] as? [String : AnyObject], let text = caption[\"text\"] as? String {\r\nself.text = text\r\n}","created_at":"2015-11-25T20:49:50Z","updated_at":"2015-11-25T20:49:50Z","html_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-/pull/5#discussion_r45917545","pull_request_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/comments/45917545"},"html":{"href":"https://github.com/KaterynaZaikina/GreatPics-Swift-/pull/5#discussion_r45917545"},"pull_request":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5","id":51819020,"html_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-/pull/5","diff_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-/pull/5.diff","patch_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-/pull/5.patch","issue_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/5","number":5,"state":"open","locked":false,"title":"Core data","user":{"login":"KaterynaZaikina","id":10772596,"avatar_url":"https://avatars.githubusercontent.com/u/10772596?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterynaZaikina","html_url":"https://github.com/KaterynaZaikina","followers_url":"https://api.github.com/users/KaterynaZaikina/followers","following_url":"https://api.github.com/users/KaterynaZaikina/following{/other_user}","gists_url":"https://api.github.com/users/KaterynaZaikina/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterynaZaikina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterynaZaikina/subscriptions","organizations_url":"https://api.github.com/users/KaterynaZaikina/orgs","repos_url":"https://api.github.com/users/KaterynaZaikina/repos","events_url":"https://api.github.com/users/KaterynaZaikina/events{/privacy}","received_events_url":"https://api.github.com/users/KaterynaZaikina/received_events","type":"User","site_admin":false},"body":"Mapping JSON, working on InstaPostManager class logic","created_at":"2015-11-25T16:49:01Z","updated_at":"2015-11-25T20:49:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51488aa0195ecbc37fe2811c65a98048699320f7","assignee":{"login":"AEugene","id":8107146,"avatar_url":"https://avatars.githubusercontent.com/u/8107146?v=3","gravatar_id":"","url":"https://api.github.com/users/AEugene","html_url":"https://github.com/AEugene","followers_url":"https://api.github.com/users/AEugene/followers","following_url":"https://api.github.com/users/AEugene/following{/other_user}","gists_url":"https://api.github.com/users/AEugene/gists{/gist_id}","starred_url":"https://api.github.com/users/AEugene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AEugene/subscriptions","organizations_url":"https://api.github.com/users/AEugene/orgs","repos_url":"https://api.github.com/users/AEugene/repos","events_url":"https://api.github.com/users/AEugene/events{/privacy}","received_events_url":"https://api.github.com/users/AEugene/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5/commits","review_comments_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5/comments","review_comment_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/5/comments","statuses_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/statuses/e4fca3d7d4ff048279f3796cb614dedace7a4c97","head":{"label":"KaterynaZaikina:coreData","ref":"coreData","sha":"e4fca3d7d4ff048279f3796cb614dedace7a4c97","user":{"login":"KaterynaZaikina","id":10772596,"avatar_url":"https://avatars.githubusercontent.com/u/10772596?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterynaZaikina","html_url":"https://github.com/KaterynaZaikina","followers_url":"https://api.github.com/users/KaterynaZaikina/followers","following_url":"https://api.github.com/users/KaterynaZaikina/following{/other_user}","gists_url":"https://api.github.com/users/KaterynaZaikina/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterynaZaikina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterynaZaikina/subscriptions","organizations_url":"https://api.github.com/users/KaterynaZaikina/orgs","repos_url":"https://api.github.com/users/KaterynaZaikina/repos","events_url":"https://api.github.com/users/KaterynaZaikina/events{/privacy}","received_events_url":"https://api.github.com/users/KaterynaZaikina/received_events","type":"User","site_admin":false},"repo":{"id":46713865,"name":"GreatPics-Swift-","full_name":"KaterynaZaikina/GreatPics-Swift-","owner":{"login":"KaterynaZaikina","id":10772596,"avatar_url":"https://avatars.githubusercontent.com/u/10772596?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterynaZaikina","html_url":"https://github.com/KaterynaZaikina","followers_url":"https://api.github.com/users/KaterynaZaikina/followers","following_url":"https://api.github.com/users/KaterynaZaikina/following{/other_user}","gists_url":"https://api.github.com/users/KaterynaZaikina/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterynaZaikina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterynaZaikina/subscriptions","organizations_url":"https://api.github.com/users/KaterynaZaikina/orgs","repos_url":"https://api.github.com/users/KaterynaZaikina/repos","events_url":"https://api.github.com/users/KaterynaZaikina/events{/privacy}","received_events_url":"https://api.github.com/users/KaterynaZaikina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-","description":"Yalantis","fork":false,"url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-","forks_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/forks","keys_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/teams","hooks_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/hooks","issue_events_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/events{/number}","events_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/events","assignees_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/assignees{/user}","branches_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/branches{/branch}","tags_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/tags","blobs_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/statuses/{sha}","languages_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/languages","stargazers_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/stargazers","contributors_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/contributors","subscribers_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/subscribers","subscription_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/subscription","commits_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/contents/{+path}","compare_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/merges","archive_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/downloads","issues_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues{/number}","pulls_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls{/number}","milestones_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/milestones{/number}","notifications_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/labels{/name}","releases_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/releases{/id}","created_at":"2015-11-23T10:46:11Z","updated_at":"2015-11-23T18:34:52Z","pushed_at":"2015-11-25T16:49:01Z","git_url":"git://github.com/KaterynaZaikina/GreatPics-Swift-.git","ssh_url":"git@github.com:KaterynaZaikina/GreatPics-Swift-.git","clone_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-.git","svn_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-","homepage":"","size":196,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"KaterynaZaikina:develop","ref":"develop","sha":"5b3c62506634b0840102e6fc4b1f334a65760e1b","user":{"login":"KaterynaZaikina","id":10772596,"avatar_url":"https://avatars.githubusercontent.com/u/10772596?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterynaZaikina","html_url":"https://github.com/KaterynaZaikina","followers_url":"https://api.github.com/users/KaterynaZaikina/followers","following_url":"https://api.github.com/users/KaterynaZaikina/following{/other_user}","gists_url":"https://api.github.com/users/KaterynaZaikina/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterynaZaikina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterynaZaikina/subscriptions","organizations_url":"https://api.github.com/users/KaterynaZaikina/orgs","repos_url":"https://api.github.com/users/KaterynaZaikina/repos","events_url":"https://api.github.com/users/KaterynaZaikina/events{/privacy}","received_events_url":"https://api.github.com/users/KaterynaZaikina/received_events","type":"User","site_admin":false},"repo":{"id":46713865,"name":"GreatPics-Swift-","full_name":"KaterynaZaikina/GreatPics-Swift-","owner":{"login":"KaterynaZaikina","id":10772596,"avatar_url":"https://avatars.githubusercontent.com/u/10772596?v=3","gravatar_id":"","url":"https://api.github.com/users/KaterynaZaikina","html_url":"https://github.com/KaterynaZaikina","followers_url":"https://api.github.com/users/KaterynaZaikina/followers","following_url":"https://api.github.com/users/KaterynaZaikina/following{/other_user}","gists_url":"https://api.github.com/users/KaterynaZaikina/gists{/gist_id}","starred_url":"https://api.github.com/users/KaterynaZaikina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KaterynaZaikina/subscriptions","organizations_url":"https://api.github.com/users/KaterynaZaikina/orgs","repos_url":"https://api.github.com/users/KaterynaZaikina/repos","events_url":"https://api.github.com/users/KaterynaZaikina/events{/privacy}","received_events_url":"https://api.github.com/users/KaterynaZaikina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-","description":"Yalantis","fork":false,"url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-","forks_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/forks","keys_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/teams","hooks_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/hooks","issue_events_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/events{/number}","events_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/events","assignees_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/assignees{/user}","branches_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/branches{/branch}","tags_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/tags","blobs_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/refs{/sha}","trees_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/statuses/{sha}","languages_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/languages","stargazers_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/stargazers","contributors_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/contributors","subscribers_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/subscribers","subscription_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/subscription","commits_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/commits{/sha}","git_commits_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/git/commits{/sha}","comments_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/comments{/number}","issue_comment_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/comments{/number}","contents_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/contents/{+path}","compare_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/merges","archive_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/downloads","issues_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues{/number}","pulls_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls{/number}","milestones_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/milestones{/number}","notifications_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/labels{/name}","releases_url":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/releases{/id}","created_at":"2015-11-23T10:46:11Z","updated_at":"2015-11-23T18:34:52Z","pushed_at":"2015-11-25T16:49:01Z","git_url":"git://github.com/KaterynaZaikina/GreatPics-Swift-.git","ssh_url":"git@github.com:KaterynaZaikina/GreatPics-Swift-.git","clone_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-.git","svn_url":"https://github.com/KaterynaZaikina/GreatPics-Swift-","homepage":"","size":196,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5"},"html":{"href":"https://github.com/KaterynaZaikina/GreatPics-Swift-/pull/5"},"issue":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/5"},"comments":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/KaterynaZaikina/GreatPics-Swift-/statuses/e4fca3d7d4ff048279f3796cb614dedace7a4c97"}}}}