KKAPIResult

public enum KKAPIResult<T>

The response of API calls

  • error: the API returns an error with an error object.
  • success: the API is successfully called and return an object.
  • The API is successfully called and return an object.

    Declaration

    Swift

    case success(T)
  • the API returns an error with an error object.

    Declaration

    Swift

    case error(Error)