{"action":"created","comment":{"url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/comments/213800650","pull_request_review_id":150713007,"id":213800650,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzgwMDY1MA==","diff_hunk":"@@ -0,0 +1,73 @@\n+import { Component, OnInit, ViewEncapsulation } from '@angular/core';\n+import { CalendarEvent } from '../../Objects/CalendarEvent';\n+import { CalendarDataService } from '../../Services/calendar-data.service';\n+import { LocalDateTime } from '../../../../Objects/LocalDateTime';\n+\n+/*\n+  Component for setting up a new event.\n+\n+  @author: Florian Bauer\n+*/\n+@Component({\n+  selector: 'app-new-event',\n+  templateUrl: './new-event.component.html',\n+  styleUrls: ['./new-event.component.css'],\n+  encapsulation: ViewEncapsulation.None,\n+})\n+export class NewEventComponent implements OnInit {\n+\n+  allDay: boolean;\n+  location: string;\n+  reminderTime: number;\n+  timeUnit: string;\n+  reminderType: string;\n+\n+  constructor(private calendarService: CalendarDataService) { }\n+\n+  ngOnInit() {\n+    this.allDay = false;\n+    this.location = \"\";\n+    this.reminderTime = null;\n+    this.timeUnit = \"minutes\";\n+    this.reminderType = \"email\";\n+  }\n+\n+  setAllDay() {\n+    this.allDay = !this.allDay;\n+  }\n+\n+  createEvent(title, startDateInput, endDateInput, description, address, city, country, postalCode, timeValue): void {\n+    this.location = address;\n+    const startDate = new Date(startDateInput);\n+    const endDate = new Date(endDateInput);\n+    if(this.allDay){\n+      endDate.setDate(endDate.getDate() + 1);\n+    }\n+    const start = new LocalDateTime(startDate.getFullYear(), startDate.getMonth(), startDate.getDate(), 0, 0);\n+    const end = new LocalDateTime(endDate.getFullYear(), endDate.getMonth(), endDate.getDate(), 23, 59);\n+    if (postalCode != \"\") {\n+      this.location += \", \" + postalCode;\n+      if (city != \"\") {\n+        this.location += \" \" + city;\n+      }\n+    } else if (city != \"\") {\n+      this.location += \", \" + city;\n+    }\n+    if (country != \"\") {","path":"src/app/Plugins/Calendar/Components/new-event/new-event.component.ts","position":56,"original_position":56,"commit_id":"cd93a3a846730c4b7e1d3b7c42ec348b5ff2e81d","original_commit_id":"cd93a3a846730c4b7e1d3b7c42ec348b5ff2e81d","user":{"login":"sonarcloud[bot]","id":39514782,"node_id":"MDM6Qm90Mzk1MTQ3ODI=","avatar_url":"https://avatars2.githubusercontent.com/in/12526?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarcloud%5Bbot%5D","html_url":"https://github.com/apps/sonarcloud","followers_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/followers","following_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/repos","events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"![Code Smell](https://sonarsource.github.io/sonar-github/code_smell.png 'Code Smell') Code Smell: \" should be ' ([external_tslint:quotemark](https://sonarcloud.io/organizations/amyassist/rules#rule_key=external_tslint%3Aquotemark))\n\n[See it in SonarCloud](https://sonarcloud.io/project/issues?id=de.unistuttgart.iaas.amyassist%3Aamy-web&pullRequest=43&issues=AWWHGQnjelKyZq-panF7&open=AWWHGQnjelKyZq-panF7)\n\n[ISSUE_KEY]: AWWHGQnjelKyZq-panF7","created_at":"2018-08-29T19:11:39Z","updated_at":"2018-08-29T19:11:42Z","html_url":"https://github.com/AmyAssist/Amy-Web/pull/43#discussion_r213800650","pull_request_url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/comments/213800650"},"html":{"href":"https://github.com/AmyAssist/Amy-Web/pull/43#discussion_r213800650"},"pull_request":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43","id":203345681,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMzQ1Njgx","html_url":"https://github.com/AmyAssist/Amy-Web/pull/43","diff_url":"https://github.com/AmyAssist/Amy-Web/pull/43.diff","patch_url":"https://github.com/AmyAssist/Amy-Web/pull/43.patch","issue_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/43","number":43,"state":"open","locked":false,"title":"Calendar UI","user":{"login":"Hobbitsloth","id":17177847,"node_id":"MDQ6VXNlcjE3MTc3ODQ3","avatar_url":"https://avatars3.githubusercontent.com/u/17177847?v=4","gravatar_id":"","url":"https://api.github.com/users/Hobbitsloth","html_url":"https://github.com/Hobbitsloth","followers_url":"https://api.github.com/users/Hobbitsloth/followers","following_url":"https://api.github.com/users/Hobbitsloth/following{/other_user}","gists_url":"https://api.github.com/users/Hobbitsloth/gists{/gist_id}","starred_url":"https://api.github.com/users/Hobbitsloth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hobbitsloth/subscriptions","organizations_url":"https://api.github.com/users/Hobbitsloth/orgs","repos_url":"https://api.github.com/users/Hobbitsloth/repos","events_url":"https://api.github.com/users/Hobbitsloth/events{/privacy}","received_events_url":"https://api.github.com/users/Hobbitsloth/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-23T21:14:09Z","updated_at":"2018-08-29T19:11:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f31f7de93f0a845462b8f28a2be9a48b512e836","assignee":{"login":"Hobbitsloth","id":17177847,"node_id":"MDQ6VXNlcjE3MTc3ODQ3","avatar_url":"https://avatars3.githubusercontent.com/u/17177847?v=4","gravatar_id":"","url":"https://api.github.com/users/Hobbitsloth","html_url":"https://github.com/Hobbitsloth","followers_url":"https://api.github.com/users/Hobbitsloth/followers","following_url":"https://api.github.com/users/Hobbitsloth/following{/other_user}","gists_url":"https://api.github.com/users/Hobbitsloth/gists{/gist_id}","starred_url":"https://api.github.com/users/Hobbitsloth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hobbitsloth/subscriptions","organizations_url":"https://api.github.com/users/Hobbitsloth/orgs","repos_url":"https://api.github.com/users/Hobbitsloth/repos","events_url":"https://api.github.com/users/Hobbitsloth/events{/privacy}","received_events_url":"https://api.github.com/users/Hobbitsloth/received_events","type":"User","site_admin":false},"assignees":[{"login":"Hobbitsloth","id":17177847,"node_id":"MDQ6VXNlcjE3MTc3ODQ3","avatar_url":"https://avatars3.githubusercontent.com/u/17177847?v=4","gravatar_id":"","url":"https://api.github.com/users/Hobbitsloth","html_url":"https://github.com/Hobbitsloth","followers_url":"https://api.github.com/users/Hobbitsloth/followers","following_url":"https://api.github.com/users/Hobbitsloth/following{/other_user}","gists_url":"https://api.github.com/users/Hobbitsloth/gists{/gist_id}","starred_url":"https://api.github.com/users/Hobbitsloth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hobbitsloth/subscriptions","organizations_url":"https://api.github.com/users/Hobbitsloth/orgs","repos_url":"https://api.github.com/users/Hobbitsloth/repos","events_url":"https://api.github.com/users/Hobbitsloth/events{/privacy}","received_events_url":"https://api.github.com/users/Hobbitsloth/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43/commits","review_comments_url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43/comments","review_comment_url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/43/comments","statuses_url":"https://api.github.com/repos/AmyAssist/Amy-Web/statuses/cd93a3a846730c4b7e1d3b7c42ec348b5ff2e81d","head":{"label":"AmyAssist:calendarUI","ref":"calendarUI","sha":"cd93a3a846730c4b7e1d3b7c42ec348b5ff2e81d","user":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"repo":{"id":134667931,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ2Njc5MzE=","name":"Amy-Web","full_name":"AmyAssist/Amy-Web","owner":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AmyAssist/Amy-Web","description":"Web-App","fork":false,"url":"https://api.github.com/repos/AmyAssist/Amy-Web","forks_url":"https://api.github.com/repos/AmyAssist/Amy-Web/forks","keys_url":"https://api.github.com/repos/AmyAssist/Amy-Web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmyAssist/Amy-Web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmyAssist/Amy-Web/teams","hooks_url":"https://api.github.com/repos/AmyAssist/Amy-Web/hooks","issue_events_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/events{/number}","events_url":"https://api.github.com/repos/AmyAssist/Amy-Web/events","assignees_url":"https://api.github.com/repos/AmyAssist/Amy-Web/assignees{/user}","branches_url":"https://api.github.com/repos/AmyAssist/Amy-Web/branches{/branch}","tags_url":"https://api.github.com/repos/AmyAssist/Amy-Web/tags","blobs_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmyAssist/Amy-Web/statuses/{sha}","languages_url":"https://api.github.com/repos/AmyAssist/Amy-Web/languages","stargazers_url":"https://api.github.com/repos/AmyAssist/Amy-Web/stargazers","contributors_url":"https://api.github.com/repos/AmyAssist/Amy-Web/contributors","subscribers_url":"https://api.github.com/repos/AmyAssist/Amy-Web/subscribers","subscription_url":"https://api.github.com/repos/AmyAssist/Amy-Web/subscription","commits_url":"https://api.github.com/repos/AmyAssist/Amy-Web/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmyAssist/Amy-Web/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmyAssist/Amy-Web/contents/{+path}","compare_url":"https://api.github.com/repos/AmyAssist/Amy-Web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmyAssist/Amy-Web/merges","archive_url":"https://api.github.com/repos/AmyAssist/Amy-Web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmyAssist/Amy-Web/downloads","issues_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues{/number}","pulls_url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls{/number}","milestones_url":"https://api.github.com/repos/AmyAssist/Amy-Web/milestones{/number}","notifications_url":"https://api.github.com/repos/AmyAssist/Amy-Web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmyAssist/Amy-Web/labels{/name}","releases_url":"https://api.github.com/repos/AmyAssist/Amy-Web/releases{/id}","deployments_url":"https://api.github.com/repos/AmyAssist/Amy-Web/deployments","created_at":"2018-05-24T05:57:27Z","updated_at":"2018-08-29T08:44:14Z","pushed_at":"2018-08-29T19:02:59Z","git_url":"git://github.com/AmyAssist/Amy-Web.git","ssh_url":"git@github.com:AmyAssist/Amy-Web.git","clone_url":"https://github.com/AmyAssist/Amy-Web.git","svn_url":"https://github.com/AmyAssist/Amy-Web","homepage":"https://amyassist.github.io/Amy-Web/","size":914,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":18,"watchers":5,"default_branch":"master"}},"base":{"label":"AmyAssist:master","ref":"master","sha":"0778b6b3938df9fbf816fccb1d8b493469136761","user":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"repo":{"id":134667931,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ2Njc5MzE=","name":"Amy-Web","full_name":"AmyAssist/Amy-Web","owner":{"login":"AmyAssist","id":39340355,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MzQwMzU1","avatar_url":"https://avatars0.githubusercontent.com/u/39340355?v=4","gravatar_id":"","url":"https://api.github.com/users/AmyAssist","html_url":"https://github.com/AmyAssist","followers_url":"https://api.github.com/users/AmyAssist/followers","following_url":"https://api.github.com/users/AmyAssist/following{/other_user}","gists_url":"https://api.github.com/users/AmyAssist/gists{/gist_id}","starred_url":"https://api.github.com/users/AmyAssist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmyAssist/subscriptions","organizations_url":"https://api.github.com/users/AmyAssist/orgs","repos_url":"https://api.github.com/users/AmyAssist/repos","events_url":"https://api.github.com/users/AmyAssist/events{/privacy}","received_events_url":"https://api.github.com/users/AmyAssist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AmyAssist/Amy-Web","description":"Web-App","fork":false,"url":"https://api.github.com/repos/AmyAssist/Amy-Web","forks_url":"https://api.github.com/repos/AmyAssist/Amy-Web/forks","keys_url":"https://api.github.com/repos/AmyAssist/Amy-Web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AmyAssist/Amy-Web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AmyAssist/Amy-Web/teams","hooks_url":"https://api.github.com/repos/AmyAssist/Amy-Web/hooks","issue_events_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/events{/number}","events_url":"https://api.github.com/repos/AmyAssist/Amy-Web/events","assignees_url":"https://api.github.com/repos/AmyAssist/Amy-Web/assignees{/user}","branches_url":"https://api.github.com/repos/AmyAssist/Amy-Web/branches{/branch}","tags_url":"https://api.github.com/repos/AmyAssist/Amy-Web/tags","blobs_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/refs{/sha}","trees_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AmyAssist/Amy-Web/statuses/{sha}","languages_url":"https://api.github.com/repos/AmyAssist/Amy-Web/languages","stargazers_url":"https://api.github.com/repos/AmyAssist/Amy-Web/stargazers","contributors_url":"https://api.github.com/repos/AmyAssist/Amy-Web/contributors","subscribers_url":"https://api.github.com/repos/AmyAssist/Amy-Web/subscribers","subscription_url":"https://api.github.com/repos/AmyAssist/Amy-Web/subscription","commits_url":"https://api.github.com/repos/AmyAssist/Amy-Web/commits{/sha}","git_commits_url":"https://api.github.com/repos/AmyAssist/Amy-Web/git/commits{/sha}","comments_url":"https://api.github.com/repos/AmyAssist/Amy-Web/comments{/number}","issue_comment_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/comments{/number}","contents_url":"https://api.github.com/repos/AmyAssist/Amy-Web/contents/{+path}","compare_url":"https://api.github.com/repos/AmyAssist/Amy-Web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AmyAssist/Amy-Web/merges","archive_url":"https://api.github.com/repos/AmyAssist/Amy-Web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AmyAssist/Amy-Web/downloads","issues_url":"https://api.github.com/repos/AmyAssist/Amy-Web/issues{/number}","pulls_url":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls{/number}","milestones_url":"https://api.github.com/repos/AmyAssist/Amy-Web/milestones{/number}","notifications_url":"https://api.github.com/repos/AmyAssist/Amy-Web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AmyAssist/Amy-Web/labels{/name}","releases_url":"https://api.github.com/repos/AmyAssist/Amy-Web/releases{/id}","deployments_url":"https://api.github.com/repos/AmyAssist/Amy-Web/deployments","created_at":"2018-05-24T05:57:27Z","updated_at":"2018-08-29T08:44:14Z","pushed_at":"2018-08-29T19:02:59Z","git_url":"git://github.com/AmyAssist/Amy-Web.git","ssh_url":"git@github.com:AmyAssist/Amy-Web.git","clone_url":"https://github.com/AmyAssist/Amy-Web.git","svn_url":"https://github.com/AmyAssist/Amy-Web","homepage":"https://amyassist.github.io/Amy-Web/","size":914,"stargazers_count":5,"watchers_count":5,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":18,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43"},"html":{"href":"https://github.com/AmyAssist/Amy-Web/pull/43"},"issue":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/43"},"comments":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/AmyAssist/Amy-Web/statuses/cd93a3a846730c4b7e1d3b7c42ec348b5ff2e81d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sonarcloud"}}