{"action":"created","comment":{"url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/comments/357957029","pull_request_review_id":332245475,"id":357957029,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1Nzk1NzAyOQ==","diff_hunk":"@@ -0,0 +1,44 @@\n+﻿using GalaSoft.MvvmLight;\n+using GalaSoft.MvvmLight.Command;\n+using System;\n+using System.Collections.Generic;\n+using System.Collections.ObjectModel;\n+using System.Text;\n+\n+namespace ShoppingList\n+{\n+    public class MainWindowViewModel : ViewModelBase\n+    {\n+        private Item? _SelectedItem;\n+        private string? _NewItemName;\n+\n+        public Item? SelectedItem\n+        {\n+            get => _SelectedItem;\n+            set => Set(ref _SelectedItem, value);\n+        }\n+\n+        public string? NewItemName\n+        {\n+            get => _NewItemName;\n+            set => Set(ref _NewItemName, value);\n+        }\n+\n+        public ObservableCollection<Item> Items { get; } = new ObservableCollection<Item>();\n+        public RelayCommand AddItemCommand { get; }\n+\n+        public MainWindowViewModel()\n+        {\n+            AddItemCommand = new RelayCommand(OnAddItem);\n+        }\n+\n+        private void OnAddItem()\n+        {\n+            if (!string.IsNullOrWhiteSpace(NewItemName) && !string.IsNullOrEmpty(NewItemName))","path":"ShoppingList/ShoppingList/MainWindowViewModel.cs","position":37,"original_position":37,"commit_id":"7289ebb2b298238e524c073888009ca9af79f1fc","original_commit_id":"7289ebb2b298238e524c073888009ca9af79f1fc","user":{"login":"Keboo","id":952248,"node_id":"MDQ6VXNlcjk1MjI0OA==","avatar_url":"https://avatars1.githubusercontent.com/u/952248?v=4","gravatar_id":"","url":"https://api.github.com/users/Keboo","html_url":"https://github.com/Keboo","followers_url":"https://api.github.com/users/Keboo/followers","following_url":"https://api.github.com/users/Keboo/following{/other_user}","gists_url":"https://api.github.com/users/Keboo/gists{/gist_id}","starred_url":"https://api.github.com/users/Keboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keboo/subscriptions","organizations_url":"https://api.github.com/users/Keboo/orgs","repos_url":"https://api.github.com/users/Keboo/repos","events_url":"https://api.github.com/users/Keboo/events{/privacy}","received_events_url":"https://api.github.com/users/Keboo/received_events","type":"User","site_admin":false},"body":"Since you already checked `string.IsNullOrWhiteSpace` the `string.IsNullOrEmpty` is meaningless and can be removed.\r\n```suggestion\r\n            if (!string.IsNullOrWhiteSpace(NewItemName))\r\n```","created_at":"2019-12-15T06:38:08Z","updated_at":"2019-12-15T06:39:32Z","html_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pull/328#discussion_r357957029","pull_request_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/comments/357957029"},"html":{"href":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pull/328#discussion_r357957029"},"pull_request":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328","id":351206965,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUxMjA2OTY1","html_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pull/328","diff_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pull/328.diff","patch_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pull/328.patch","issue_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues/328","number":328,"state":"open","locked":false,"title":"Assignment 9","user":{"login":"kenny2892","id":50684573,"node_id":"MDQ6VXNlcjUwNjg0NTcz","avatar_url":"https://avatars2.githubusercontent.com/u/50684573?v=4","gravatar_id":"","url":"https://api.github.com/users/kenny2892","html_url":"https://github.com/kenny2892","followers_url":"https://api.github.com/users/kenny2892/followers","following_url":"https://api.github.com/users/kenny2892/following{/other_user}","gists_url":"https://api.github.com/users/kenny2892/gists{/gist_id}","starred_url":"https://api.github.com/users/kenny2892/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenny2892/subscriptions","organizations_url":"https://api.github.com/users/kenny2892/orgs","repos_url":"https://api.github.com/users/kenny2892/repos","events_url":"https://api.github.com/users/kenny2892/events{/privacy}","received_events_url":"https://api.github.com/users/kenny2892/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-12-10T05:29:46Z","updated_at":"2019-12-15T06:39:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21c9e019d95c2a9ba9a51b2c16a14f8d9703550e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328/commits","review_comments_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328/comments","review_comment_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues/328/comments","statuses_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/statuses/7289ebb2b298238e524c073888009ca9af79f1fc","head":{"label":"kenny2892:Assignment_9","ref":"Assignment_9","sha":"7289ebb2b298238e524c073888009ca9af79f1fc","user":{"login":"kenny2892","id":50684573,"node_id":"MDQ6VXNlcjUwNjg0NTcz","avatar_url":"https://avatars2.githubusercontent.com/u/50684573?v=4","gravatar_id":"","url":"https://api.github.com/users/kenny2892","html_url":"https://github.com/kenny2892","followers_url":"https://api.github.com/users/kenny2892/followers","following_url":"https://api.github.com/users/kenny2892/following{/other_user}","gists_url":"https://api.github.com/users/kenny2892/gists{/gist_id}","starred_url":"https://api.github.com/users/kenny2892/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenny2892/subscriptions","organizations_url":"https://api.github.com/users/kenny2892/orgs","repos_url":"https://api.github.com/users/kenny2892/repos","events_url":"https://api.github.com/users/kenny2892/events{/privacy}","received_events_url":"https://api.github.com/users/kenny2892/received_events","type":"User","site_admin":false},"repo":{"id":212661903,"node_id":"MDEwOlJlcG9zaXRvcnkyMTI2NjE5MDM=","name":"EWU-CSCD371-2019-Fall","full_name":"kenny2892/EWU-CSCD371-2019-Fall","private":false,"owner":{"login":"kenny2892","id":50684573,"node_id":"MDQ6VXNlcjUwNjg0NTcz","avatar_url":"https://avatars2.githubusercontent.com/u/50684573?v=4","gravatar_id":"","url":"https://api.github.com/users/kenny2892","html_url":"https://github.com/kenny2892","followers_url":"https://api.github.com/users/kenny2892/followers","following_url":"https://api.github.com/users/kenny2892/following{/other_user}","gists_url":"https://api.github.com/users/kenny2892/gists{/gist_id}","starred_url":"https://api.github.com/users/kenny2892/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenny2892/subscriptions","organizations_url":"https://api.github.com/users/kenny2892/orgs","repos_url":"https://api.github.com/users/kenny2892/repos","events_url":"https://api.github.com/users/kenny2892/events{/privacy}","received_events_url":"https://api.github.com/users/kenny2892/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kenny2892/EWU-CSCD371-2019-Fall","description":null,"fork":true,"url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall","forks_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/forks","keys_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/teams","hooks_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/hooks","issue_events_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/issues/events{/number}","events_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/events","assignees_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/assignees{/user}","branches_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/branches{/branch}","tags_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/tags","blobs_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/git/refs{/sha}","trees_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/statuses/{sha}","languages_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/languages","stargazers_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/stargazers","contributors_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/contributors","subscribers_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/subscribers","subscription_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/subscription","commits_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/commits{/sha}","git_commits_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/git/commits{/sha}","comments_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/comments{/number}","issue_comment_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/issues/comments{/number}","contents_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/contents/{+path}","compare_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/merges","archive_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/downloads","issues_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/issues{/number}","pulls_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/pulls{/number}","milestones_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/milestones{/number}","notifications_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/labels{/name}","releases_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/releases{/id}","deployments_url":"https://api.github.com/repos/kenny2892/EWU-CSCD371-2019-Fall/deployments","created_at":"2019-10-03T19:25:51Z","updated_at":"2019-10-03T19:25:52Z","pushed_at":"2019-12-10T11:57:41Z","git_url":"git://github.com/kenny2892/EWU-CSCD371-2019-Fall.git","ssh_url":"git@github.com:kenny2892/EWU-CSCD371-2019-Fall.git","clone_url":"https://github.com/kenny2892/EWU-CSCD371-2019-Fall.git","svn_url":"https://github.com/kenny2892/EWU-CSCD371-2019-Fall","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"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":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"IntelliTect-Samples:Assignment9","ref":"Assignment9","sha":"908cf584bb66e6bc6899da8b268fc08b5f54e246","user":{"login":"IntelliTect-Samples","id":19698754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5Njk4NzU0","avatar_url":"https://avatars2.githubusercontent.com/u/19698754?v=4","gravatar_id":"","url":"https://api.github.com/users/IntelliTect-Samples","html_url":"https://github.com/IntelliTect-Samples","followers_url":"https://api.github.com/users/IntelliTect-Samples/followers","following_url":"https://api.github.com/users/IntelliTect-Samples/following{/other_user}","gists_url":"https://api.github.com/users/IntelliTect-Samples/gists{/gist_id}","starred_url":"https://api.github.com/users/IntelliTect-Samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntelliTect-Samples/subscriptions","organizations_url":"https://api.github.com/users/IntelliTect-Samples/orgs","repos_url":"https://api.github.com/users/IntelliTect-Samples/repos","events_url":"https://api.github.com/users/IntelliTect-Samples/events{/privacy}","received_events_url":"https://api.github.com/users/IntelliTect-Samples/received_events","type":"Organization","site_admin":false},"repo":{"id":209622713,"node_id":"MDEwOlJlcG9zaXRvcnkyMDk2MjI3MTM=","name":"EWU-CSCD371-2019-Fall","full_name":"IntelliTect-Samples/EWU-CSCD371-2019-Fall","private":false,"owner":{"login":"IntelliTect-Samples","id":19698754,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5Njk4NzU0","avatar_url":"https://avatars2.githubusercontent.com/u/19698754?v=4","gravatar_id":"","url":"https://api.github.com/users/IntelliTect-Samples","html_url":"https://github.com/IntelliTect-Samples","followers_url":"https://api.github.com/users/IntelliTect-Samples/followers","following_url":"https://api.github.com/users/IntelliTect-Samples/following{/other_user}","gists_url":"https://api.github.com/users/IntelliTect-Samples/gists{/gist_id}","starred_url":"https://api.github.com/users/IntelliTect-Samples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntelliTect-Samples/subscriptions","organizations_url":"https://api.github.com/users/IntelliTect-Samples/orgs","repos_url":"https://api.github.com/users/IntelliTect-Samples/repos","events_url":"https://api.github.com/users/IntelliTect-Samples/events{/privacy}","received_events_url":"https://api.github.com/users/IntelliTect-Samples/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall","description":null,"fork":false,"url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall","forks_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/forks","keys_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/teams","hooks_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/hooks","issue_events_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues/events{/number}","events_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/events","assignees_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/assignees{/user}","branches_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/branches{/branch}","tags_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/tags","blobs_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/git/refs{/sha}","trees_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/statuses/{sha}","languages_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/languages","stargazers_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/stargazers","contributors_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/contributors","subscribers_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/subscribers","subscription_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/subscription","commits_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/commits{/sha}","git_commits_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/git/commits{/sha}","comments_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/comments{/number}","issue_comment_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues/comments{/number}","contents_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/contents/{+path}","compare_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/merges","archive_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/downloads","issues_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues{/number}","pulls_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls{/number}","milestones_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/milestones{/number}","notifications_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/labels{/name}","releases_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/releases{/id}","deployments_url":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/deployments","created_at":"2019-09-19T18:28:05Z","updated_at":"2019-10-25T04:50:27Z","pushed_at":"2019-12-12T07:09:56Z","git_url":"git://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall.git","ssh_url":"git@github.com:IntelliTect-Samples/EWU-CSCD371-2019-Fall.git","clone_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall.git","svn_url":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall","homepage":null,"size":118,"stargazers_count":10,"watchers_count":10,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":103,"license":null,"forks":37,"open_issues":103,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328"},"html":{"href":"https://github.com/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pull/328"},"issue":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues/328"},"comments":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/IntelliTect-Samples/EWU-CSCD371-2019-Fall/statuses/7289ebb2b298238e524c073888009ca9af79f1fc"}},"author_association":"NONE"}}
{"actor":{"display_login":"Keboo"}}