UserServiceItemStorage

@objc public class UserServiceItemStorage: NSObject, IUserServiceItem, Gloss.Decodable

A Storage item type.

  • Declaration

    Swift

    public private(set) var title: String = ""
  • Declaration

    Swift

    public private(set) var initValue: [String: Any] = [:]
  • Declaration

    Swift

    public private(set) var gameConfig: [String: Any] = [:]
  • The current value of the item.

    Declaration

    Swift

    public var value: [String: Any] = [:]
  • Constructor with an init value.

    Declaration

    Swift

    public init(value: [String: Any])

    Parameters

    value

    The value to set the item to.

  • Constructor, copy properties from the provided storage item.

    Declaration

    Swift

    public init(data: UserServiceItemStorage, initialize: Bool = false)

    Parameters

    data

    The UserServiceItemStorage to copy from.

    initialize

    If true will initialize to the init value.

  • Constructor, copy from JSON formated data. Does not initialize the value.

    Declaration

    Swift

    required public init(json: JSON)

    Parameters

    json

    JSON data to copy from.

  • Declaration

    Swift

    public func setToInitValue() -> Void
  • Declaration

    Swift

    public func valueToString() -> String
  • A textual description of the Item.

    Declaration

    Swift

    public override var description: String