OAuthResult
public final class OAuthResult : NSObject, ResultProtocol
Holds the result of the authentication request.
-
Construct an instance containing the exception.
Declaration
Swift
public init(error: Error)
-
Parses the object into an
OAuthResult
.Throws
IBMMobileKitError.serverError, IBMMobileKitError.invalidDataFromServerDeclaration
Swift
open static func parse(_ data: [String:Any]) throws -> OAuthResult
-
Serialize the object to a JSON string.
Declaration
Swift
public func serializeToJson() -> String
-
Serialize the object to an
OAuthToken
. The function returnsnil
is an error is present.Declaration
Swift
public func serializeToToken() -> OAuthToken?