-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
6 changed files
with
61 additions
and
61 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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
public struct Construction: Codable { | ||
let time: String | ||
let wikiUrl: String | ||
let ships: [String] | ||
public let time: String | ||
public let wikiUrl: String | ||
public let ships: [String] | ||
} | ||
|
||
public struct BuildResponse: Codable { | ||
let statusCode: Int | ||
let statusMessage: String | ||
let message: String | ||
let construction: Construction | ||
public let statusCode: Int | ||
public let statusMessage: String | ||
public let message: String | ||
public let construction: Construction | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
public struct ErrorResponse: Codable { | ||
let statusCode: Int | ||
let statusMessage: String | ||
let message: String | ||
let error: String? | ||
public let statusCode: Int | ||
public let statusMessage: String | ||
public let message: String | ||
public let error: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,68 @@ | ||
public struct Names: Codable { | ||
let en: String? | ||
let cn: String? | ||
let jp: String? | ||
let kr: String? | ||
public let en: String? | ||
public let cn: String? | ||
public let jp: String? | ||
public let kr: String? | ||
} | ||
|
||
public struct Skin: Codable { | ||
let title: String? | ||
let image: String? | ||
let chibi: String? | ||
public let title: String? | ||
public let image: String? | ||
public let chibi: String? | ||
} | ||
|
||
public struct Stars: Codable { | ||
let value: String? | ||
let count: Int | ||
public let value: String? | ||
public let count: Int | ||
} | ||
|
||
public struct Stat: Codable { | ||
let name: String? | ||
let image: String? | ||
let value: String? | ||
public let name: String? | ||
public let image: String? | ||
public let value: String? | ||
} | ||
|
||
public struct Stats: Codable { | ||
let level100: [Stat]? | ||
let level120: [Stat]? | ||
let base: [Stat]? | ||
let retrofit100: [Stat]? | ||
let retrofit120: [Stat]? | ||
public let level100: [Stat]? | ||
public let level120: [Stat]? | ||
public let base: [Stat]? | ||
public let retrofit100: [Stat]? | ||
public let retrofit120: [Stat]? | ||
} | ||
|
||
public struct MiscellaneousData: Codable { | ||
let link: String? | ||
let name: String? | ||
public let link: String? | ||
public let name: String? | ||
} | ||
|
||
public struct Miscellaneous: Codable { | ||
let artist: MiscellaneousData? | ||
let web: MiscellaneousData? | ||
let pixiv: MiscellaneousData? | ||
let twitter: MiscellaneousData? | ||
let voiceActerss: MiscellaneousData? | ||
public let artist: MiscellaneousData? | ||
public let web: MiscellaneousData? | ||
public let pixiv: MiscellaneousData? | ||
public let twitter: MiscellaneousData? | ||
public let voiceActerss: MiscellaneousData? | ||
} | ||
|
||
public struct Ship: Codable { | ||
let wikiUrl: String | ||
let id: String? | ||
let names: Names | ||
let thumbnail: String | ||
let skins: [Skin] | ||
let buildTime: String? | ||
let rarity: String? | ||
let stars: Stars | ||
let `class`: String? | ||
let nationality: String? | ||
let nationalityShort: String? | ||
let hullType: String? | ||
let stats: Stats | ||
let miscellaneous: Miscellaneous | ||
public let wikiUrl: String | ||
public let id: String? | ||
public let names: Names | ||
public let thumbnail: String | ||
public let skins: [Skin] | ||
public let buildTime: String? | ||
public let rarity: String? | ||
public let stars: Stars | ||
public let `class`: String? | ||
public let nationality: String? | ||
public let nationalityShort: String? | ||
public let hullType: String? | ||
public let stats: Stats | ||
public let miscellaneous: Miscellaneous | ||
} | ||
|
||
public struct ShipResponse: Codable { | ||
let statusCode: Int | ||
let statusMessage: String | ||
let message: String | ||
let ship: Ship | ||
public let statusCode: Int | ||
public let statusMessage: String | ||
public let message: String | ||
public let ship: Ship | ||
} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
public struct SmallShip: Codable, Equatable { | ||
let id: String | ||
let name: String | ||
public let id: String | ||
public let name: String | ||
} | ||
|
||
public struct ShipsResponse: Codable { | ||
let statusCode: Int | ||
let statusMessage: String | ||
let message: String | ||
let ships: [SmallShip] | ||
public let statusCode: Int | ||
public let statusMessage: String | ||
public let message: String | ||
public let ships: [SmallShip] | ||
} |