AuthenticationResult
public enum AuthenticationResult<ErrorType>
Used to represent whether a request was successful or encountered an error.
-
Authentication succeeded
Declaration
Swift
case success
-
Authentication failed with
ErrorType
Declaration
Swift
case failure(ErrorType)
-
Returns
true
if the result is a success,false
otherwise.Declaration
Swift
public var isSuccess: Bool
-
Returns
true
if the result is a failure,false
otherwise.Declaration
Swift
public var isFailure: Bool
-
Returns the associated value if the result is a failure,
nil
otherwise.Declaration
Swift
public var error: ErrorType?