BadgeCount
public struct BadgeCount: JsonConvertible, CustomStringConvertible
Represents the numbers of gold, silver and bronze badges a User
has.
Seealso
-
Undocumented
Declaration
Swift
public struct BadgeCount: JsonConvertible, CustomStringConvertible
-
Undocumented
Declaration
Swift
public struct BadgeCount: JsonConvertible, CustomStringConvertible
-
Undocumented
Declaration
Swift
public struct BadgeCount: JsonConvertible, CustomStringConvertible
-
Represents the numbers of gold, silver and bronze badges a
User
has.Seealso
Declaration
Swift
public var dictionary: [String: Any]
-
Represents the numbers of gold, silver and bronze badges a
User
has.Seealso
Declaration
Swift
public var jsonString: String?
-
Represents the numbers of gold, silver and bronze badges a
User
has.Seealso
Declaration
Swift
public var description: String
-
Basic initializer with 0 as default values.
Declaration
Swift
public init()
-
Initializes the struct with the number of badges.
Declaration
Swift
public init(gold: Int, silver: Int, bronze: Int)
-
Initializes the struct from a JSON-string.
Declaration
Swift
public init?(jsonString json: String)
-
Initializes the struct from a
Dictionary<String: Any>
Declaration
Swift
public init(dictionary: [String: Any])