Drag[en]gine Script Module DragonScript  1.23
Dragengine.Services.Mods.DefaultServiceModsListener Class Reference

Default implementation of ServiceModsListener. More...

Inheritance diagram for Dragengine.Services.Mods.DefaultServiceModsListener:
Dragengine.Services.Mods.ServiceModsListener Dragengine.Gui.ModManagement.MMImageGalleryPreviewImage.LoadImageListener Dragengine.Gui.ModManagement.MMModificationListRenderer.ModWidget.LoadLogoListener Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener Dragengine.Gui.ModManagement.MMPanelModManagement.SearchModsListener Dragengine.Gui.ModManagement.MMTransferListRenderer.ModWidget.LoadLogoListener

Public Member Functions

DefaultServiceModsListener new ()
 Create new instance of DefaultServiceModsListener. More...
 
void onGetModInfo (ServiceMods service, String modId, ServiceModInfo info, Exception exception)
 Retrieve modification information finished. More...
 
void onGetPurchasedMods (ServiceMods service, Array mods, Exception exception)
 Get purchased mods finished. More...
 
void onGetTags (ServiceMods service, Array categories, Exception exception)
 Retrieve tags finished. More...
 
void onListMods (ServiceMods service, Array mods, Exception exception)
 Listing modifications finished. More...
 
void onLoadModResource (ServiceMods service, String url, Object resource, Exception exception)
 Loading resource finished. More...
 
void onModManagement (ServiceMods service, ServiceMods.ManagementEvent event, String modId, ServiceModProgress progress, Exception exception)
 Mod mamagement event. More...
 
void onPurchaseMod (ServiceMods service, String modId, String price, String walletBalance, Exception exception)
 Purchase mod finished. More...
 
void onReportMod (ServiceMods service, String modId, Exception exception)
 Report modification finished. More...
 
void onRevokeModRating (ServiceMods service, String modId, Exception exception)
 Revoke modification rating finished. More...
 
void onSetModDisabled (ServiceMods service, String modId, bool disabled, Exception exception)
 Set modification disabled finished. More...
 
void onSubmitModRating (ServiceMods service, String modId, Exception exception)
 Submit modification rating finished. More...
 
void onSubscribeMod (ServiceMods service, String modId, Exception exception)
 Subscribe modification finished. More...
 
void onUnsubscribeMod (ServiceMods service, String modId, Exception exception)
 Unsubscribe modification finished. More...
 

Detailed Description

Default implementation of ServiceModsListener.

Version
1.23

Member Function Documentation

◆ new()

DefaultServiceModsListener Dragengine.Services.Mods.DefaultServiceModsListener.new ( )

Create new instance of DefaultServiceModsListener.

◆ onGetModInfo()

void Dragengine.Services.Mods.DefaultServiceModsListener.onGetModInfo ( ServiceMods  service,
String  modId,
ServiceModInfo  info,
Exception  exception 
)

Retrieve modification information finished.

Parameters
serviceService sending the event.
modIdIdentifier of modification.
infoModification info. On failure null.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onGetPurchasedMods()

void Dragengine.Services.Mods.DefaultServiceModsListener.onGetPurchasedMods ( ServiceMods  service,
Array  mods,
Exception  exception 
)

Get purchased mods finished.

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

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onGetTags()

void Dragengine.Services.Mods.DefaultServiceModsListener.onGetTags ( ServiceMods  service,
Array  categories,
Exception  exception 
)

Retrieve tags finished.

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

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener.

◆ onListMods()

void Dragengine.Services.Mods.DefaultServiceModsListener.onListMods ( ServiceMods  service,
Array  mods,
Exception  exception 
)

Listing modifications finished.

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

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.SearchModsListener.

◆ onLoadModResource()

void Dragengine.Services.Mods.DefaultServiceModsListener.onLoadModResource ( ServiceMods  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.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMTransferListRenderer.ModWidget.LoadLogoListener, Dragengine.Gui.ModManagement.MMModificationListRenderer.ModWidget.LoadLogoListener, and Dragengine.Gui.ModManagement.MMImageGalleryPreviewImage.LoadImageListener.

◆ onModManagement()

void Dragengine.Services.Mods.DefaultServiceModsListener.onModManagement ( ServiceMods  service,
ServiceMods.ManagementEvent  event,
String  modId,
ServiceModProgress  progress,
Exception  exception 
)

Mod mamagement event.

Parameters
serviceService sending the event.
eventManagement event.
modIdIdentifier of modification affected by the event.
progressProgress information or null.
exceptionException or null if sueeded.

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onPurchaseMod()

void Dragengine.Services.Mods.DefaultServiceModsListener.onPurchaseMod ( ServiceMods  service,
String  modId,
String  price,
String  walletBalance,
Exception  exception 
)

Purchase mod finished.

Parameters
serviceService sending the event.
modIdIdentifier of modification the user purchased.
pricePrice paid for the modification.
walletBalanceWallet balance after purchase.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onReportMod()

void Dragengine.Services.Mods.DefaultServiceModsListener.onReportMod ( ServiceMods  service,
String  modId,
Exception  exception 
)

Report modification finished.

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

Implements Dragengine.Services.Mods.ServiceModsListener.

◆ onRevokeModRating()

void Dragengine.Services.Mods.DefaultServiceModsListener.onRevokeModRating ( ServiceMods  service,
String  modId,
Exception  exception 
)

Revoke modification rating finished.

Parameters
serviceService sending the event.
modIdIdentifier of modification the rating has been revoked for.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onSetModDisabled()

void Dragengine.Services.Mods.DefaultServiceModsListener.onSetModDisabled ( ServiceMods  service,
String  modId,
bool  disabled,
Exception  exception 
)

Set modification disabled finished.

Parameters
serviceService sending the event.
modIdIdentifier of modification.
disabledDisabled state of modification.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onSubmitModRating()

void Dragengine.Services.Mods.DefaultServiceModsListener.onSubmitModRating ( ServiceMods  service,
String  modId,
Exception  exception 
)

Submit modification rating finished.

Parameters
serviceService sending the event.
modIdIdentifier of modification the rating has been submitted for.
exceptionOn success null. On failure contains error information.

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onSubscribeMod()

void Dragengine.Services.Mods.DefaultServiceModsListener.onSubscribeMod ( ServiceMods  service,
String  modId,
Exception  exception 
)

Subscribe modification finished.

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

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.

◆ onUnsubscribeMod()

void Dragengine.Services.Mods.DefaultServiceModsListener.onUnsubscribeMod ( ServiceMods  service,
String  modId,
Exception  exception 
)

Unsubscribe modification finished.

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

Implements Dragengine.Services.Mods.ServiceModsListener.

Reimplemented in Dragengine.Gui.ModManagement.MMPanelModManagement.ModEventListener, and Dragengine.Gui.ModManagement.MMPanelModInfo.ModEventListener.


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