TokenType

public enum TokenType : Comparable

These are used to define the types of tokens.

  • Unknown. This should be considered an error.

    Declaration

    Swift

    case none
  • This is a standard token. It may actually be a login ID, but that won’t be exposed to non-God admis, most times.

    Declaration

    Swift

    case token(id: Int)
  • This is a login ID. In non-God admins, there will only be one (and it will be ours).

    Declaration

    Swift

    case loginID(id: Int)
  • This is a personal token that was assigned from another login.

    Declaration

    Swift

    case assigned(id: Int)
  • This is a personal ID. If this is the “God” ID, then the ID of the “owner” of the personal token will be associated (Int).

    Declaration

    Swift

    case personal(id: Int, loginID: Int?)
  • This allows us to sort the list.

    Declaration

    Swift

    public static func < (lhs: RVP_Cocoa_SDK.TokenType, rhs: RVP_Cocoa_SDK.TokenType) -> Bool

    Parameters

    lhs

    The left-hand comparable

    rhs

    The right-hand comparable

    Return Value

    True, if lhs < rhs