UNCategory
public struct UNCategory: Decodable
Holds all the information about a category.
-
Unique identifier of the category.
Declaration
Swift
public var id : Int
-
Title of the category.
Declaration
Swift
public var title : String?
-
Number of photos the category has.
Declaration
Swift
public var photoAmount : Int
-
API locations.
Declaration
Swift
public var apiLocations : UNCategoryAPILocations
-
Returns a Boolean value indicating whether the two categories represent the same category.
Discussion: Two categories are considered to be the same if they represent the same category; that is, if they have the same id, regardless if the other variables are different.
Declaration
Swift
public static func ==(lhs: UNCategory, rhs: UNCategory) -> Bool
-
Returns a Boolean value indicating whether two categories don’t represent the same category.
Declaration
Swift
public static func !=(lhs: UNCategory, rhs: UNCategory) -> Bool