{"action":"created","comment":{"url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/comments/81125278","pull_request_review_id":2127537,"id":81125278,"diff_hunk":"@@ -12,39 +12,150 @@ namespace HomeNet.Data.Models\n   /// </summary>\r\n   public class Identity\r\n   {\r\n+    private static NLog.Logger log = NLog.LogManager.GetLogger(\"HomeNet.Data.Models.Identity\");\r\n+\r\n+    /// <summary>Maximum number of bytes that identity name can occupy.</summary>\r\n+    public const int MaxProfileNameLengthBytes = 64;\r\n+\r\n+    /// <summary>Maximum number of bytes that profile image can occupy.</summary>\r\n+    public const int MaxProfileImageLengthBytes = 20 * 1024;\r\n+\r\n+    /// <summary>Maximum number of bytes that thumbnail image can occupy.</summary>\r\n+    public const int MaxThumbnailImageLengthBytes = 5 * 1024;\r","path":"src/HomeNet/Data/Models/Identity.cs","position":13,"original_position":13,"commit_id":"9722a892fdd6897041987764cf5b3636ba8df68c","original_commit_id":"9722a892fdd6897041987764cf5b3636ba8df68c","user":{"login":"dejfcz","id":19493351,"avatar_url":"https://avatars.githubusercontent.com/u/19493351?v=3","gravatar_id":"","url":"https://api.github.com/users/dejfcz","html_url":"https://github.com/dejfcz","followers_url":"https://api.github.com/users/dejfcz/followers","following_url":"https://api.github.com/users/dejfcz/following{/other_user}","gists_url":"https://api.github.com/users/dejfcz/gists{/gist_id}","starred_url":"https://api.github.com/users/dejfcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejfcz/subscriptions","organizations_url":"https://api.github.com/users/dejfcz/orgs","repos_url":"https://api.github.com/users/dejfcz/repos","events_url":"https://api.github.com/users/dejfcz/events{/privacy}","received_events_url":"https://api.github.com/users/dejfcz/received_events","type":"User","site_admin":false},"body":"I'm not sure I understand the question. The maximal size is for file size. JPEG and PNG files are going to be supported. If you upload a file bigger than the limit, it will be refused.","created_at":"2016-09-29T12:34:26Z","updated_at":"2016-09-29T12:34:26Z","html_url":"https://github.com/Fermat-ORG/c-sharp-home-node/pull/1#discussion_r81125278","pull_request_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/comments/81125278"},"html":{"href":"https://github.com/Fermat-ORG/c-sharp-home-node/pull/1#discussion_r81125278"},"pull_request":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1","id":86616176,"html_url":"https://github.com/Fermat-ORG/c-sharp-home-node/pull/1","diff_url":"https://github.com/Fermat-ORG/c-sharp-home-node/pull/1.diff","patch_url":"https://github.com/Fermat-ORG/c-sharp-home-node/pull/1.patch","issue_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/1","number":1,"state":"open","locked":false,"title":"ListHomeNodePlansRequest, StartConversationRequest, HomeNodeRequestRe…","user":{"login":"dejfcz","id":19493351,"avatar_url":"https://avatars.githubusercontent.com/u/19493351?v=3","gravatar_id":"","url":"https://api.github.com/users/dejfcz","html_url":"https://github.com/dejfcz","followers_url":"https://api.github.com/users/dejfcz/followers","following_url":"https://api.github.com/users/dejfcz/following{/other_user}","gists_url":"https://api.github.com/users/dejfcz/gists{/gist_id}","starred_url":"https://api.github.com/users/dejfcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dejfcz/subscriptions","organizations_url":"https://api.github.com/users/dejfcz/orgs","repos_url":"https://api.github.com/users/dejfcz/repos","events_url":"https://api.github.com/users/dejfcz/events{/privacy}","received_events_url":"https://api.github.com/users/dejfcz/received_events","type":"User","site_admin":false},"body":"…quest, CheckInRequest, UpdateProfileRequest","created_at":"2016-09-24T11:58:41Z","updated_at":"2016-09-29T12:34:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be3530c387028d19bdf4e405d8904d6a42cc47bb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/1/comments","statuses_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/statuses/9722a892fdd6897041987764cf5b3636ba8df68c","head":{"label":"Fermat-ORG:feature/update-profile","ref":"feature/update-profile","sha":"9722a892fdd6897041987764cf5b3636ba8df68c","user":{"login":"Fermat-ORG","id":10163252,"avatar_url":"https://avatars.githubusercontent.com/u/10163252?v=3","gravatar_id":"","url":"https://api.github.com/users/Fermat-ORG","html_url":"https://github.com/Fermat-ORG","followers_url":"https://api.github.com/users/Fermat-ORG/followers","following_url":"https://api.github.com/users/Fermat-ORG/following{/other_user}","gists_url":"https://api.github.com/users/Fermat-ORG/gists{/gist_id}","starred_url":"https://api.github.com/users/Fermat-ORG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fermat-ORG/subscriptions","organizations_url":"https://api.github.com/users/Fermat-ORG/orgs","repos_url":"https://api.github.com/users/Fermat-ORG/repos","events_url":"https://api.github.com/users/Fermat-ORG/events{/privacy}","received_events_url":"https://api.github.com/users/Fermat-ORG/received_events","type":"Organization","site_admin":false},"repo":{"id":67061800,"name":"c-sharp-home-node","full_name":"Fermat-ORG/c-sharp-home-node","owner":{"login":"Fermat-ORG","id":10163252,"avatar_url":"https://avatars.githubusercontent.com/u/10163252?v=3","gravatar_id":"","url":"https://api.github.com/users/Fermat-ORG","html_url":"https://github.com/Fermat-ORG","followers_url":"https://api.github.com/users/Fermat-ORG/followers","following_url":"https://api.github.com/users/Fermat-ORG/following{/other_user}","gists_url":"https://api.github.com/users/Fermat-ORG/gists{/gist_id}","starred_url":"https://api.github.com/users/Fermat-ORG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fermat-ORG/subscriptions","organizations_url":"https://api.github.com/users/Fermat-ORG/orgs","repos_url":"https://api.github.com/users/Fermat-ORG/repos","events_url":"https://api.github.com/users/Fermat-ORG/events{/privacy}","received_events_url":"https://api.github.com/users/Fermat-ORG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fermat-ORG/c-sharp-home-node","description":null,"fork":false,"url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node","forks_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/forks","keys_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/teams","hooks_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/hooks","issue_events_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/events{/number}","events_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/events","assignees_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/assignees{/user}","branches_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/branches{/branch}","tags_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/tags","blobs_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/languages","stargazers_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/stargazers","contributors_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/contributors","subscribers_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/subscribers","subscription_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/subscription","commits_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/contents/{+path}","compare_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/merges","archive_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/downloads","issues_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues{/number}","pulls_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/labels{/name}","releases_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/releases{/id}","deployments_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/deployments","created_at":"2016-08-31T18:10:06Z","updated_at":"2016-09-16T07:14:39Z","pushed_at":"2016-09-26T08:45:13Z","git_url":"git://github.com/Fermat-ORG/c-sharp-home-node.git","ssh_url":"git@github.com:Fermat-ORG/c-sharp-home-node.git","clone_url":"https://github.com/Fermat-ORG/c-sharp-home-node.git","svn_url":"https://github.com/Fermat-ORG/c-sharp-home-node","homepage":null,"size":189,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"Fermat-ORG:master","ref":"master","sha":"eeb1c077d06b492fefbb84c37268d66be5924c07","user":{"login":"Fermat-ORG","id":10163252,"avatar_url":"https://avatars.githubusercontent.com/u/10163252?v=3","gravatar_id":"","url":"https://api.github.com/users/Fermat-ORG","html_url":"https://github.com/Fermat-ORG","followers_url":"https://api.github.com/users/Fermat-ORG/followers","following_url":"https://api.github.com/users/Fermat-ORG/following{/other_user}","gists_url":"https://api.github.com/users/Fermat-ORG/gists{/gist_id}","starred_url":"https://api.github.com/users/Fermat-ORG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fermat-ORG/subscriptions","organizations_url":"https://api.github.com/users/Fermat-ORG/orgs","repos_url":"https://api.github.com/users/Fermat-ORG/repos","events_url":"https://api.github.com/users/Fermat-ORG/events{/privacy}","received_events_url":"https://api.github.com/users/Fermat-ORG/received_events","type":"Organization","site_admin":false},"repo":{"id":67061800,"name":"c-sharp-home-node","full_name":"Fermat-ORG/c-sharp-home-node","owner":{"login":"Fermat-ORG","id":10163252,"avatar_url":"https://avatars.githubusercontent.com/u/10163252?v=3","gravatar_id":"","url":"https://api.github.com/users/Fermat-ORG","html_url":"https://github.com/Fermat-ORG","followers_url":"https://api.github.com/users/Fermat-ORG/followers","following_url":"https://api.github.com/users/Fermat-ORG/following{/other_user}","gists_url":"https://api.github.com/users/Fermat-ORG/gists{/gist_id}","starred_url":"https://api.github.com/users/Fermat-ORG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fermat-ORG/subscriptions","organizations_url":"https://api.github.com/users/Fermat-ORG/orgs","repos_url":"https://api.github.com/users/Fermat-ORG/repos","events_url":"https://api.github.com/users/Fermat-ORG/events{/privacy}","received_events_url":"https://api.github.com/users/Fermat-ORG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Fermat-ORG/c-sharp-home-node","description":null,"fork":false,"url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node","forks_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/forks","keys_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/teams","hooks_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/hooks","issue_events_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/events{/number}","events_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/events","assignees_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/assignees{/user}","branches_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/branches{/branch}","tags_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/tags","blobs_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/statuses/{sha}","languages_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/languages","stargazers_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/stargazers","contributors_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/contributors","subscribers_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/subscribers","subscription_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/subscription","commits_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/contents/{+path}","compare_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/merges","archive_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/downloads","issues_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues{/number}","pulls_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls{/number}","milestones_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/milestones{/number}","notifications_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/labels{/name}","releases_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/releases{/id}","deployments_url":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/deployments","created_at":"2016-08-31T18:10:06Z","updated_at":"2016-09-16T07:14:39Z","pushed_at":"2016-09-26T08:45:13Z","git_url":"git://github.com/Fermat-ORG/c-sharp-home-node.git","ssh_url":"git@github.com:Fermat-ORG/c-sharp-home-node.git","clone_url":"https://github.com/Fermat-ORG/c-sharp-home-node.git","svn_url":"https://github.com/Fermat-ORG/c-sharp-home-node","homepage":null,"size":189,"stargazers_count":0,"watchers_count":0,"language":"C#","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/Fermat-ORG/c-sharp-home-node/pulls/1"},"html":{"href":"https://github.com/Fermat-ORG/c-sharp-home-node/pull/1"},"issue":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/1"},"comments":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Fermat-ORG/c-sharp-home-node/statuses/9722a892fdd6897041987764cf5b3636ba8df68c"}}}}
{"actor":{"display_login":"dejfcz"}}