{"action":"created","comment":{"url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/comments/29193587","id":29193587,"diff_hunk":"@@ -46,51 +51,56 @@ static public bool AddDeviceBlob_DEBUG(JObject blob)\n \n \t\t/*************** END DEBUG MODE METHOD *************/\n \n-        static public bool AddDeviceBlob(JObject blob)\n-        {\n-            deviceBlobs[(string)blob[\"deviceID\"]] = blob;\n-\n-            if (deviceBlobs[(string)blob[\"deviceID\"]] == blob)\n-            {\n-                try\n-                {\n-                    AmazonSimpleNotificationServiceClient snsClient = new AmazonSimpleNotificationServiceClient(\"AKIAJM2E3LGZHJYGFSQQ\", \"p3Qi8DAXj+XHAH+ny7HrlRyleBs5V5DJv77zKK3T\", Amazon.RegionEndpoint.USEast1);\n-                    snsClient.Publish(\"arn:aws:sns:us-east-1:336632281456:MyTopic\", \"New Device Updates\");\n-                }\n-\n-                catch (Exception ex)\n-                {\n-                    LogFile.AddLog(\"AppCache -- Could not send Push Notification: \" + ex.Message + \"\\n\");\n-                    return false;\n-                }\n-\n-                return true;\n-            }\n-\n-            return false;\n-        }\n-\n-        static public JToken GetDeviceBlob(string deviceID)\n-        {\n-            JToken blob = deviceBlobs[deviceID];\n-            deviceBlobs[deviceID].Remove();\n-            return blob;\n-        }\n-\n-        static public JArray GetAllBlobs()\n-        {\n-            JArray blobs = deviceBlobs;\n-            deviceBlobs.RemoveAll();\n-            return blobs;\n-        }\n-\n-        static public int GetBlobCount()\n-        {\n-            return deviceBlobs.Count;\n-        }\n-\n-        ////////////////////////////////////////////////////////////////////////////////////////\n-        //\n-        // other blob methods\n-    }\n+\t\tstatic public bool AddDeviceBlob(JObject blob)\n+\t\t{\n+\t\t\tstring blob_string = blob.ToString ();\n+\t\t\tDevice dev = Interfaces.DeserializeDevice(blob_string, null, null, new TimeFrame()); // to convert the JSON blob to an actual Device object.\n+\t\t\tstring devID = (string)blob[\"deviceID\"];\n+\n+\t\t\tdeviceBlobs.Add(devID, dev);\n+\n+\t\t\tif (deviceBlobs.Contains(dev)) {\n+\t\t\t\ttry\n+\t\t\t\t{\n+\t\t\t\t\tAmazonSimpleNotificationServiceClient snsClient = new AmazonSimpleNotificationServiceClient(\"AKIAJM2E3LGZHJYGFSQQ\", \"p3Qi8DAXj+XHAH+ny7HrlRyleBs5V5DJv77zKK3T\", Amazon.RegionEndpoint.USEast1);","path":"HomeAutomationServer/Models/AppCache.cs","position":106,"original_position":106,"commit_id":"4ff4b67a1093791b5d7377439726c8fb9d5c9ac4","original_commit_id":"4ff4b67a1093791b5d7377439726c8fb9d5c9ac4","user":{"login":"jasedit","id":53046,"avatar_url":"https://avatars.githubusercontent.com/u/53046?v=3","gravatar_id":"","url":"https://api.github.com/users/jasedit","html_url":"https://github.com/jasedit","followers_url":"https://api.github.com/users/jasedit/followers","following_url":"https://api.github.com/users/jasedit/following{/other_user}","gists_url":"https://api.github.com/users/jasedit/gists{/gist_id}","starred_url":"https://api.github.com/users/jasedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasedit/subscriptions","organizations_url":"https://api.github.com/users/jasedit/orgs","repos_url":"https://api.github.com/users/jasedit/repos","events_url":"https://api.github.com/users/jasedit/events{/privacy}","received_events_url":"https://api.github.com/users/jasedit/received_events","type":"User","site_admin":false},"body":"According to the AWSSDK [repository](https://github.com/aws/aws-sdk-net/blob/master/AWSSDK_DotNet45/Amazon.SimpleNotificationService/AmazonSimpleNotificationServiceClient.cs#L152), it looks like those are access key and secret key for AWS. I'm not intimately familiar with how the login system for AWS, but that is an AWS access key/secret key. If @titorgalaxy can't find it in the current key set, I would bet he's right in guessing it's an already expired key.","created_at":"2015-04-27T21:31:43Z","updated_at":"2015-04-27T21:31:43Z","html_url":"https://github.com/ECE4574-5574/ServerAPI/pull/49#discussion_r29193587","pull_request_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/comments/29193587"},"html":{"href":"https://github.com/ECE4574-5574/ServerAPI/pull/49#discussion_r29193587"},"pull_request":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49","id":34209095,"html_url":"https://github.com/ECE4574-5574/ServerAPI/pull/49","diff_url":"https://github.com/ECE4574-5574/ServerAPI/pull/49.diff","patch_url":"https://github.com/ECE4574-5574/ServerAPI/pull/49.patch","issue_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/49","number":49,"state":"open","locked":false,"title":"Fix AppCache","user":{"login":"nathodius","id":6759966,"avatar_url":"https://avatars.githubusercontent.com/u/6759966?v=3","gravatar_id":"","url":"https://api.github.com/users/nathodius","html_url":"https://github.com/nathodius","followers_url":"https://api.github.com/users/nathodius/followers","following_url":"https://api.github.com/users/nathodius/following{/other_user}","gists_url":"https://api.github.com/users/nathodius/gists{/gist_id}","starred_url":"https://api.github.com/users/nathodius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathodius/subscriptions","organizations_url":"https://api.github.com/users/nathodius/orgs","repos_url":"https://api.github.com/users/nathodius/repos","events_url":"https://api.github.com/users/nathodius/events{/privacy}","received_events_url":"https://api.github.com/users/nathodius/received_events","type":"User","site_admin":false},"body":"Reference the Device API\r\nMake the data structure of dev blobs a dictionary\r\n(allows access by Device ID)\r\n- Store Device objects\r\nAll changes are internal to this class","created_at":"2015-04-27T20:53:13Z","updated_at":"2015-04-27T21:31:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4934d60743b0fe62d379f1d348f3fa8a793382f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49/commits","review_comments_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49/comments","review_comment_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/49/comments","statuses_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/statuses/4ff4b67a1093791b5d7377439726c8fb9d5c9ac4","head":{"label":"ECE4574-5574:FIX_APP_CACHE","ref":"FIX_APP_CACHE","sha":"4ff4b67a1093791b5d7377439726c8fb9d5c9ac4","user":{"login":"ECE4574-5574","id":11506935,"avatar_url":"https://avatars.githubusercontent.com/u/11506935?v=3","gravatar_id":"","url":"https://api.github.com/users/ECE4574-5574","html_url":"https://github.com/ECE4574-5574","followers_url":"https://api.github.com/users/ECE4574-5574/followers","following_url":"https://api.github.com/users/ECE4574-5574/following{/other_user}","gists_url":"https://api.github.com/users/ECE4574-5574/gists{/gist_id}","starred_url":"https://api.github.com/users/ECE4574-5574/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ECE4574-5574/subscriptions","organizations_url":"https://api.github.com/users/ECE4574-5574/orgs","repos_url":"https://api.github.com/users/ECE4574-5574/repos","events_url":"https://api.github.com/users/ECE4574-5574/events{/privacy}","received_events_url":"https://api.github.com/users/ECE4574-5574/received_events","type":"Organization","site_admin":false},"repo":{"id":32678516,"name":"ServerAPI","full_name":"ECE4574-5574/ServerAPI","owner":{"login":"ECE4574-5574","id":11506935,"avatar_url":"https://avatars.githubusercontent.com/u/11506935?v=3","gravatar_id":"","url":"https://api.github.com/users/ECE4574-5574","html_url":"https://github.com/ECE4574-5574","followers_url":"https://api.github.com/users/ECE4574-5574/followers","following_url":"https://api.github.com/users/ECE4574-5574/following{/other_user}","gists_url":"https://api.github.com/users/ECE4574-5574/gists{/gist_id}","starred_url":"https://api.github.com/users/ECE4574-5574/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ECE4574-5574/subscriptions","organizations_url":"https://api.github.com/users/ECE4574-5574/orgs","repos_url":"https://api.github.com/users/ECE4574-5574/repos","events_url":"https://api.github.com/users/ECE4574-5574/events{/privacy}","received_events_url":"https://api.github.com/users/ECE4574-5574/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ECE4574-5574/ServerAPI","description":"","fork":false,"url":"https://api.github.com/repos/ECE4574-5574/ServerAPI","forks_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/forks","keys_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/teams","hooks_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/hooks","issue_events_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/events{/number}","events_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/events","assignees_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/assignees{/user}","branches_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/branches{/branch}","tags_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/tags","blobs_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/languages","stargazers_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/stargazers","contributors_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/contributors","subscribers_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/subscribers","subscription_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/subscription","commits_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/contents/{+path}","compare_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/merges","archive_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/downloads","issues_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues{/number}","pulls_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/labels{/name}","releases_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/releases{/id}","created_at":"2015-03-22T14:16:36Z","updated_at":"2015-04-27T17:38:04Z","pushed_at":"2015-04-27T20:53:13Z","git_url":"git://github.com/ECE4574-5574/ServerAPI.git","ssh_url":"git@github.com:ECE4574-5574/ServerAPI.git","clone_url":"https://github.com/ECE4574-5574/ServerAPI.git","svn_url":"https://github.com/ECE4574-5574/ServerAPI","homepage":"","size":25693,"stargazers_count":1,"watchers_count":1,"language":"C#","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":1,"default_branch":"master"}},"base":{"label":"ECE4574-5574:master","ref":"master","sha":"c1996e043b34497c850836f18bc463b481d4e83c","user":{"login":"ECE4574-5574","id":11506935,"avatar_url":"https://avatars.githubusercontent.com/u/11506935?v=3","gravatar_id":"","url":"https://api.github.com/users/ECE4574-5574","html_url":"https://github.com/ECE4574-5574","followers_url":"https://api.github.com/users/ECE4574-5574/followers","following_url":"https://api.github.com/users/ECE4574-5574/following{/other_user}","gists_url":"https://api.github.com/users/ECE4574-5574/gists{/gist_id}","starred_url":"https://api.github.com/users/ECE4574-5574/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ECE4574-5574/subscriptions","organizations_url":"https://api.github.com/users/ECE4574-5574/orgs","repos_url":"https://api.github.com/users/ECE4574-5574/repos","events_url":"https://api.github.com/users/ECE4574-5574/events{/privacy}","received_events_url":"https://api.github.com/users/ECE4574-5574/received_events","type":"Organization","site_admin":false},"repo":{"id":32678516,"name":"ServerAPI","full_name":"ECE4574-5574/ServerAPI","owner":{"login":"ECE4574-5574","id":11506935,"avatar_url":"https://avatars.githubusercontent.com/u/11506935?v=3","gravatar_id":"","url":"https://api.github.com/users/ECE4574-5574","html_url":"https://github.com/ECE4574-5574","followers_url":"https://api.github.com/users/ECE4574-5574/followers","following_url":"https://api.github.com/users/ECE4574-5574/following{/other_user}","gists_url":"https://api.github.com/users/ECE4574-5574/gists{/gist_id}","starred_url":"https://api.github.com/users/ECE4574-5574/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ECE4574-5574/subscriptions","organizations_url":"https://api.github.com/users/ECE4574-5574/orgs","repos_url":"https://api.github.com/users/ECE4574-5574/repos","events_url":"https://api.github.com/users/ECE4574-5574/events{/privacy}","received_events_url":"https://api.github.com/users/ECE4574-5574/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ECE4574-5574/ServerAPI","description":"","fork":false,"url":"https://api.github.com/repos/ECE4574-5574/ServerAPI","forks_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/forks","keys_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/teams","hooks_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/hooks","issue_events_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/events{/number}","events_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/events","assignees_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/assignees{/user}","branches_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/branches{/branch}","tags_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/tags","blobs_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/languages","stargazers_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/stargazers","contributors_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/contributors","subscribers_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/subscribers","subscription_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/subscription","commits_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/contents/{+path}","compare_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/merges","archive_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/downloads","issues_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues{/number}","pulls_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/labels{/name}","releases_url":"https://api.github.com/repos/ECE4574-5574/ServerAPI/releases{/id}","created_at":"2015-03-22T14:16:36Z","updated_at":"2015-04-27T17:38:04Z","pushed_at":"2015-04-27T20:53:13Z","git_url":"git://github.com/ECE4574-5574/ServerAPI.git","ssh_url":"git@github.com:ECE4574-5574/ServerAPI.git","clone_url":"https://github.com/ECE4574-5574/ServerAPI.git","svn_url":"https://github.com/ECE4574-5574/ServerAPI","homepage":"","size":25693,"stargazers_count":1,"watchers_count":1,"language":"C#","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49"},"html":{"href":"https://github.com/ECE4574-5574/ServerAPI/pull/49"},"issue":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/49"},"comments":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/ECE4574-5574/ServerAPI/statuses/4ff4b67a1093791b5d7377439726c8fb9d5c9ac4"}}}}