{"action":"created","comment":{"url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/comments/183010280","pull_request_review_id":113906632,"id":183010280,"diff_hunk":"@@ -0,0 +1,436 @@\n+﻿using System;\n+using System.Collections.Generic;\n+using System.Collections.ObjectModel;\n+using System.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+using System.IO;\n+using System.Configuration;\n+using System.Net;\n+using System.Net.NetworkInformation;\n+using System.Runtime.InteropServices;\n+using System.Runtime.Serialization;\n+using System.Runtime.Serialization.Formatters.Binary;\n+using System.Xml.Serialization;\n+using Newtonsoft.Json;\n+using ExportInterface;\n+using System.Reflection;\n+\n+namespace lab_file_storage\n+{\n+    [Serializable]\n+    public class AppFile\n+    {\n+        public string Name { get; set; }\n+        public string Extension { get; set; }\n+        public long Size { get; set; }\n+        public DateTime CreationDate { get; set; }\n+        public int DownloadsNumber { get; set; }\n+        public string Login { get; set; }\n+        public string FullPath { get; set; }\n+        \n+        private static readonly string _metaFilePath = ConfigurationManager.AppSettings[\"dbFile\"];\n+        private static readonly string _metaFileName = string.Concat(_metaFilePath, \"dbFile.dat\");\n+\n+        public static void ShowPath()\n+        {\n+            Console.WriteLine(_metaFileName);\n+        }\n+\n+        public AppFile(){ }\n+\n+        public AppFile(string name, string extension, long size, DateTime creationDate, int downloadsNumber, string login, string fullPath)\n+        {\n+            Name = name;\n+            Extension = extension;\n+            Size = size;\n+            CreationDate = creationDate;\n+            DownloadsNumber = downloadsNumber;\n+            Login = User.UserName;\n+            FullPath = fullPath;\n+        }\n+\n+        public static void Serialize(Dictionary<string, AppFile> appFileDictionary)\n+        {\n+            FileStream fs = new FileStream(_metaFileName, FileMode.OpenOrCreate);","path":"lab-file-storage/AppFile.cs","position":55,"original_position":55,"commit_id":"df661c9d165b78f7780676954c14b850027fe5eb","original_commit_id":"df661c9d165b78f7780676954c14b850027fe5eb","user":{"login":"stas-litvinenka","id":4135348,"avatar_url":"https://avatars0.githubusercontent.com/u/4135348?v=4","gravatar_id":"","url":"https://api.github.com/users/stas-litvinenka","html_url":"https://github.com/stas-litvinenka","followers_url":"https://api.github.com/users/stas-litvinenka/followers","following_url":"https://api.github.com/users/stas-litvinenka/following{/other_user}","gists_url":"https://api.github.com/users/stas-litvinenka/gists{/gist_id}","starred_url":"https://api.github.com/users/stas-litvinenka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stas-litvinenka/subscriptions","organizations_url":"https://api.github.com/users/stas-litvinenka/orgs","repos_url":"https://api.github.com/users/stas-litvinenka/repos","events_url":"https://api.github.com/users/stas-litvinenka/events{/privacy}","received_events_url":"https://api.github.com/users/stas-litvinenka/received_events","type":"User","site_admin":false},"body":"user var. it is obvius here that object will have FileStream type. Var makes code smaller and looks better. Please do this everywhere when it is obvious what type variable will have after  creation ","created_at":"2018-04-20T10:30:13Z","updated_at":"2018-04-20T10:38:44Z","html_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko/pull/4#discussion_r183010280","pull_request_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/comments/183010280"},"html":{"href":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko/pull/4#discussion_r183010280"},"pull_request":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4","id":182692829,"html_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko/pull/4","diff_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko/pull/4.diff","patch_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko/pull/4.patch","issue_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/4","number":4,"state":"open","locked":false,"title":"Lab 02. Finish main task","user":{"login":"HenadzHatsko","id":38043995,"avatar_url":"https://avatars1.githubusercontent.com/u/38043995?v=4","gravatar_id":"","url":"https://api.github.com/users/HenadzHatsko","html_url":"https://github.com/HenadzHatsko","followers_url":"https://api.github.com/users/HenadzHatsko/followers","following_url":"https://api.github.com/users/HenadzHatsko/following{/other_user}","gists_url":"https://api.github.com/users/HenadzHatsko/gists{/gist_id}","starred_url":"https://api.github.com/users/HenadzHatsko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HenadzHatsko/subscriptions","organizations_url":"https://api.github.com/users/HenadzHatsko/orgs","repos_url":"https://api.github.com/users/HenadzHatsko/repos","events_url":"https://api.github.com/users/HenadzHatsko/events{/privacy}","received_events_url":"https://api.github.com/users/HenadzHatsko/received_events","type":"User","site_admin":false},"body":"Finished main task and 1 extra task.\r\nadded 1 plugin for xml serialization.","created_at":"2018-04-19T07:51:33Z","updated_at":"2018-04-20T10:38:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"240e0a28114d38557a16ab49c642e654dc88384c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/4/comments","statuses_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/statuses/df661c9d165b78f7780676954c14b850027fe5eb","head":{"label":"Godel-Mastery-v3:lab-02","ref":"lab-02","sha":"df661c9d165b78f7780676954c14b850027fe5eb","user":{"login":"Godel-Mastery-v3","id":37075055,"avatar_url":"https://avatars1.githubusercontent.com/u/37075055?v=4","gravatar_id":"","url":"https://api.github.com/users/Godel-Mastery-v3","html_url":"https://github.com/Godel-Mastery-v3","followers_url":"https://api.github.com/users/Godel-Mastery-v3/followers","following_url":"https://api.github.com/users/Godel-Mastery-v3/following{/other_user}","gists_url":"https://api.github.com/users/Godel-Mastery-v3/gists{/gist_id}","starred_url":"https://api.github.com/users/Godel-Mastery-v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godel-Mastery-v3/subscriptions","organizations_url":"https://api.github.com/users/Godel-Mastery-v3/orgs","repos_url":"https://api.github.com/users/Godel-Mastery-v3/repos","events_url":"https://api.github.com/users/Godel-Mastery-v3/events{/privacy}","received_events_url":"https://api.github.com/users/Godel-Mastery-v3/received_events","type":"Organization","site_admin":false},"repo":{"id":128057818,"name":"Henadz-Hatsko","full_name":"Godel-Mastery-v3/Henadz-Hatsko","owner":{"login":"Godel-Mastery-v3","id":37075055,"avatar_url":"https://avatars1.githubusercontent.com/u/37075055?v=4","gravatar_id":"","url":"https://api.github.com/users/Godel-Mastery-v3","html_url":"https://github.com/Godel-Mastery-v3","followers_url":"https://api.github.com/users/Godel-Mastery-v3/followers","following_url":"https://api.github.com/users/Godel-Mastery-v3/following{/other_user}","gists_url":"https://api.github.com/users/Godel-Mastery-v3/gists{/gist_id}","starred_url":"https://api.github.com/users/Godel-Mastery-v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godel-Mastery-v3/subscriptions","organizations_url":"https://api.github.com/users/Godel-Mastery-v3/orgs","repos_url":"https://api.github.com/users/Godel-Mastery-v3/repos","events_url":"https://api.github.com/users/Godel-Mastery-v3/events{/privacy}","received_events_url":"https://api.github.com/users/Godel-Mastery-v3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko","description":"Henadz Hatsko","fork":false,"url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko","forks_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/forks","keys_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/teams","hooks_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/hooks","issue_events_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/events{/number}","events_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/events","assignees_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/assignees{/user}","branches_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/branches{/branch}","tags_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/tags","blobs_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/refs{/sha}","trees_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/statuses/{sha}","languages_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/languages","stargazers_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/stargazers","contributors_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/contributors","subscribers_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/subscribers","subscription_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/subscription","commits_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/commits{/sha}","git_commits_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/commits{/sha}","comments_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/comments{/number}","issue_comment_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/comments{/number}","contents_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/contents/{+path}","compare_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/merges","archive_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/downloads","issues_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues{/number}","pulls_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls{/number}","milestones_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/milestones{/number}","notifications_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/labels{/name}","releases_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/releases{/id}","deployments_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/deployments","created_at":"2018-04-04T12:18:14Z","updated_at":"2018-04-11T14:28:11Z","pushed_at":"2018-04-19T07:51:34Z","git_url":"git://github.com/Godel-Mastery-v3/Henadz-Hatsko.git","ssh_url":"git@github.com:Godel-Mastery-v3/Henadz-Hatsko.git","clone_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko.git","svn_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Godel-Mastery-v3:master","ref":"master","sha":"7b24ceda9c50283fdee7e25c5882ddfa371081bf","user":{"login":"Godel-Mastery-v3","id":37075055,"avatar_url":"https://avatars1.githubusercontent.com/u/37075055?v=4","gravatar_id":"","url":"https://api.github.com/users/Godel-Mastery-v3","html_url":"https://github.com/Godel-Mastery-v3","followers_url":"https://api.github.com/users/Godel-Mastery-v3/followers","following_url":"https://api.github.com/users/Godel-Mastery-v3/following{/other_user}","gists_url":"https://api.github.com/users/Godel-Mastery-v3/gists{/gist_id}","starred_url":"https://api.github.com/users/Godel-Mastery-v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godel-Mastery-v3/subscriptions","organizations_url":"https://api.github.com/users/Godel-Mastery-v3/orgs","repos_url":"https://api.github.com/users/Godel-Mastery-v3/repos","events_url":"https://api.github.com/users/Godel-Mastery-v3/events{/privacy}","received_events_url":"https://api.github.com/users/Godel-Mastery-v3/received_events","type":"Organization","site_admin":false},"repo":{"id":128057818,"name":"Henadz-Hatsko","full_name":"Godel-Mastery-v3/Henadz-Hatsko","owner":{"login":"Godel-Mastery-v3","id":37075055,"avatar_url":"https://avatars1.githubusercontent.com/u/37075055?v=4","gravatar_id":"","url":"https://api.github.com/users/Godel-Mastery-v3","html_url":"https://github.com/Godel-Mastery-v3","followers_url":"https://api.github.com/users/Godel-Mastery-v3/followers","following_url":"https://api.github.com/users/Godel-Mastery-v3/following{/other_user}","gists_url":"https://api.github.com/users/Godel-Mastery-v3/gists{/gist_id}","starred_url":"https://api.github.com/users/Godel-Mastery-v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godel-Mastery-v3/subscriptions","organizations_url":"https://api.github.com/users/Godel-Mastery-v3/orgs","repos_url":"https://api.github.com/users/Godel-Mastery-v3/repos","events_url":"https://api.github.com/users/Godel-Mastery-v3/events{/privacy}","received_events_url":"https://api.github.com/users/Godel-Mastery-v3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko","description":"Henadz Hatsko","fork":false,"url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko","forks_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/forks","keys_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/teams","hooks_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/hooks","issue_events_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/events{/number}","events_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/events","assignees_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/assignees{/user}","branches_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/branches{/branch}","tags_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/tags","blobs_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/refs{/sha}","trees_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/statuses/{sha}","languages_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/languages","stargazers_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/stargazers","contributors_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/contributors","subscribers_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/subscribers","subscription_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/subscription","commits_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/commits{/sha}","git_commits_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/git/commits{/sha}","comments_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/comments{/number}","issue_comment_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/comments{/number}","contents_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/contents/{+path}","compare_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/merges","archive_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/downloads","issues_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues{/number}","pulls_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls{/number}","milestones_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/milestones{/number}","notifications_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/labels{/name}","releases_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/releases{/id}","deployments_url":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/deployments","created_at":"2018-04-04T12:18:14Z","updated_at":"2018-04-11T14:28:11Z","pushed_at":"2018-04-19T07:51:34Z","git_url":"git://github.com/Godel-Mastery-v3/Henadz-Hatsko.git","ssh_url":"git@github.com:Godel-Mastery-v3/Henadz-Hatsko.git","clone_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko.git","svn_url":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4"},"html":{"href":"https://github.com/Godel-Mastery-v3/Henadz-Hatsko/pull/4"},"issue":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/4"},"comments":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Godel-Mastery-v3/Henadz-Hatsko/statuses/df661c9d165b78f7780676954c14b850027fe5eb"}},"author_association":"NONE"}}
{"actor":{"display_login":"stas-litvinenka"}}