Category

public class Category : Deserializable

A Category is a collection of similar Locations, which may have parent or child categories. For example, you may have a Fashion category, which has a Men’s Fashion and Women’s Fashion category. A Men’s clothing store would belong to the Men’s Fashion category, but not necessarily be present in the Fashion category’s list of Locations.

  • Name of the category

    Declaration

    Swift

    public let name: String
  • Sort order for the category, if specified.

    Declaration

    Swift

    public let sortOrder: Int16
  • Color associated with the category, if specified.

    Declaration

    Swift

    public let color: UIColor
  • Icon associated with the category, if provided.

    Declaration

    Swift

    public var icon: ImageSet?
  • Image associated with the categorie, if provided.

    Declaration

    Swift

    public var picture: ImageSet?
  • The parent venue that Category is a child of.

    Declaration

    Swift

    public weak var venue: Venue? { get set }
  • A collection of all locations at this venue that belongs to this category (but not necessarily those of child categories)

    Declaration

    Swift

    public var locations: [Location] { get }
  • Any parent categories (Men’s Washroom might have a parent Washroom category)

    Declaration

    Swift

    public var parents: [Category] { get }
  • Any children categories (Washroom might have Women’s Washroom and a Men’s Washroom children)

    Declaration

    Swift

    public var children: [Category] { get }