{"action":"created","comment":{"url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/comments/174769762","pull_request_review_id":104185852,"id":174769762,"diff_hunk":"@@ -0,0 +1,30 @@\n+import { IOrder } from \"./../model/Order\";\n+import { BaseService } from \"./BaseService\";\n+\n+export class OrderService extends BaseService {\n+  readonly url = this.buildUrl(\"order\");","path":"src/api/OrderService.ts","position":5,"original_position":5,"commit_id":"0a54691e54e4460f72667b50eeb88134175b5511","original_commit_id":"0a54691e54e4460f72667b50eeb88134175b5511","user":{"login":"rowellx68","id":10155704,"avatar_url":"https://avatars0.githubusercontent.com/u/10155704?v=4","gravatar_id":"","url":"https://api.github.com/users/rowellx68","html_url":"https://github.com/rowellx68","followers_url":"https://api.github.com/users/rowellx68/followers","following_url":"https://api.github.com/users/rowellx68/following{/other_user}","gists_url":"https://api.github.com/users/rowellx68/gists{/gist_id}","starred_url":"https://api.github.com/users/rowellx68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowellx68/subscriptions","organizations_url":"https://api.github.com/users/rowellx68/orgs","repos_url":"https://api.github.com/users/rowellx68/repos","events_url":"https://api.github.com/users/rowellx68/events{/privacy}","received_events_url":"https://api.github.com/users/rowellx68/received_events","type":"User","site_admin":false},"body":"For the services that extends `BaseService`, it will be best to set the `url` property to private. \r\n\r\nIt will also be best to set the value in the constructor. That way we’ll only ever call `buildUrl` once as opposed to calling it every time we use `url`","created_at":"2018-03-15T12:49:34Z","updated_at":"2018-03-15T12:58:10Z","html_url":"https://github.com/liamoh7/answer-king-aurelia/pull/2#discussion_r174769762","pull_request_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/comments/174769762"},"html":{"href":"https://github.com/liamoh7/answer-king-aurelia/pull/2#discussion_r174769762"},"pull_request":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2","id":175227234,"html_url":"https://github.com/liamoh7/answer-king-aurelia/pull/2","diff_url":"https://github.com/liamoh7/answer-king-aurelia/pull/2.diff","patch_url":"https://github.com/liamoh7/answer-king-aurelia/pull/2.patch","issue_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/2","number":2,"state":"open","locked":false,"title":"[LTP-2] Implements order creation.","user":{"login":"liamoh7","id":36305915,"avatar_url":"https://avatars2.githubusercontent.com/u/36305915?v=4","gravatar_id":"","url":"https://api.github.com/users/liamoh7","html_url":"https://github.com/liamoh7","followers_url":"https://api.github.com/users/liamoh7/followers","following_url":"https://api.github.com/users/liamoh7/following{/other_user}","gists_url":"https://api.github.com/users/liamoh7/gists{/gist_id}","starred_url":"https://api.github.com/users/liamoh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamoh7/subscriptions","organizations_url":"https://api.github.com/users/liamoh7/orgs","repos_url":"https://api.github.com/users/liamoh7/repos","events_url":"https://api.github.com/users/liamoh7/events{/privacy}","received_events_url":"https://api.github.com/users/liamoh7/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-15T11:54:21Z","updated_at":"2018-03-15T12:58:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"449d564b8944faecce3b36e7acff91728450f45c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2/commits","review_comments_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2/comments","review_comment_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/2/comments","statuses_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/statuses/0a54691e54e4460f72667b50eeb88134175b5511","head":{"label":"liamoh7:ltp-2","ref":"ltp-2","sha":"0a54691e54e4460f72667b50eeb88134175b5511","user":{"login":"liamoh7","id":36305915,"avatar_url":"https://avatars2.githubusercontent.com/u/36305915?v=4","gravatar_id":"","url":"https://api.github.com/users/liamoh7","html_url":"https://github.com/liamoh7","followers_url":"https://api.github.com/users/liamoh7/followers","following_url":"https://api.github.com/users/liamoh7/following{/other_user}","gists_url":"https://api.github.com/users/liamoh7/gists{/gist_id}","starred_url":"https://api.github.com/users/liamoh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamoh7/subscriptions","organizations_url":"https://api.github.com/users/liamoh7/orgs","repos_url":"https://api.github.com/users/liamoh7/repos","events_url":"https://api.github.com/users/liamoh7/events{/privacy}","received_events_url":"https://api.github.com/users/liamoh7/received_events","type":"User","site_admin":false},"repo":{"id":125078416,"name":"answer-king-aurelia","full_name":"liamoh7/answer-king-aurelia","owner":{"login":"liamoh7","id":36305915,"avatar_url":"https://avatars2.githubusercontent.com/u/36305915?v=4","gravatar_id":"","url":"https://api.github.com/users/liamoh7","html_url":"https://github.com/liamoh7","followers_url":"https://api.github.com/users/liamoh7/followers","following_url":"https://api.github.com/users/liamoh7/following{/other_user}","gists_url":"https://api.github.com/users/liamoh7/gists{/gist_id}","starred_url":"https://api.github.com/users/liamoh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamoh7/subscriptions","organizations_url":"https://api.github.com/users/liamoh7/orgs","repos_url":"https://api.github.com/users/liamoh7/repos","events_url":"https://api.github.com/users/liamoh7/events{/privacy}","received_events_url":"https://api.github.com/users/liamoh7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liamoh7/answer-king-aurelia","description":null,"fork":false,"url":"https://api.github.com/repos/liamoh7/answer-king-aurelia","forks_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/forks","keys_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/teams","hooks_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/hooks","issue_events_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/events{/number}","events_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/events","assignees_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/assignees{/user}","branches_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/branches{/branch}","tags_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/tags","blobs_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/refs{/sha}","trees_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/statuses/{sha}","languages_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/languages","stargazers_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/stargazers","contributors_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/contributors","subscribers_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/subscribers","subscription_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/subscription","commits_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/commits{/sha}","git_commits_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/commits{/sha}","comments_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/comments{/number}","issue_comment_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/comments{/number}","contents_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/contents/{+path}","compare_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/merges","archive_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/downloads","issues_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues{/number}","pulls_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls{/number}","milestones_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/milestones{/number}","notifications_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/labels{/name}","releases_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/releases{/id}","deployments_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/deployments","created_at":"2018-03-13T16:04:28Z","updated_at":"2018-03-14T13:35:48Z","pushed_at":"2018-03-15T11:54:22Z","git_url":"git://github.com/liamoh7/answer-king-aurelia.git","ssh_url":"git@github.com:liamoh7/answer-king-aurelia.git","clone_url":"https://github.com/liamoh7/answer-king-aurelia.git","svn_url":"https://github.com/liamoh7/answer-king-aurelia","homepage":null,"size":184,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"liamoh7:develop","ref":"develop","sha":"b87ff2d19efceb95c816489a3b23451ba2efc3d5","user":{"login":"liamoh7","id":36305915,"avatar_url":"https://avatars2.githubusercontent.com/u/36305915?v=4","gravatar_id":"","url":"https://api.github.com/users/liamoh7","html_url":"https://github.com/liamoh7","followers_url":"https://api.github.com/users/liamoh7/followers","following_url":"https://api.github.com/users/liamoh7/following{/other_user}","gists_url":"https://api.github.com/users/liamoh7/gists{/gist_id}","starred_url":"https://api.github.com/users/liamoh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamoh7/subscriptions","organizations_url":"https://api.github.com/users/liamoh7/orgs","repos_url":"https://api.github.com/users/liamoh7/repos","events_url":"https://api.github.com/users/liamoh7/events{/privacy}","received_events_url":"https://api.github.com/users/liamoh7/received_events","type":"User","site_admin":false},"repo":{"id":125078416,"name":"answer-king-aurelia","full_name":"liamoh7/answer-king-aurelia","owner":{"login":"liamoh7","id":36305915,"avatar_url":"https://avatars2.githubusercontent.com/u/36305915?v=4","gravatar_id":"","url":"https://api.github.com/users/liamoh7","html_url":"https://github.com/liamoh7","followers_url":"https://api.github.com/users/liamoh7/followers","following_url":"https://api.github.com/users/liamoh7/following{/other_user}","gists_url":"https://api.github.com/users/liamoh7/gists{/gist_id}","starred_url":"https://api.github.com/users/liamoh7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liamoh7/subscriptions","organizations_url":"https://api.github.com/users/liamoh7/orgs","repos_url":"https://api.github.com/users/liamoh7/repos","events_url":"https://api.github.com/users/liamoh7/events{/privacy}","received_events_url":"https://api.github.com/users/liamoh7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/liamoh7/answer-king-aurelia","description":null,"fork":false,"url":"https://api.github.com/repos/liamoh7/answer-king-aurelia","forks_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/forks","keys_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/teams","hooks_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/hooks","issue_events_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/events{/number}","events_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/events","assignees_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/assignees{/user}","branches_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/branches{/branch}","tags_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/tags","blobs_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/refs{/sha}","trees_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/statuses/{sha}","languages_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/languages","stargazers_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/stargazers","contributors_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/contributors","subscribers_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/subscribers","subscription_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/subscription","commits_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/commits{/sha}","git_commits_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/git/commits{/sha}","comments_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/comments{/number}","issue_comment_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/comments{/number}","contents_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/contents/{+path}","compare_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/merges","archive_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/downloads","issues_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues{/number}","pulls_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls{/number}","milestones_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/milestones{/number}","notifications_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/labels{/name}","releases_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/releases{/id}","deployments_url":"https://api.github.com/repos/liamoh7/answer-king-aurelia/deployments","created_at":"2018-03-13T16:04:28Z","updated_at":"2018-03-14T13:35:48Z","pushed_at":"2018-03-15T11:54:22Z","git_url":"git://github.com/liamoh7/answer-king-aurelia.git","ssh_url":"git@github.com:liamoh7/answer-king-aurelia.git","clone_url":"https://github.com/liamoh7/answer-king-aurelia.git","svn_url":"https://github.com/liamoh7/answer-king-aurelia","homepage":null,"size":184,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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/liamoh7/answer-king-aurelia/pulls/2"},"html":{"href":"https://github.com/liamoh7/answer-king-aurelia/pull/2"},"issue":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/2"},"comments":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/liamoh7/answer-king-aurelia/statuses/0a54691e54e4460f72667b50eeb88134175b5511"}},"author_association":"OWNER"}}
{"actor":{"display_login":"rowellx68"}}