Documented the AmiiboSeries, AmiiboType, GameCharacter, and GameSeries models in the library target.

This commit is contained in:
2025-09-09 09:54:00 +02:00
parent f7ae2f65f2
commit aaa0a7835e
5 changed files with 10 additions and 6 deletions
@@ -15,10 +15,10 @@ protocol KeyNameModel: Sendable {
// MARK: Properties
/// A key value.
/// A key.
var key: String { get }
/// A name value.
/// A name.
var name: String { get }
// MARK: Initializers
+2 -1
View File
@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===
/// A model that represents an amiibo series.
public struct AmiiboSeries: KeyNameModel {
// MARK: Properties
@@ -17,7 +18,7 @@ public struct AmiiboSeries: KeyNameModel {
public let key: String
public let name: String
// MARK: Initialisers
// MARK: Initializers
init(_ payload: Components.Schemas.Tuple) {
self.key = payload.key
+2 -1
View File
@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===
/// A model that represents an amiibo type.
public struct AmiiboType: KeyNameModel {
// MARK: Properties
@@ -17,7 +18,7 @@ public struct AmiiboType: KeyNameModel {
public let key: String
public let name: String
// MARK: Initialisers
// MARK: Initializers
init(_ payload: Components.Schemas.Tuple) {
self.key = payload.key
+2 -1
View File
@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===
/// A model that represents a game character.
public struct GameCharacter: KeyNameModel {
// MARK: Properties
@@ -17,7 +18,7 @@ public struct GameCharacter: KeyNameModel {
public let key: String
public let name: String
// MARK: Initialisers
// MARK: Initializers
init(_ payload: Components.Schemas.Tuple) {
self.key = payload.key
+2 -1
View File
@@ -10,6 +10,7 @@
//
//===----------------------------------------------------------------------===
/// A model that represents a game series.
public struct GameSeries: KeyNameModel {
// MARK: Properties
@@ -17,7 +18,7 @@ public struct GameSeries: KeyNameModel {
public let key: String
public let name: String
// MARK: Initialisers
// MARK: Initializers
init(_ payload: Components.Schemas.Tuple) {
self.key = payload.key