C# Класс 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.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
mRequestId long

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

BillingRequest() публичный Метод

public BillingRequest ( BillingService outerInstance, int startId ) : System
outerInstance BillingService
startId int
Результат System

LogResponseCode() защищенный Метод

protected LogResponseCode ( string method, Bundle response ) : void
method string
response Bundle
Результат void

MakeRequestBundle() защищенный Метод

protected MakeRequestBundle ( string method ) : Bundle
method string
Результат Bundle

OnRemoteException() защищенный Метод

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
Результат void

ResponseCodeReceived() защищенный Метод

This is called when Android Market sends a response code for this request.
protected ResponseCodeReceived ( Consts responseCode ) : void
responseCode Consts the response code
Результат void

Run() защищенный абстрактный Метод

The derived class must implement this method.
protected abstract Run ( ) : long
Результат long

RunIfConnected() публичный Метод

Try running the request directly if the service is already connected.
public RunIfConnected ( ) : bool
Результат bool

RunRequest() публичный Метод

Run the request, starting the connection if necessary.
public RunRequest ( ) : bool
Результат bool

Описание свойств

mRequestId защищенное свойство

protected long mRequestId
Результат long