diff --git a/Sources/App/Cap.swift b/Sources/App/Cap.swift index d126cb2..67006f6 100644 --- a/Sources/App/Cap.swift +++ b/Sources/App/Cap.swift @@ -11,7 +11,9 @@ struct Cap: Codable { var mainImage: Int /// The version of the first classifier trained on this cap - var classifierVersion: Int + var classifierVersion: Int? + + var color: Color? enum CodingKeys: String, CodingKey { case id = "i" @@ -19,6 +21,16 @@ struct Cap: Codable { case count = "c" case mainImage = "m" case classifierVersion = "v" + case color = "f" + } + + struct Color: Codable, Equatable { + + let r: Int + + let g: Int + + let b: Int } }