com.betfair.games
Interface ApiApplication


public interface ApiApplication

The interface must be implemented to any application that is going to utilize the ApiAdapter. The reason is that the ApiAdapter forces the application to provide user and application data.

Version:
1.0.1
Author:
M Larsson

Nested Class Summary
static class ApiApplication.MetaData
          The different types of application meta data the ApiAdapter requires.
 
Method Summary
 java.lang.String getApiPassword()
          Returns the password used when authorizing access to the API service.
 java.lang.String getApiUrl()
          Returns the base url, which is the url that returns xml defining a list of services provided by the API used by this application.
 java.lang.String getApiUsername()
          Returns the user name used when authorizing access to the API service.
 java.lang.String getMetaData(ApiApplication.MetaData i)
          Returns meta data about the application as specified by the meta data index.
 

Method Detail

getApiUrl

java.lang.String getApiUrl()
Returns the base url, which is the url that returns xml defining a list of services provided by the API used by this application.

Returns:
the base url for the API

getApiUsername

java.lang.String getApiUsername()
Returns the user name used when authorizing access to the API service. The ApiAdapter does not support anonymous requests. NOTE: It is a condition of the use of the Games API that application accessing it shall not store username and password details on static media. The user of the application must enter the user name and password manually each time he or she runs the application.

Returns:
a Betfair user name

getApiPassword

java.lang.String getApiPassword()
Returns the password used when authorizing access to the API service. The ApiAdapter does not support anonymous requests. NOTE: It is a condition of the use of the Games API that application accessing it shall not store username and password details on static media. The user of the application must enter the user name and password manually each time he or she runs the application.

Returns:
a Betfair password

getMetaData

java.lang.String getMetaData(ApiApplication.MetaData i)
Returns meta data about the application as specified by the meta data index.

Parameters:
i - index of the string of meta data
Returns:
meta data about the application