Conforms to NSObject
Declared in SPVirtualCurrencyServerConnector.h

Overview

Defines selectors that a delegate of SPVirtualCurrencyServerConnector can implement for being notified of answers to requests and triggered errors.

Tasks

Instance Methods

virtualCurrencyConnector:didReceiveDeltaOfCoinsResponse:latestTransactionId:

Sent when SPVirtualCurrencyServerConnector receives an answer from the server for the amount of coins newly earned by the user.

- (void)virtualCurrencyConnector:(SPVirtualCurrencyServerConnector *)connector didReceiveDeltaOfCoinsResponse:(double)deltaOfCoins latestTransactionId:(NSString *)transactionId

Parameters

connector

SPVirtualCurrencyServerConnector instance of SPVirtualCurrencyServerConnector that sent this message.

deltaOfCoins

Amount of coins earned by the user.

transactionId

Transaction ID of the last known operation involving your virtual currency for this user.

Declared In

SPVirtualCurrencyServerConnector.h

virtualCurrencyConnector:failedWithError:errorCode:errorMessage:

Sent when SPVirtualCurrencyServerConnector detects an error condition.

- (void)virtualCurrencyConnector:(SPVirtualCurrencyServerConnector *)connector failedWithError:(SPVirtualCurrencyRequestErrorType)error errorCode:(NSString *)errorCode errorMessage:(NSString *)errorMessage

Parameters

connector

SPVirtualCurrencyServerConnector instance of SPVirtualCurrencyServerConnector that sent this message.

error

Type of the triggered error. @see SPVirtualCurrencyRequestErrorType

errorCode

if this is an error received from the back-end, error code as reported by the server.

errorMessage

if this is an error received from the back-end, error message as reported by the server.

Declared In

SPVirtualCurrencyServerConnector.h