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.
Mostrar archivo Open project: MarkEaton1/Monodroid-InApp-Billing

Protected Properties

Property Type Description
mRequestId long

Public Methods

Method 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.

Protected Methods

Method 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 method

public BillingRequest ( BillingService outerInstance, int startId ) : System
outerInstance BillingService
startId int
return System

LogResponseCode() protected method

protected LogResponseCode ( string method, Bundle response ) : void
method string
response Bundle
return void

MakeRequestBundle() protected method

protected MakeRequestBundle ( string method ) : Bundle
method string
return Bundle

OnRemoteException() protected method

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
return void

ResponseCodeReceived() protected method

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

Run() protected abstract method

The derived class must implement this method.
protected abstract Run ( ) : long
return long

RunIfConnected() public method

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

RunRequest() public method

Run the request, starting the connection if necessary.
public RunRequest ( ) : bool
return bool

Property Details

mRequestId protected_oe property

protected long mRequestId
return long