Drag[en]gine Script Module DragonScript 1.23
Loading...
Searching...
No Matches
Dragengine.Services.ServiceEos Class Reference

Service providing access to EOS SDK functionality if supported. More...

Inheritance diagram for Dragengine.Services.ServiceEos:
Dragengine.ServiceListener

Classes

class  InitParameters
 Service initialization parameters. More...
 

Public Member Functions

void addStatListener (ServiceStatsListener listener)
 
void dispose ()
 Dispose of EOS SDK service.
 
void getAuthToken (ServiceUserListener listener)
 
BaseServiceConversions getConversions ()
 Conversion helper.
 
void getStatsAndAchievements (Set stats, Set achievements, ServiceStatsListener listener)
 
ServiceUserFeatures getUserFeatures ()
 
void getUserWalletBalance (ServiceUserListener listener)
 
Boolean isInitialized ()
 Determines if service is initialized and ready to be used.
 
bool isUserLoggedIn ()
 
void loginUser (ServiceUserCredentials credentials, ServiceUserListener listener)
 
void logoutUser (ServiceUserListener listener)
 
ServiceEos new (InitParameters parameters, ServiceInitListener listener)
 Create service ServiceEosSdk.
 
void removeStatsListener (ServiceStatsListener listener)
 
void reportUser (String id, ServiceUserReport report, ServiceUserListener listener)
 
void requestResponse (Service service, UniqueID id, ServiceObject response, bool finished)
 Response received for request.
 
- Public Member Functions inherited from Dragengine.ServiceListener
void eventReceived (Service service, ServiceObject event)
 Service event received for example notifications.
 
void requestFailed (Service service, UniqueID id, ServiceObject error)
 Request failed.
 

Static Public Member Functions

static bool isServiceSupported ()
 Checks if EOS SDK service is supported.
 

Public Attributes

BaseServiceConversions pConversions
 
ServiceInitListener pInitListener
 
InitParameters pInitParameters
 
Boolean pIsInitialized
 
Dictionary pOnceListeners
 
Service pService
 
SafeArray pStatsListeners
 

Static Public Attributes

static final String authProviderId = "epic"
 Authentification provider identifier.
 

Detailed Description

Service providing access to EOS SDK functionality if supported.

Version
1.23

Provides access to these functionalities:

  • Stats/Achievements
  • User

Member Function Documentation

◆ addStatListener()

void Dragengine.Services.ServiceEos.addStatListener ( ServiceStatsListener  listener)

◆ dispose()

void Dragengine.Services.ServiceEos.dispose ( )

Dispose of EOS SDK service.

◆ getAuthToken()

void Dragengine.Services.ServiceEos.getAuthToken ( ServiceUserListener  listener)

◆ getConversions()

BaseServiceConversions Dragengine.Services.ServiceEos.getConversions ( )

Conversion helper.

◆ getStatsAndAchievements()

void Dragengine.Services.ServiceEos.getStatsAndAchievements ( Set  stats,
Set  achievements,
ServiceStatsListener  listener 
)

◆ getUserFeatures()

ServiceUserFeatures Dragengine.Services.ServiceEos.getUserFeatures ( )

◆ getUserWalletBalance()

void Dragengine.Services.ServiceEos.getUserWalletBalance ( ServiceUserListener  listener)

◆ isInitialized()

Boolean Dragengine.Services.ServiceEos.isInitialized ( )

Determines if service is initialized and ready to be used.

If null is returned the service is still initializing. If returned object has true value the service is initialized and ready to be used. If returned object has false value the service failed to initialized and has to be disposed.

◆ isServiceSupported()

static bool Dragengine.Services.ServiceEos.isServiceSupported ( )
static

Checks if EOS SDK service is supported.

Service is reported supported if the EOS SDK Service Module is present.

◆ isUserLoggedIn()

bool Dragengine.Services.ServiceEos.isUserLoggedIn ( )

◆ loginUser()

void Dragengine.Services.ServiceEos.loginUser ( ServiceUserCredentials  credentials,
ServiceUserListener  listener 
)

◆ logoutUser()

void Dragengine.Services.ServiceEos.logoutUser ( ServiceUserListener  listener)

◆ new()

ServiceEos Dragengine.Services.ServiceEos.new ( InitParameters  parameters,
ServiceInitListener  listener 
)

Create service ServiceEosSdk.

The service is asynchronously initialized. Once initialization finished the provided listener is called with success or failure outcome. If the outcome is success the service can be used. If the outcome is failure the service can not be used and should be disposed.

Parameters
parametersInit parameters.
listenerListener called if initialization finished. Can be null.
Exceptions
EInvalidParamEOS SDK service module is not present.
EInvalidActionEOS SDK can not be initialized.

◆ removeStatsListener()

void Dragengine.Services.ServiceEos.removeStatsListener ( ServiceStatsListener  listener)

◆ reportUser()

void Dragengine.Services.ServiceEos.reportUser ( String  id,
ServiceUserReport  report,
ServiceUserListener  listener 
)

◆ requestResponse()

void Dragengine.Services.ServiceEos.requestResponse ( Service  service,
UniqueID  id,
ServiceObject  response,
bool  finished 
)

Response received for request.

Parameters
serviceService receiving the response.
idIdentifier of request this response belongs to.
responseResponse data.
finishedTrue if the request finished or false if more responses will be received.

Implements Dragengine.ServiceListener.

Member Data Documentation

◆ authProviderId

final String Dragengine.Services.ServiceEos.authProviderId = "epic"
static

Authentification provider identifier.

◆ pConversions

BaseServiceConversions Dragengine.Services.ServiceEos.pConversions

◆ pInitListener

ServiceInitListener Dragengine.Services.ServiceEos.pInitListener

◆ pInitParameters

InitParameters Dragengine.Services.ServiceEos.pInitParameters

◆ pIsInitialized

Boolean Dragengine.Services.ServiceEos.pIsInitialized

◆ pOnceListeners

Dictionary Dragengine.Services.ServiceEos.pOnceListeners

◆ pService

Service Dragengine.Services.ServiceEos.pService

◆ pStatsListeners

SafeArray Dragengine.Services.ServiceEos.pStatsListeners

The documentation for this class was generated from the following file: