-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christoph Pageler
committed
Oct 11, 2018
1 parent
3bf0302
commit ca11d61
Showing
5 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,3 +68,6 @@ fastlane/report.xml | |
fastlane/Preview.html | ||
fastlane/screenshots | ||
fastlane/test_output | ||
|
||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
// Created by Christoph Pageler on 17.11.17. | ||
// | ||
|
||
|
||
import Foundation | ||
import Quack | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// | ||
// JiraMyself.swift | ||
// JiraSwift | ||
// | ||
// Created by Christoph Pageler on 11.10.18. | ||
// | ||
|
||
|
||
import Foundation | ||
import Quack | ||
|
||
|
||
public extension Jira { | ||
|
||
public class Myself: Quack.Model { | ||
|
||
public let accountId: String | ||
public let key: String | ||
public let name: String | ||
public let emailAddress: String | ||
public let displayName: String | ||
public let active: Bool | ||
|
||
public let avatarUrl16: String? | ||
public let avatarUrl24: String? | ||
public let avatarUrl32: String? | ||
public let avatarUrl48: String? | ||
|
||
public required init?(json: JSON) { | ||
guard let accountId = json["accountId"].string, | ||
let key = json["key"].string, | ||
let name = json["name"].string, | ||
let emailAddress = json["emailAddress"].string, | ||
let displayName = json["displayName"].string, | ||
let active = json["active"].bool | ||
else { | ||
return nil | ||
} | ||
|
||
self.accountId = accountId | ||
self.key = key | ||
self.name = name | ||
self.emailAddress = emailAddress | ||
self.displayName = displayName | ||
self.active = active | ||
|
||
self.avatarUrl16 = json["avatarUrls"]["16x16"].string | ||
self.avatarUrl24 = json["avatarUrls"]["24x24"].string | ||
self.avatarUrl32 = json["avatarUrls"]["32x32"].string | ||
self.avatarUrl48 = json["avatarUrls"]["48x48"].string | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters