C# Class Billing.BillingService.BillingRequest

The base class for all requests that use the MarketBillingService. Each derived class overrides the run() method to call the appropriate service interface. If we are already connected to the MarketBillingService, then we call the run() method directly. Otherwise, we bind to the service and save the request on a queue to be run later when the service is connected.
Afficher le fichier Open project: MarkEaton1/Monodroid-InApp-Billing

Protected Properties

Свойство Type Description
mRequestId long

Méthodes publiques

Méthode Description
BillingRequest ( BillingService outerInstance, int startId ) : System
RunIfConnected ( ) : bool

Try running the request directly if the service is already connected.

RunRequest ( ) : bool

Run the request, starting the connection if necessary.

Méthodes protégées

Méthode Description
LogResponseCode ( string method, Bundle response ) : void
MakeRequestBundle ( string method ) : Bundle
OnRemoteException ( RemoteException e ) : void

Called when a remote exception occurs while trying to execute the #run() method. The derived class can override this to execute exception-handling code.

ResponseCodeReceived ( Consts responseCode ) : void

This is called when Android Market sends a response code for this request.

Run ( ) : long

The derived class must implement this method.

Method Details

BillingRequest() public méthode

public BillingRequest ( BillingService outerInstance, int startId ) : System
outerInstance BillingService
startId int
Résultat System

LogResponseCode() protected méthode

protected LogResponseCode ( string method, Bundle response ) : void
method string
response Bundle
Résultat void

MakeRequestBundle() protected méthode

protected MakeRequestBundle ( string method ) : Bundle
method string
Résultat Bundle

OnRemoteException() protected méthode

Called when a remote exception occurs while trying to execute the #run() method. The derived class can override this to execute exception-handling code.
protected OnRemoteException ( RemoteException e ) : void
e RemoteException the exception
Résultat void

ResponseCodeReceived() protected méthode

This is called when Android Market sends a response code for this request.
protected ResponseCodeReceived ( Consts responseCode ) : void
responseCode Consts the response code
Résultat void

Run() protected abstract méthode

The derived class must implement this method.
protected abstract Run ( ) : long
Résultat long

RunIfConnected() public méthode

Try running the request directly if the service is already connected.
public RunIfConnected ( ) : bool
Résultat bool

RunRequest() public méthode

Run the request, starting the connection if necessary.
public RunRequest ( ) : bool
Résultat bool

Property Details

mRequestId protected_oe property

protected long mRequestId
Résultat long