{"action":"created","comment":{"url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/comments/67624841","id":67624841,"diff_hunk":"@@ -0,0 +1,193 @@\n+//\n+//  Weather.swift\n+//  APIClient\n+//\n+//  Created by Colin Otchere on 05.06.16.\n+//  Copyright © 2016 iOS Dev Kurs Universität Heidelberg. All rights reserved.\n+//\n+\n+import Foundation\n+import Freddy\n+import UIKit\n+\n+struct WeatherRawData:JSONDecodable{\n+    \n+    let currentWeather: Weather\n+    let dailyWeather: Data\n+    let timezone: String\n+    \n+    init(json: JSON) throws {\n+        self.timezone = try json.string(\"timezone\")\n+        self.currentWeather = try json.decode(\"currently\")\n+        self.dailyWeather = try json.decode(\"daily\")\n+    }\n+}\n+\n+struct Data: JSONDecodable{\n+    \n+    let data: [WeatherData]\n+    \n+    init(json: JSON) throws {\n+        self.data = try json.arrayOf(\"data\")\n+    }\n+}\n+struct Weather:JSONDecodable{\n+        \n+    let time: Int\n+    let summary: String\n+    let icon: String\n+    var temperatur: Double\n+    var summaryGer: String\n+    \n+    init(json: JSON) throws {\n+            \n+        self.summary = try json.string(\"summary\")\n+        self.time = try json.int(\"time\")\n+        self.icon = try json.string(\"icon\")\n+        self.temperatur = try json.double(\"temperature\")\n+        self.summaryGer = \"\"\n+        convertToCelsius()\n+        self.summaryGer = translate(self.icon)\n+    }\n+\n+    mutating func convertToCelsius(){","path":"APIClient/Forecast.swift","position":53,"original_position":53,"commit_id":"5845602a84fe1e1ec354632784ba0344e55756df","original_commit_id":"5845602a84fe1e1ec354632784ba0344e55756df","user":{"login":"knly","id":746230,"avatar_url":"https://avatars.githubusercontent.com/u/746230?v=3","gravatar_id":"","url":"https://api.github.com/users/knly","html_url":"https://github.com/knly","followers_url":"https://api.github.com/users/knly/followers","following_url":"https://api.github.com/users/knly/following{/other_user}","gists_url":"https://api.github.com/users/knly/gists{/gist_id}","starred_url":"https://api.github.com/users/knly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knly/subscriptions","organizations_url":"https://api.github.com/users/knly/orgs","repos_url":"https://api.github.com/users/knly/repos","events_url":"https://api.github.com/users/knly/events{/privacy}","received_events_url":"https://api.github.com/users/knly/received_events","type":"User","site_admin":false},"body":"Hier verlässt du dich darauf, dass diese Funktion genau einmal aufgerufen wird. Speicher die Temperatur lieber direkt in einer bestimmten Einheit.","created_at":"2016-06-19T22:14:26Z","updated_at":"2016-06-19T22:14:26Z","html_url":"https://github.com/iOS-Dev-Kurs/apiclient/pull/8#discussion_r67624841","pull_request_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/comments/67624841"},"html":{"href":"https://github.com/iOS-Dev-Kurs/apiclient/pull/8#discussion_r67624841"},"pull_request":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8","id":73397776,"html_url":"https://github.com/iOS-Dev-Kurs/apiclient/pull/8","diff_url":"https://github.com/iOS-Dev-Kurs/apiclient/pull/8.diff","patch_url":"https://github.com/iOS-Dev-Kurs/apiclient/pull/8.patch","issue_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues/8","number":8,"state":"open","locked":false,"title":"WeatherClient","user":{"login":"cotchere","id":15926453,"avatar_url":"https://avatars.githubusercontent.com/u/15926453?v=3","gravatar_id":"","url":"https://api.github.com/users/cotchere","html_url":"https://github.com/cotchere","followers_url":"https://api.github.com/users/cotchere/followers","following_url":"https://api.github.com/users/cotchere/following{/other_user}","gists_url":"https://api.github.com/users/cotchere/gists{/gist_id}","starred_url":"https://api.github.com/users/cotchere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotchere/subscriptions","organizations_url":"https://api.github.com/users/cotchere/orgs","repos_url":"https://api.github.com/users/cotchere/repos","events_url":"https://api.github.com/users/cotchere/events{/privacy}","received_events_url":"https://api.github.com/users/cotchere/received_events","type":"User","site_admin":false},"body":"WeatherClient using forecastApi for weatherData and Google GeocodingApi for longitude/ latitude","created_at":"2016-06-10T16:08:29Z","updated_at":"2016-06-19T22:14:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8/commits","review_comments_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8/comments","review_comment_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues/8/comments","statuses_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/statuses/5845602a84fe1e1ec354632784ba0344e55756df","head":{"label":"cotchere:master","ref":"master","sha":"5845602a84fe1e1ec354632784ba0344e55756df","user":{"login":"cotchere","id":15926453,"avatar_url":"https://avatars.githubusercontent.com/u/15926453?v=3","gravatar_id":"","url":"https://api.github.com/users/cotchere","html_url":"https://github.com/cotchere","followers_url":"https://api.github.com/users/cotchere/followers","following_url":"https://api.github.com/users/cotchere/following{/other_user}","gists_url":"https://api.github.com/users/cotchere/gists{/gist_id}","starred_url":"https://api.github.com/users/cotchere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotchere/subscriptions","organizations_url":"https://api.github.com/users/cotchere/orgs","repos_url":"https://api.github.com/users/cotchere/repos","events_url":"https://api.github.com/users/cotchere/events{/privacy}","received_events_url":"https://api.github.com/users/cotchere/received_events","type":"User","site_admin":false},"repo":{"id":59491567,"name":"apiclient","full_name":"cotchere/apiclient","owner":{"login":"cotchere","id":15926453,"avatar_url":"https://avatars.githubusercontent.com/u/15926453?v=3","gravatar_id":"","url":"https://api.github.com/users/cotchere","html_url":"https://github.com/cotchere","followers_url":"https://api.github.com/users/cotchere/followers","following_url":"https://api.github.com/users/cotchere/following{/other_user}","gists_url":"https://api.github.com/users/cotchere/gists{/gist_id}","starred_url":"https://api.github.com/users/cotchere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cotchere/subscriptions","organizations_url":"https://api.github.com/users/cotchere/orgs","repos_url":"https://api.github.com/users/cotchere/repos","events_url":"https://api.github.com/users/cotchere/events{/privacy}","received_events_url":"https://api.github.com/users/cotchere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cotchere/apiclient","description":"Mit der APIClient App implementieren wir eine Benutzeroberfläche für eine REST API.","fork":true,"url":"https://api.github.com/repos/cotchere/apiclient","forks_url":"https://api.github.com/repos/cotchere/apiclient/forks","keys_url":"https://api.github.com/repos/cotchere/apiclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cotchere/apiclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cotchere/apiclient/teams","hooks_url":"https://api.github.com/repos/cotchere/apiclient/hooks","issue_events_url":"https://api.github.com/repos/cotchere/apiclient/issues/events{/number}","events_url":"https://api.github.com/repos/cotchere/apiclient/events","assignees_url":"https://api.github.com/repos/cotchere/apiclient/assignees{/user}","branches_url":"https://api.github.com/repos/cotchere/apiclient/branches{/branch}","tags_url":"https://api.github.com/repos/cotchere/apiclient/tags","blobs_url":"https://api.github.com/repos/cotchere/apiclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cotchere/apiclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cotchere/apiclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/cotchere/apiclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cotchere/apiclient/statuses/{sha}","languages_url":"https://api.github.com/repos/cotchere/apiclient/languages","stargazers_url":"https://api.github.com/repos/cotchere/apiclient/stargazers","contributors_url":"https://api.github.com/repos/cotchere/apiclient/contributors","subscribers_url":"https://api.github.com/repos/cotchere/apiclient/subscribers","subscription_url":"https://api.github.com/repos/cotchere/apiclient/subscription","commits_url":"https://api.github.com/repos/cotchere/apiclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/cotchere/apiclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/cotchere/apiclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/cotchere/apiclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/cotchere/apiclient/contents/{+path}","compare_url":"https://api.github.com/repos/cotchere/apiclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cotchere/apiclient/merges","archive_url":"https://api.github.com/repos/cotchere/apiclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cotchere/apiclient/downloads","issues_url":"https://api.github.com/repos/cotchere/apiclient/issues{/number}","pulls_url":"https://api.github.com/repos/cotchere/apiclient/pulls{/number}","milestones_url":"https://api.github.com/repos/cotchere/apiclient/milestones{/number}","notifications_url":"https://api.github.com/repos/cotchere/apiclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cotchere/apiclient/labels{/name}","releases_url":"https://api.github.com/repos/cotchere/apiclient/releases{/id}","deployments_url":"https://api.github.com/repos/cotchere/apiclient/deployments","created_at":"2016-05-23T14:53:12Z","updated_at":"2016-05-23T14:53:19Z","pushed_at":"2016-06-10T16:53:49Z","git_url":"git://github.com/cotchere/apiclient.git","ssh_url":"git@github.com:cotchere/apiclient.git","clone_url":"https://github.com/cotchere/apiclient.git","svn_url":"https://github.com/cotchere/apiclient","homepage":"ios-dev-kurs.github.io","size":233,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iOS-Dev-Kurs:master","ref":"master","sha":"c959672f5a7196fe1f52aeaab18648f3ca4b823b","user":{"login":"iOS-Dev-Kurs","id":7264187,"avatar_url":"https://avatars.githubusercontent.com/u/7264187?v=3","gravatar_id":"","url":"https://api.github.com/users/iOS-Dev-Kurs","html_url":"https://github.com/iOS-Dev-Kurs","followers_url":"https://api.github.com/users/iOS-Dev-Kurs/followers","following_url":"https://api.github.com/users/iOS-Dev-Kurs/following{/other_user}","gists_url":"https://api.github.com/users/iOS-Dev-Kurs/gists{/gist_id}","starred_url":"https://api.github.com/users/iOS-Dev-Kurs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOS-Dev-Kurs/subscriptions","organizations_url":"https://api.github.com/users/iOS-Dev-Kurs/orgs","repos_url":"https://api.github.com/users/iOS-Dev-Kurs/repos","events_url":"https://api.github.com/users/iOS-Dev-Kurs/events{/privacy}","received_events_url":"https://api.github.com/users/iOS-Dev-Kurs/received_events","type":"Organization","site_admin":false},"repo":{"id":59417058,"name":"apiclient","full_name":"iOS-Dev-Kurs/apiclient","owner":{"login":"iOS-Dev-Kurs","id":7264187,"avatar_url":"https://avatars.githubusercontent.com/u/7264187?v=3","gravatar_id":"","url":"https://api.github.com/users/iOS-Dev-Kurs","html_url":"https://github.com/iOS-Dev-Kurs","followers_url":"https://api.github.com/users/iOS-Dev-Kurs/followers","following_url":"https://api.github.com/users/iOS-Dev-Kurs/following{/other_user}","gists_url":"https://api.github.com/users/iOS-Dev-Kurs/gists{/gist_id}","starred_url":"https://api.github.com/users/iOS-Dev-Kurs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iOS-Dev-Kurs/subscriptions","organizations_url":"https://api.github.com/users/iOS-Dev-Kurs/orgs","repos_url":"https://api.github.com/users/iOS-Dev-Kurs/repos","events_url":"https://api.github.com/users/iOS-Dev-Kurs/events{/privacy}","received_events_url":"https://api.github.com/users/iOS-Dev-Kurs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iOS-Dev-Kurs/apiclient","description":"Mit der APIClient App implementieren wir eine Benutzeroberfläche für eine REST API.","fork":false,"url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient","forks_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/forks","keys_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/teams","hooks_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/hooks","issue_events_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues/events{/number}","events_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/events","assignees_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/assignees{/user}","branches_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/branches{/branch}","tags_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/tags","blobs_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/statuses/{sha}","languages_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/languages","stargazers_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/stargazers","contributors_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/contributors","subscribers_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/subscribers","subscription_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/subscription","commits_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/contents/{+path}","compare_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/merges","archive_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/downloads","issues_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues{/number}","pulls_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls{/number}","milestones_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/milestones{/number}","notifications_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/labels{/name}","releases_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/releases{/id}","deployments_url":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/deployments","created_at":"2016-05-22T14:38:19Z","updated_at":"2016-05-22T15:00:19Z","pushed_at":"2016-06-14T12:38:48Z","git_url":"git://github.com/iOS-Dev-Kurs/apiclient.git","ssh_url":"git@github.com:iOS-Dev-Kurs/apiclient.git","clone_url":"https://github.com/iOS-Dev-Kurs/apiclient.git","svn_url":"https://github.com/iOS-Dev-Kurs/apiclient","homepage":"ios-dev-kurs.github.io","size":406,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":9,"forks":15,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8"},"html":{"href":"https://github.com/iOS-Dev-Kurs/apiclient/pull/8"},"issue":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues/8"},"comments":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/iOS-Dev-Kurs/apiclient/statuses/5845602a84fe1e1ec354632784ba0344e55756df"}}}}
{"actor":{"display_login":"knly"}}