forked from pvzig/SlackKit
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
1 parent
12cadee
commit 8aa4ba2
Showing
2 changed files
with
32 additions
and
1 deletion.
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
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,29 @@ | ||
// | ||
// TeamIcon.swift | ||
// Pods | ||
// | ||
// Created by 佑介 村田 on 2016/02/27. | ||
// | ||
// | ||
|
||
public struct TeamIcon { | ||
internal(set) public var image34: String? | ||
internal(set) public var image44: String? | ||
internal(set) public var image68: String? | ||
internal(set) public var image88: String? | ||
internal(set) public var image102: String? | ||
internal(set) public var image132: String? | ||
internal(set) public var imageOriginal: String? | ||
internal(set) public var imageDefault: Bool? | ||
|
||
internal init?(icon: [String: AnyObject]?) { | ||
image34 = icon?["image_34"] as? String | ||
image44 = icon?["image_44"] as? String | ||
image68 = icon?["image_68"] as? String | ||
image88 = icon?["image_88"] as? String | ||
image102 = icon?["image_102"] as? String | ||
image132 = icon?["image_132"] as? String | ||
imageOriginal = icon?["image_original"] as? String | ||
imageDefault = icon?["image_default"] as? Bool | ||
} | ||
} |