{"action":"created","comment":{"url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/comments/87702848","pull_request_review_id":8306837,"id":87702848,"diff_hunk":"@@ -7,3 +7,75 @@\n //\n \n import Foundation\n+import Realm\n+import STCommon\n+\n+public class STPost: RLMObject {\n+    var uuid: String?\n+    var post_type: STPostType?\n+    var body: NSString?\n+    var image_url: NSURL?\n+    var image_data: NSData?\n+    var video_url: NSURL?\n+    var mod_status: Bool?\n+    var submission_time: NSDate?\n+    var mod_acceptance_time: NSDate? //time of acceptance from host\n+    \n+    \n+    override init() {\n+        super.init()\n+    }\n+    \n+ \n+    //function to add or update submission to realm\n+    func addOrUpdateSubmission(newSubmission: STPost) {","path":"StreamIt/STDatabase/STPosts.swift","position":25,"original_position":25,"commit_id":"d8eb931d5caf4df669a90cd9bc833cc273d2e153","original_commit_id":"d8eb931d5caf4df669a90cd9bc833cc273d2e153","user":{"login":"agilecohix","id":15460405,"avatar_url":"https://avatars.githubusercontent.com/u/15460405?v=3","gravatar_id":"","url":"https://api.github.com/users/agilecohix","html_url":"https://github.com/agilecohix","followers_url":"https://api.github.com/users/agilecohix/followers","following_url":"https://api.github.com/users/agilecohix/following{/other_user}","gists_url":"https://api.github.com/users/agilecohix/gists{/gist_id}","starred_url":"https://api.github.com/users/agilecohix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilecohix/subscriptions","organizations_url":"https://api.github.com/users/agilecohix/orgs","repos_url":"https://api.github.com/users/agilecohix/repos","events_url":"https://api.github.com/users/agilecohix/events{/privacy}","received_events_url":"https://api.github.com/users/agilecohix/received_events","type":"User","site_admin":false},"body":"this should be `addOrUpdatePost`","created_at":"2016-11-13T00:09:21Z","updated_at":"2016-11-13T00:11:53Z","html_url":"https://github.com/agilecohix/3004GroupProject/pull/5#discussion_r87702848","pull_request_url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/comments/87702848"},"html":{"href":"https://github.com/agilecohix/3004GroupProject/pull/5#discussion_r87702848"},"pull_request":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5","id":93454633,"html_url":"https://github.com/agilecohix/3004GroupProject/pull/5","diff_url":"https://github.com/agilecohix/3004GroupProject/pull/5.diff","patch_url":"https://github.com/agilecohix/3004GroupProject/pull/5.patch","issue_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/5","number":5,"state":"open","locked":false,"title":"Ryan/new/add realm","user":{"login":"RPDiC","id":12258294,"avatar_url":"https://avatars.githubusercontent.com/u/12258294?v=3","gravatar_id":"","url":"https://api.github.com/users/RPDiC","html_url":"https://github.com/RPDiC","followers_url":"https://api.github.com/users/RPDiC/followers","following_url":"https://api.github.com/users/RPDiC/following{/other_user}","gists_url":"https://api.github.com/users/RPDiC/gists{/gist_id}","starred_url":"https://api.github.com/users/RPDiC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RPDiC/subscriptions","organizations_url":"https://api.github.com/users/RPDiC/orgs","repos_url":"https://api.github.com/users/RPDiC/repos","events_url":"https://api.github.com/users/RPDiC/events{/privacy}","received_events_url":"https://api.github.com/users/RPDiC/received_events","type":"User","site_admin":false},"body":"implemented additional functions and queries in the STPosts and STClients","created_at":"2016-11-12T22:44:13Z","updated_at":"2016-11-13T00:11:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dbdc67d26d736289f90e07b1a3c6c5cc4a90b1f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5/commits","review_comments_url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5/comments","review_comment_url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/5/comments","statuses_url":"https://api.github.com/repos/agilecohix/3004GroupProject/statuses/d8eb931d5caf4df669a90cd9bc833cc273d2e153","head":{"label":"agilecohix:ryan/new/add-realm","ref":"ryan/new/add-realm","sha":"d8eb931d5caf4df669a90cd9bc833cc273d2e153","user":{"login":"agilecohix","id":15460405,"avatar_url":"https://avatars.githubusercontent.com/u/15460405?v=3","gravatar_id":"","url":"https://api.github.com/users/agilecohix","html_url":"https://github.com/agilecohix","followers_url":"https://api.github.com/users/agilecohix/followers","following_url":"https://api.github.com/users/agilecohix/following{/other_user}","gists_url":"https://api.github.com/users/agilecohix/gists{/gist_id}","starred_url":"https://api.github.com/users/agilecohix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilecohix/subscriptions","organizations_url":"https://api.github.com/users/agilecohix/orgs","repos_url":"https://api.github.com/users/agilecohix/repos","events_url":"https://api.github.com/users/agilecohix/events{/privacy}","received_events_url":"https://api.github.com/users/agilecohix/received_events","type":"User","site_admin":false},"repo":{"id":68136174,"name":"3004GroupProject","full_name":"agilecohix/3004GroupProject","owner":{"login":"agilecohix","id":15460405,"avatar_url":"https://avatars.githubusercontent.com/u/15460405?v=3","gravatar_id":"","url":"https://api.github.com/users/agilecohix","html_url":"https://github.com/agilecohix","followers_url":"https://api.github.com/users/agilecohix/followers","following_url":"https://api.github.com/users/agilecohix/following{/other_user}","gists_url":"https://api.github.com/users/agilecohix/gists{/gist_id}","starred_url":"https://api.github.com/users/agilecohix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilecohix/subscriptions","organizations_url":"https://api.github.com/users/agilecohix/orgs","repos_url":"https://api.github.com/users/agilecohix/repos","events_url":"https://api.github.com/users/agilecohix/events{/privacy}","received_events_url":"https://api.github.com/users/agilecohix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agilecohix/3004GroupProject","description":"There goes 12 hours a week","fork":false,"url":"https://api.github.com/repos/agilecohix/3004GroupProject","forks_url":"https://api.github.com/repos/agilecohix/3004GroupProject/forks","keys_url":"https://api.github.com/repos/agilecohix/3004GroupProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agilecohix/3004GroupProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agilecohix/3004GroupProject/teams","hooks_url":"https://api.github.com/repos/agilecohix/3004GroupProject/hooks","issue_events_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/events{/number}","events_url":"https://api.github.com/repos/agilecohix/3004GroupProject/events","assignees_url":"https://api.github.com/repos/agilecohix/3004GroupProject/assignees{/user}","branches_url":"https://api.github.com/repos/agilecohix/3004GroupProject/branches{/branch}","tags_url":"https://api.github.com/repos/agilecohix/3004GroupProject/tags","blobs_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agilecohix/3004GroupProject/statuses/{sha}","languages_url":"https://api.github.com/repos/agilecohix/3004GroupProject/languages","stargazers_url":"https://api.github.com/repos/agilecohix/3004GroupProject/stargazers","contributors_url":"https://api.github.com/repos/agilecohix/3004GroupProject/contributors","subscribers_url":"https://api.github.com/repos/agilecohix/3004GroupProject/subscribers","subscription_url":"https://api.github.com/repos/agilecohix/3004GroupProject/subscription","commits_url":"https://api.github.com/repos/agilecohix/3004GroupProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/agilecohix/3004GroupProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/agilecohix/3004GroupProject/contents/{+path}","compare_url":"https://api.github.com/repos/agilecohix/3004GroupProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agilecohix/3004GroupProject/merges","archive_url":"https://api.github.com/repos/agilecohix/3004GroupProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agilecohix/3004GroupProject/downloads","issues_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues{/number}","pulls_url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls{/number}","milestones_url":"https://api.github.com/repos/agilecohix/3004GroupProject/milestones{/number}","notifications_url":"https://api.github.com/repos/agilecohix/3004GroupProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agilecohix/3004GroupProject/labels{/name}","releases_url":"https://api.github.com/repos/agilecohix/3004GroupProject/releases{/id}","deployments_url":"https://api.github.com/repos/agilecohix/3004GroupProject/deployments","created_at":"2016-09-13T18:32:03Z","updated_at":"2016-11-10T21:47:37Z","pushed_at":"2016-11-12T23:18:38Z","git_url":"git://github.com/agilecohix/3004GroupProject.git","ssh_url":"git@github.com:agilecohix/3004GroupProject.git","clone_url":"https://github.com/agilecohix/3004GroupProject.git","svn_url":"https://github.com/agilecohix/3004GroupProject","homepage":null,"size":421,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"agilecohix:master","ref":"master","sha":"f64866ca208f7600fd65450c4207d2d5e2506ce4","user":{"login":"agilecohix","id":15460405,"avatar_url":"https://avatars.githubusercontent.com/u/15460405?v=3","gravatar_id":"","url":"https://api.github.com/users/agilecohix","html_url":"https://github.com/agilecohix","followers_url":"https://api.github.com/users/agilecohix/followers","following_url":"https://api.github.com/users/agilecohix/following{/other_user}","gists_url":"https://api.github.com/users/agilecohix/gists{/gist_id}","starred_url":"https://api.github.com/users/agilecohix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilecohix/subscriptions","organizations_url":"https://api.github.com/users/agilecohix/orgs","repos_url":"https://api.github.com/users/agilecohix/repos","events_url":"https://api.github.com/users/agilecohix/events{/privacy}","received_events_url":"https://api.github.com/users/agilecohix/received_events","type":"User","site_admin":false},"repo":{"id":68136174,"name":"3004GroupProject","full_name":"agilecohix/3004GroupProject","owner":{"login":"agilecohix","id":15460405,"avatar_url":"https://avatars.githubusercontent.com/u/15460405?v=3","gravatar_id":"","url":"https://api.github.com/users/agilecohix","html_url":"https://github.com/agilecohix","followers_url":"https://api.github.com/users/agilecohix/followers","following_url":"https://api.github.com/users/agilecohix/following{/other_user}","gists_url":"https://api.github.com/users/agilecohix/gists{/gist_id}","starred_url":"https://api.github.com/users/agilecohix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilecohix/subscriptions","organizations_url":"https://api.github.com/users/agilecohix/orgs","repos_url":"https://api.github.com/users/agilecohix/repos","events_url":"https://api.github.com/users/agilecohix/events{/privacy}","received_events_url":"https://api.github.com/users/agilecohix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agilecohix/3004GroupProject","description":"There goes 12 hours a week","fork":false,"url":"https://api.github.com/repos/agilecohix/3004GroupProject","forks_url":"https://api.github.com/repos/agilecohix/3004GroupProject/forks","keys_url":"https://api.github.com/repos/agilecohix/3004GroupProject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agilecohix/3004GroupProject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agilecohix/3004GroupProject/teams","hooks_url":"https://api.github.com/repos/agilecohix/3004GroupProject/hooks","issue_events_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/events{/number}","events_url":"https://api.github.com/repos/agilecohix/3004GroupProject/events","assignees_url":"https://api.github.com/repos/agilecohix/3004GroupProject/assignees{/user}","branches_url":"https://api.github.com/repos/agilecohix/3004GroupProject/branches{/branch}","tags_url":"https://api.github.com/repos/agilecohix/3004GroupProject/tags","blobs_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/refs{/sha}","trees_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agilecohix/3004GroupProject/statuses/{sha}","languages_url":"https://api.github.com/repos/agilecohix/3004GroupProject/languages","stargazers_url":"https://api.github.com/repos/agilecohix/3004GroupProject/stargazers","contributors_url":"https://api.github.com/repos/agilecohix/3004GroupProject/contributors","subscribers_url":"https://api.github.com/repos/agilecohix/3004GroupProject/subscribers","subscription_url":"https://api.github.com/repos/agilecohix/3004GroupProject/subscription","commits_url":"https://api.github.com/repos/agilecohix/3004GroupProject/commits{/sha}","git_commits_url":"https://api.github.com/repos/agilecohix/3004GroupProject/git/commits{/sha}","comments_url":"https://api.github.com/repos/agilecohix/3004GroupProject/comments{/number}","issue_comment_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/comments{/number}","contents_url":"https://api.github.com/repos/agilecohix/3004GroupProject/contents/{+path}","compare_url":"https://api.github.com/repos/agilecohix/3004GroupProject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agilecohix/3004GroupProject/merges","archive_url":"https://api.github.com/repos/agilecohix/3004GroupProject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agilecohix/3004GroupProject/downloads","issues_url":"https://api.github.com/repos/agilecohix/3004GroupProject/issues{/number}","pulls_url":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls{/number}","milestones_url":"https://api.github.com/repos/agilecohix/3004GroupProject/milestones{/number}","notifications_url":"https://api.github.com/repos/agilecohix/3004GroupProject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agilecohix/3004GroupProject/labels{/name}","releases_url":"https://api.github.com/repos/agilecohix/3004GroupProject/releases{/id}","deployments_url":"https://api.github.com/repos/agilecohix/3004GroupProject/deployments","created_at":"2016-09-13T18:32:03Z","updated_at":"2016-11-10T21:47:37Z","pushed_at":"2016-11-12T23:18:38Z","git_url":"git://github.com/agilecohix/3004GroupProject.git","ssh_url":"git@github.com:agilecohix/3004GroupProject.git","clone_url":"https://github.com/agilecohix/3004GroupProject.git","svn_url":"https://github.com/agilecohix/3004GroupProject","homepage":null,"size":421,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5"},"html":{"href":"https://github.com/agilecohix/3004GroupProject/pull/5"},"issue":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/5"},"comments":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/agilecohix/3004GroupProject/statuses/d8eb931d5caf4df669a90cd9bc833cc273d2e153"}}}}
{"actor":{"display_login":"agilecohix"}}