Skip to main content

WaitingValidationListeners.NoneMatchingListener Class

Public Member Functions

void OnValidateSuccess (string jsonSuccessResult)
 This is invoked asynchronously when the promo code has been validated and a JSON payload is available. More...
 
void OnValidateFailure (string jsonErrorResult)
 This is invoked asynchronously if the promo code is invalid or a network error occurred. More...
 
void OnValidateSuccess (string jsonSuccessResult)
 This is invoked asynchronously when the promo code has been validated and a JSON payload is available. More...
 
void OnValidateFailure (string jsonErrorResult)
 This is invoked asynchronously if the promo code is invalid or a network error occurred. More...
 

Member Function Documentation

◆ OnValidateFailure()

void BFGSDK.WaitingValidationListeners.NoneMatchingListener.OnValidateFailure (string jsonErrorResult)
inline
This is invoked asynchronously if the promo code is invalid or a network error occurred.
Parameters
jsonErrorResultJSON representing what kind of error occurred. It will be in the format
{"errorCode": "abbreviated", "errorMessage": "Description here"}
Implements BFGSDK.IPromoCodeListener.

◆ OnValidateSuccess()

void BFGSDK.WaitingValidationListeners.NoneMatchingListener.OnValidateSuccess (string jsonSuccessResult)
inline
This is invoked asynchronously when the promo code has been validated and a JSON payload is available.
Parameters
jsonSuccessResultThe JSON payload from the service that the game should know how to parse since it was made by one of the game's producers.
Implements BFGSDK.IPromoCodeListener.