{"action":"created","comment":{"url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/comments/320785325","pull_request_review_id":283649872,"id":320785325,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMyMDc4NTMyNQ==","diff_hunk":"@@ -0,0 +1,60 @@\n+﻿using Microsoft.Extensions.DependencyInjection;\n+using SmartHouse.Entities;\n+using SmartHouse.Printer.PrinterConnect;\n+using SmartHouse.Printer.PrinterSettings;\n+using System.ComponentModel;\n+using System.Runtime.CompilerServices;\n+using System.Windows;\n+\n+\n+namespace SmartHouse.Printer\n+{\n+    /// <summary>\n+    /// Interaction logic for MainWindow.xaml\n+    /// </summary>\n+    public partial class MainWindow : Window, INotifyPropertyChanged\n+    {\n+        private byte[] _image;\n+\n+        private IConnect Connect { get; set; }\n+\n+        public event PropertyChangedEventHandler PropertyChanged;\n+\n+        public byte[] Image\n+        {\n+            get => _image;\n+            set\n+            {\n+                _image = value;\n+                OnPropertyChanged(\"Image\");\n+            }\n+        }\n+        public MainWindow()\n+        {\n+            var serviceProvider = new ServiceCollection()\n+                .AddTransient<Device>()\n+                .AddSingleton<ISettings, Settings>()\n+                .AddSingleton<IConnect, Connect>()\n+                .BuildServiceProvider();\n+\n+            Connect = serviceProvider.GetService<IConnect>();\n+            Connect.PropertyChanged += Connect_PropertyChanged;\n+            Connect.ClientConnect();\n+\n+            InitializeComponent();\n+        }\n+\n+        private void Connect_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)\n+        {\n+            if (e.PropertyName.Contains(\"Image\"))","path":"SmartHouse.Printer/SmartHouse.Printer/MainWindow.xaml.cs","position":49,"original_position":49,"commit_id":"72d0ad0327e785d97491fefc842f3badd37f4969","original_commit_id":"72d0ad0327e785d97491fefc842f3badd37f4969","user":{"login":"Artem-Marakhovskyi","id":17945842,"node_id":"MDQ6VXNlcjE3OTQ1ODQy","avatar_url":"https://avatars3.githubusercontent.com/u/17945842?v=4","gravatar_id":"","url":"https://api.github.com/users/Artem-Marakhovskyi","html_url":"https://github.com/Artem-Marakhovskyi","followers_url":"https://api.github.com/users/Artem-Marakhovskyi/followers","following_url":"https://api.github.com/users/Artem-Marakhovskyi/following{/other_user}","gists_url":"https://api.github.com/users/Artem-Marakhovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/Artem-Marakhovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artem-Marakhovskyi/subscriptions","organizations_url":"https://api.github.com/users/Artem-Marakhovskyi/orgs","repos_url":"https://api.github.com/users/Artem-Marakhovskyi/repos","events_url":"https://api.github.com/users/Artem-Marakhovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/Artem-Marakhovskyi/received_events","type":"User","site_admin":false},"body":"use operator `nameof()`","created_at":"2019-09-04T14:17:32Z","updated_at":"2019-09-04T14:17:32Z","html_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer/pull/1#discussion_r320785325","pull_request_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/comments/320785325"},"html":{"href":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer/pull/1#discussion_r320785325"},"pull_request":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1","id":313894975,"node_id":"MDExOlB1bGxSZXF1ZXN0MzEzODk0OTc1","html_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer/pull/1","diff_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer/pull/1.diff","patch_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer/pull/1.patch","issue_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/1","number":1,"state":"open","locked":false,"title":"Printer with main abilities","user":{"login":"BaranVasiliy","id":26433321,"node_id":"MDQ6VXNlcjI2NDMzMzIx","avatar_url":"https://avatars2.githubusercontent.com/u/26433321?v=4","gravatar_id":"","url":"https://api.github.com/users/BaranVasiliy","html_url":"https://github.com/BaranVasiliy","followers_url":"https://api.github.com/users/BaranVasiliy/followers","following_url":"https://api.github.com/users/BaranVasiliy/following{/other_user}","gists_url":"https://api.github.com/users/BaranVasiliy/gists{/gist_id}","starred_url":"https://api.github.com/users/BaranVasiliy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaranVasiliy/subscriptions","organizations_url":"https://api.github.com/users/BaranVasiliy/orgs","repos_url":"https://api.github.com/users/BaranVasiliy/repos","events_url":"https://api.github.com/users/BaranVasiliy/events{/privacy}","received_events_url":"https://api.github.com/users/BaranVasiliy/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-09-04T07:20:54Z","updated_at":"2019-09-04T14:17:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"147ab26557aaca0e04f6c3862aca82beedadab09","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/1/comments","statuses_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/statuses/72d0ad0327e785d97491fefc842f3badd37f4969","head":{"label":"Artem-Marakhovskyi:Dev","ref":"Dev","sha":"72d0ad0327e785d97491fefc842f3badd37f4969","user":{"login":"Artem-Marakhovskyi","id":17945842,"node_id":"MDQ6VXNlcjE3OTQ1ODQy","avatar_url":"https://avatars3.githubusercontent.com/u/17945842?v=4","gravatar_id":"","url":"https://api.github.com/users/Artem-Marakhovskyi","html_url":"https://github.com/Artem-Marakhovskyi","followers_url":"https://api.github.com/users/Artem-Marakhovskyi/followers","following_url":"https://api.github.com/users/Artem-Marakhovskyi/following{/other_user}","gists_url":"https://api.github.com/users/Artem-Marakhovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/Artem-Marakhovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artem-Marakhovskyi/subscriptions","organizations_url":"https://api.github.com/users/Artem-Marakhovskyi/orgs","repos_url":"https://api.github.com/users/Artem-Marakhovskyi/repos","events_url":"https://api.github.com/users/Artem-Marakhovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/Artem-Marakhovskyi/received_events","type":"User","site_admin":false},"repo":{"id":203322700,"node_id":"MDEwOlJlcG9zaXRvcnkyMDMzMjI3MDA=","name":"smart-house-device-printer","full_name":"Artem-Marakhovskyi/smart-house-device-printer","private":false,"owner":{"login":"Artem-Marakhovskyi","id":17945842,"node_id":"MDQ6VXNlcjE3OTQ1ODQy","avatar_url":"https://avatars3.githubusercontent.com/u/17945842?v=4","gravatar_id":"","url":"https://api.github.com/users/Artem-Marakhovskyi","html_url":"https://github.com/Artem-Marakhovskyi","followers_url":"https://api.github.com/users/Artem-Marakhovskyi/followers","following_url":"https://api.github.com/users/Artem-Marakhovskyi/following{/other_user}","gists_url":"https://api.github.com/users/Artem-Marakhovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/Artem-Marakhovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artem-Marakhovskyi/subscriptions","organizations_url":"https://api.github.com/users/Artem-Marakhovskyi/orgs","repos_url":"https://api.github.com/users/Artem-Marakhovskyi/repos","events_url":"https://api.github.com/users/Artem-Marakhovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/Artem-Marakhovskyi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer","description":null,"fork":false,"url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer","forks_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/forks","keys_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/teams","hooks_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/hooks","issue_events_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/events{/number}","events_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/events","assignees_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/assignees{/user}","branches_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/branches{/branch}","tags_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/tags","blobs_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/statuses/{sha}","languages_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/languages","stargazers_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/stargazers","contributors_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/contributors","subscribers_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/subscribers","subscription_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/subscription","commits_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/contents/{+path}","compare_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/merges","archive_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/downloads","issues_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues{/number}","pulls_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls{/number}","milestones_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/milestones{/number}","notifications_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/labels{/name}","releases_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/releases{/id}","deployments_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/deployments","created_at":"2019-08-20T07:25:26Z","updated_at":"2019-08-20T07:25:29Z","pushed_at":"2019-09-04T07:20:55Z","git_url":"git://github.com/Artem-Marakhovskyi/smart-house-device-printer.git","ssh_url":"git@github.com:Artem-Marakhovskyi/smart-house-device-printer.git","clone_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer.git","svn_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Artem-Marakhovskyi:master","ref":"master","sha":"bb2d824c72db0c82311debb4027e25b37a39cc76","user":{"login":"Artem-Marakhovskyi","id":17945842,"node_id":"MDQ6VXNlcjE3OTQ1ODQy","avatar_url":"https://avatars3.githubusercontent.com/u/17945842?v=4","gravatar_id":"","url":"https://api.github.com/users/Artem-Marakhovskyi","html_url":"https://github.com/Artem-Marakhovskyi","followers_url":"https://api.github.com/users/Artem-Marakhovskyi/followers","following_url":"https://api.github.com/users/Artem-Marakhovskyi/following{/other_user}","gists_url":"https://api.github.com/users/Artem-Marakhovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/Artem-Marakhovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artem-Marakhovskyi/subscriptions","organizations_url":"https://api.github.com/users/Artem-Marakhovskyi/orgs","repos_url":"https://api.github.com/users/Artem-Marakhovskyi/repos","events_url":"https://api.github.com/users/Artem-Marakhovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/Artem-Marakhovskyi/received_events","type":"User","site_admin":false},"repo":{"id":203322700,"node_id":"MDEwOlJlcG9zaXRvcnkyMDMzMjI3MDA=","name":"smart-house-device-printer","full_name":"Artem-Marakhovskyi/smart-house-device-printer","private":false,"owner":{"login":"Artem-Marakhovskyi","id":17945842,"node_id":"MDQ6VXNlcjE3OTQ1ODQy","avatar_url":"https://avatars3.githubusercontent.com/u/17945842?v=4","gravatar_id":"","url":"https://api.github.com/users/Artem-Marakhovskyi","html_url":"https://github.com/Artem-Marakhovskyi","followers_url":"https://api.github.com/users/Artem-Marakhovskyi/followers","following_url":"https://api.github.com/users/Artem-Marakhovskyi/following{/other_user}","gists_url":"https://api.github.com/users/Artem-Marakhovskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/Artem-Marakhovskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Artem-Marakhovskyi/subscriptions","organizations_url":"https://api.github.com/users/Artem-Marakhovskyi/orgs","repos_url":"https://api.github.com/users/Artem-Marakhovskyi/repos","events_url":"https://api.github.com/users/Artem-Marakhovskyi/events{/privacy}","received_events_url":"https://api.github.com/users/Artem-Marakhovskyi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer","description":null,"fork":false,"url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer","forks_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/forks","keys_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/teams","hooks_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/hooks","issue_events_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/events{/number}","events_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/events","assignees_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/assignees{/user}","branches_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/branches{/branch}","tags_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/tags","blobs_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/statuses/{sha}","languages_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/languages","stargazers_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/stargazers","contributors_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/contributors","subscribers_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/subscribers","subscription_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/subscription","commits_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/contents/{+path}","compare_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/merges","archive_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/downloads","issues_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues{/number}","pulls_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls{/number}","milestones_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/milestones{/number}","notifications_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/labels{/name}","releases_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/releases{/id}","deployments_url":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/deployments","created_at":"2019-08-20T07:25:26Z","updated_at":"2019-08-20T07:25:29Z","pushed_at":"2019-09-04T07:20:55Z","git_url":"git://github.com/Artem-Marakhovskyi/smart-house-device-printer.git","ssh_url":"git@github.com:Artem-Marakhovskyi/smart-house-device-printer.git","clone_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer.git","svn_url":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":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/Artem-Marakhovskyi/smart-house-device-printer/pulls/1"},"html":{"href":"https://github.com/Artem-Marakhovskyi/smart-house-device-printer/pull/1"},"issue":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/1"},"comments":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Artem-Marakhovskyi/smart-house-device-printer/statuses/72d0ad0327e785d97491fefc842f3badd37f4969"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Artem-Marakhovskyi"}}