SessionProtocol

public protocol SessionProtocol

intended for classes that can be queried for lists

  • the current API Session

    Declaration

    Swift

    var APISession: Session? { get set }
  • a method to set the API session in a fluent way

    Declaration

    Swift

    func apiSession(session: Session) -> Self

    Parameters

    session

    the session to set

    Return Value

    Self

  • designated initializer

    Declaration

    Swift

    init()

    Return Value

    an instance of the receiving type