Drag[en]gine Script Module DragonScript  1.23
Dragengine.Services.User.DefaultServiceUserListener Class Reference

Default implementation of ServiceUserListener. More...

Inheritance diagram for Dragengine.Services.User.DefaultServiceUserListener:
Dragengine.Services.User.ServiceUserListener Dragengine.Gui.ModManagement.MMPanelModManagement.UserEventListener Dragengine.Gui.ModManagement.MMPanelModUserAccount.GetAuthTokenLogin Dragengine.Gui.ModManagement.MMPanelModUserAccount.LoadAvatarListener Dragengine.Gui.ModManagement.MMPanelModUserAccount.UserEventListener

Public Member Functions

DefaultServiceUserListener new ()
 Create new instance of DefaultServiceUserListener. More...
 
void onGetAuthToken (ServiceUser service, ServiceUserAuthToken token, Exception exception)
 Receive authentification token finished. More...
 
void onGetUserInfo (ServiceUser service, ServiceUserInfo info, Exception exception)
 User information received. More...
 
void onLoadUserResource (ServiceUser service, String url, Object resource, Exception exception)
 Loading resource finished. More...
 
void onLoginUser (ServiceUser service, Exception exception)
 Logging in user finished. More...
 
void onLogoutUser (ServiceUser service, Exception exception)
 Logging out user finished. More...
 
void onReportUser (ServiceUser service, String userId, Exception exception)
 Report user finished. More...
 
void onUserWalletBalance (ServiceUser service, String amount, Exception exception)
 User wallet balance finished. More...
 

Detailed Description

Default implementation of ServiceUserListener.

Version
1.23

Member Function Documentation

◆ new()

DefaultServiceUserListener Dragengine.Services.User.DefaultServiceUserListener.new ( )

Create new instance of DefaultServiceUserListener.

◆ onGetAuthToken()

void Dragengine.Services.User.DefaultServiceUserListener.onGetAuthToken ( ServiceUser  service,
ServiceUserAuthToken  token,
Exception  exception 
)

Receive authentification token finished.

Parameters
serviceService sending the event.
tokenAuthentification token. On failure null.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModUserAccount.GetAuthTokenLogin.

◆ onGetUserInfo()

void Dragengine.Services.User.DefaultServiceUserListener.onGetUserInfo ( ServiceUser  service,
ServiceUserInfo  info,
Exception  exception 
)

User information received.

If logging in is required and no user is logged in failure is returned.

Parameters
serviceService sending the event.
infoUser information. On failure null.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModUserAccount.UserEventListener.

◆ onLoadUserResource()

void Dragengine.Services.User.DefaultServiceUserListener.onLoadUserResource ( ServiceUser  service,
String  url,
Object  resource,
Exception  exception 
)

Loading resource finished.

Parameters
serviceService sending the event.
urlURL of resource to load.
resourceLoaded resource. On failure null.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModUserAccount.LoadAvatarListener.

◆ onLoginUser()

void Dragengine.Services.User.DefaultServiceUserListener.onLoginUser ( ServiceUser  service,
Exception  exception 
)

Logging in user finished.

Parameters
serviceService sending the event.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModUserAccount.UserEventListener, and Dragengine.Gui.ModManagement.MMPanelModManagement.UserEventListener.

◆ onLogoutUser()

void Dragengine.Services.User.DefaultServiceUserListener.onLogoutUser ( ServiceUser  service,
Exception  exception 
)

Logging out user finished.

Parameters
serviceService sending the event.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModUserAccount.UserEventListener, and Dragengine.Gui.ModManagement.MMPanelModManagement.UserEventListener.

◆ onReportUser()

void Dragengine.Services.User.DefaultServiceUserListener.onReportUser ( ServiceUser  service,
String  userId,
Exception  exception 
)

Report user finished.

Parameters
serviceService sending the event.
userIdIdentifier of user the report has been submitted for.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

◆ onUserWalletBalance()

void Dragengine.Services.User.DefaultServiceUserListener.onUserWalletBalance ( ServiceUser  service,
String  amount,
Exception  exception 
)

User wallet balance finished.

Parameters
serviceService sending the event.
amountAmount in store currency.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.User.ServiceUserListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModUserAccount.UserEventListener.


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