VarioqubConfigValue

public struct VarioqubConfigValue : Equatable, CustomStringConvertible
extension VarioqubConfigValue: StringValueConvertible, DoubleValueConvertible, BoolValueConvertible, Int64ValueConvertible, IntValueConvertible

A struct that defines a configuration value with different sources, such as default, in-app default, or server.

  • An enum that defines the value source.

    See more

    Declaration

    Swift

    public enum Source
  • The source of this value.

    Declaration

    Swift

    public var source: Source
  • The raw value.

    Declaration

    Swift

    public var value: VarioqubValue?
  • TestID value Varioqub adds to the triggered test ID set.

    Declaration

    Swift

    public var triggeredTestID: VarioqubTestID?
  • Initialize value.

    Declaration

    Swift

    public init(source: Source, value: VarioqubValue?, triggeredTestID: VarioqubTestID?)

    Parameters

    source

    The source of the value.

    value

    The raw value.

    triggeredTestID

    The triggered test ID value.

  • Declaration

    Swift

    public var description: String { get }
  • Returns true if the source is defaultValue.

    Declaration

    Swift

    var isDefault: Bool { get }
  • Returns true if the source is inappDefault.

    Declaration

    Swift

    var isUserDefaults: Bool { get }
  • Returns true if the source is server.

    Declaration

    Swift

    var isServer: Bool { get }
  • Returns String or nil if conversion isn’t possible.

    Declaration

    Swift

    public var stringValue: String? { get }
  • Returns String or empty string if conversion isn’t possible.

    Declaration

    Swift

    public var stringValueOrDefault: String { get }
  • Returns Double value or nil if conversion isn’t possible.

    Declaration

    Swift

    public var doubleValue: Double? { get }
  • Returns Double value or 0.0 if conversion isn’t possible.

    Declaration

    Swift

    public var doubleValueOrDefault: Double { get }
  • Returns Bool value or nil if conversion isn’t possible.

    Declaration

    Swift

    public var boolValue: Bool? { get }
  • Returns Bool value or false if conversion isn’t possible.

    Declaration

    Swift

    public var boolValueOrDefault: Bool { get }
  • Returns Int value or nil if conversion isn’t possible.

    Declaration

    Swift

    public var intValue: Int? { get }
  • Returns Int value or 0 if conversion isn’t possible.

    Declaration

    Swift

    public var intValueOrDefault: Int { get }
  • Returns Int64 value or nil if conversion isn’t possible.

    Declaration

    Swift

    public var int64Value: Int64? { get }
  • Returns Int64 value or 0 if conversion isn’t possible.

    Declaration

    Swift

    public var int64ValueOrDefault: Int64 { get }