{"action":"created","comment":{"url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/comments/84772117","pull_request_review_id":5528345,"id":84772117,"diff_hunk":"@@ -0,0 +1,54 @@\n+package ly.generalassemb.drewmahrt.tictactoe;\n+\n+import android.util.Log;\n+\n+/**\n+ * Created by NikitaShuvalov on 10/23/16.\n+ */\n+\n+public class GameResult {\n+    private String mp1Name, mp2Name, mWinner;\n+    private int[] mGameState;\n+    private int mGameID;\n+\n+    public GameResult(String p1Name, String p2Name, String winner, String gameStateText, int gameID){\n+        mp1Name = p1Name;\n+        mp2Name = p2Name;\n+        mWinner = winner;\n+        mGameState = stringIntToIntArray(gameStateText);\n+        mGameID = gameID;\n+    }\n+\n+    //Changes gamestate from text to int array. Since SQL can't hold arrays,\n+    //I held the array as an int string. This changes it back to an array.\n+    public static int[] stringIntToIntArray(String stringInt){\n+        int[] intArray = new int[9];\n+        char[] charArray = stringInt.toCharArray();\n+        for (int i =0; i<9; i++) {\n+            intArray[i]= Integer.valueOf(charArray[i])-48;\n+            //Thought that I could just change a char '0' to int 0, but I found that's not exactly how it works.\n+            // Subtracted 48 from the resulting value to get the intended value.","path":"starter-code/TicTacToe/app/src/main/java/ly/generalassemb/drewmahrt/tictactoe/GameResult.java","position":30,"original_position":30,"commit_id":"2b6c33d1104d100d149ea129213ccd0c721c680f","original_commit_id":"2b6c33d1104d100d149ea129213ccd0c721c680f","user":{"login":"charlesdrews","id":6901943,"avatar_url":"https://avatars.githubusercontent.com/u/6901943?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesdrews","html_url":"https://github.com/charlesdrews","followers_url":"https://api.github.com/users/charlesdrews/followers","following_url":"https://api.github.com/users/charlesdrews/following{/other_user}","gists_url":"https://api.github.com/users/charlesdrews/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesdrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesdrews/subscriptions","organizations_url":"https://api.github.com/users/charlesdrews/orgs","repos_url":"https://api.github.com/users/charlesdrews/repos","events_url":"https://api.github.com/users/charlesdrews/events{/privacy}","received_events_url":"https://api.github.com/users/charlesdrews/received_events","type":"User","site_admin":false},"body":"The character '0' is at position 48 on the ascii table: http://www.asciitable.com/","created_at":"2016-10-24T20:08:28Z","updated_at":"2016-10-24T20:08:28Z","html_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw/pull/3#discussion_r84772117","pull_request_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/comments/84772117"},"html":{"href":"https://github.com/ga-adi-macaron/tic-tac-toe-hw/pull/3#discussion_r84772117"},"pull_request":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3","id":90526537,"html_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw/pull/3","diff_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw/pull/3.diff","patch_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw/pull/3.patch","issue_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues/3","number":3,"state":"open","locked":false,"title":"Nikita Toes & Tic-Tacs","user":{"login":"NikShuvalov","id":22504391,"avatar_url":"https://avatars.githubusercontent.com/u/22504391?v=3","gravatar_id":"","url":"https://api.github.com/users/NikShuvalov","html_url":"https://github.com/NikShuvalov","followers_url":"https://api.github.com/users/NikShuvalov/followers","following_url":"https://api.github.com/users/NikShuvalov/following{/other_user}","gists_url":"https://api.github.com/users/NikShuvalov/gists{/gist_id}","starred_url":"https://api.github.com/users/NikShuvalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikShuvalov/subscriptions","organizations_url":"https://api.github.com/users/NikShuvalov/orgs","repos_url":"https://api.github.com/users/NikShuvalov/repos","events_url":"https://api.github.com/users/NikShuvalov/events{/privacy}","received_events_url":"https://api.github.com/users/NikShuvalov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-23T19:29:26Z","updated_at":"2016-10-24T20:09:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d2adfdbc095750fdf4df795a5c338e981d72eb4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues/3/comments","statuses_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/statuses/2b6c33d1104d100d149ea129213ccd0c721c680f","head":{"label":"NikShuvalov:master","ref":"master","sha":"2b6c33d1104d100d149ea129213ccd0c721c680f","user":{"login":"NikShuvalov","id":22504391,"avatar_url":"https://avatars.githubusercontent.com/u/22504391?v=3","gravatar_id":"","url":"https://api.github.com/users/NikShuvalov","html_url":"https://github.com/NikShuvalov","followers_url":"https://api.github.com/users/NikShuvalov/followers","following_url":"https://api.github.com/users/NikShuvalov/following{/other_user}","gists_url":"https://api.github.com/users/NikShuvalov/gists{/gist_id}","starred_url":"https://api.github.com/users/NikShuvalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikShuvalov/subscriptions","organizations_url":"https://api.github.com/users/NikShuvalov/orgs","repos_url":"https://api.github.com/users/NikShuvalov/repos","events_url":"https://api.github.com/users/NikShuvalov/events{/privacy}","received_events_url":"https://api.github.com/users/NikShuvalov/received_events","type":"User","site_admin":false},"repo":{"id":71593681,"name":"tic-tac-toe-hw","full_name":"NikShuvalov/tic-tac-toe-hw","owner":{"login":"NikShuvalov","id":22504391,"avatar_url":"https://avatars.githubusercontent.com/u/22504391?v=3","gravatar_id":"","url":"https://api.github.com/users/NikShuvalov","html_url":"https://github.com/NikShuvalov","followers_url":"https://api.github.com/users/NikShuvalov/followers","following_url":"https://api.github.com/users/NikShuvalov/following{/other_user}","gists_url":"https://api.github.com/users/NikShuvalov/gists{/gist_id}","starred_url":"https://api.github.com/users/NikShuvalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikShuvalov/subscriptions","organizations_url":"https://api.github.com/users/NikShuvalov/orgs","repos_url":"https://api.github.com/users/NikShuvalov/repos","events_url":"https://api.github.com/users/NikShuvalov/events{/privacy}","received_events_url":"https://api.github.com/users/NikShuvalov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NikShuvalov/tic-tac-toe-hw","description":null,"fork":true,"url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw","forks_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/forks","keys_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/teams","hooks_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/hooks","issue_events_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/issues/events{/number}","events_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/events","assignees_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/assignees{/user}","branches_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/branches{/branch}","tags_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/tags","blobs_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/git/refs{/sha}","trees_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/statuses/{sha}","languages_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/languages","stargazers_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/stargazers","contributors_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/contributors","subscribers_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/subscribers","subscription_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/subscription","commits_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/commits{/sha}","git_commits_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/git/commits{/sha}","comments_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/comments{/number}","issue_comment_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/issues/comments{/number}","contents_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/contents/{+path}","compare_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/merges","archive_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/downloads","issues_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/issues{/number}","pulls_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/pulls{/number}","milestones_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/milestones{/number}","notifications_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/labels{/name}","releases_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/releases{/id}","deployments_url":"https://api.github.com/repos/NikShuvalov/tic-tac-toe-hw/deployments","created_at":"2016-10-21T20:19:10Z","updated_at":"2016-10-21T20:19:11Z","pushed_at":"2016-10-24T11:22:11Z","git_url":"git://github.com/NikShuvalov/tic-tac-toe-hw.git","ssh_url":"git@github.com:NikShuvalov/tic-tac-toe-hw.git","clone_url":"https://github.com/NikShuvalov/tic-tac-toe-hw.git","svn_url":"https://github.com/NikShuvalov/tic-tac-toe-hw","homepage":null,"size":645,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-adi-macaron:master","ref":"master","sha":"e90e5333fc84bc63bba87b88ea2e702986e98800","user":{"login":"ga-adi-macaron","id":22455948,"avatar_url":"https://avatars.githubusercontent.com/u/22455948?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-adi-macaron","html_url":"https://github.com/ga-adi-macaron","followers_url":"https://api.github.com/users/ga-adi-macaron/followers","following_url":"https://api.github.com/users/ga-adi-macaron/following{/other_user}","gists_url":"https://api.github.com/users/ga-adi-macaron/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-adi-macaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-adi-macaron/subscriptions","organizations_url":"https://api.github.com/users/ga-adi-macaron/orgs","repos_url":"https://api.github.com/users/ga-adi-macaron/repos","events_url":"https://api.github.com/users/ga-adi-macaron/events{/privacy}","received_events_url":"https://api.github.com/users/ga-adi-macaron/received_events","type":"Organization","site_admin":false},"repo":{"id":71502446,"name":"tic-tac-toe-hw","full_name":"ga-adi-macaron/tic-tac-toe-hw","owner":{"login":"ga-adi-macaron","id":22455948,"avatar_url":"https://avatars.githubusercontent.com/u/22455948?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-adi-macaron","html_url":"https://github.com/ga-adi-macaron","followers_url":"https://api.github.com/users/ga-adi-macaron/followers","following_url":"https://api.github.com/users/ga-adi-macaron/following{/other_user}","gists_url":"https://api.github.com/users/ga-adi-macaron/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-adi-macaron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-adi-macaron/subscriptions","organizations_url":"https://api.github.com/users/ga-adi-macaron/orgs","repos_url":"https://api.github.com/users/ga-adi-macaron/repos","events_url":"https://api.github.com/users/ga-adi-macaron/events{/privacy}","received_events_url":"https://api.github.com/users/ga-adi-macaron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw","description":null,"fork":false,"url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw","forks_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/forks","keys_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/teams","hooks_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/hooks","issue_events_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues/events{/number}","events_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/events","assignees_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/assignees{/user}","branches_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/branches{/branch}","tags_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/tags","blobs_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/languages","stargazers_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/stargazers","contributors_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/contributors","subscribers_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/subscribers","subscription_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/subscription","commits_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/contents/{+path}","compare_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/merges","archive_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/downloads","issues_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues{/number}","pulls_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/labels{/name}","releases_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/releases{/id}","deployments_url":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/deployments","created_at":"2016-10-20T20:37:47Z","updated_at":"2016-10-20T20:38:05Z","pushed_at":"2016-10-24T14:04:52Z","git_url":"git://github.com/ga-adi-macaron/tic-tac-toe-hw.git","ssh_url":"git@github.com:ga-adi-macaron/tic-tac-toe-hw.git","clone_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw.git","svn_url":"https://github.com/ga-adi-macaron/tic-tac-toe-hw","homepage":null,"size":780,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3"},"html":{"href":"https://github.com/ga-adi-macaron/tic-tac-toe-hw/pull/3"},"issue":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues/3"},"comments":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ga-adi-macaron/tic-tac-toe-hw/statuses/2b6c33d1104d100d149ea129213ccd0c721c680f"}}}}
{"actor":{"display_login":"charlesdrews"}}