UserWise Unity SDK  3.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Events | List of all members
UserWiseSDK.Common.Modules.BaseModule< T > Class Template Reference
Inheritance diagram for UserWiseSDK.Common.Modules.BaseModule< T >:
UserWiseSDK.Common.Modules.IModule

Public Member Functions

string GetModuleName ()
 Returns the module name. More...
 
Get (string id)
 
FindInActiveOrUpcoming (Predicate< T > predicate)
 

Protected Member Functions

void EmitOnLoadFailed (object sender)
 
void EmitOnLoaded (object sender, OnLoadedEventArgs e)
 
void ResetModuleData ()
 
void LoadFromCache (ModuleCacheFile moduleCacheFile)
 
void WriteToCache (ModuleCacheFile moduleCacheFile)
 

Protected Attributes

UserWise userWise
 

Properties

List< T > Active = new List<T>() [get, protected set]
 A List of active (available) module stored items. More...
 
List< T > Upcoming = new List<T>() [get, protected set]
 A List of upcoming (soon to be available) module stored items. More...
 

Events

EventHandler< EventArgs > OnLoadFailed
 Emitted when the data for this module could not be loaded from the API and/or cache. More...
 
EventHandler< OnLoadedEventArgsOnLoaded
 Emitted when the data for this module has been reloaded. Currently, either from the API, or through the cached data. More...
 
EventHandler< OnActiveEventArgs< T > > OnActive
 Emitted when a type of T has been marked as active. More...
 
EventHandler< OnInactiveEventArgs< T > > OnInactive
 Emitted when a type of T has been marked as inactive. More...
 
- Events inherited from UserWiseSDK.Common.Modules.IModule
EventHandler< OnLoadedEventArgsOnLoaded
 

Member Function Documentation

◆ GetModuleName()

string UserWiseSDK.Common.Modules.BaseModule< T >.GetModuleName ( )

Returns the module name.

Implements UserWiseSDK.Common.Modules.IModule.

Property Documentation

◆ Active

List<T> UserWiseSDK.Common.Modules.BaseModule< T >.Active = new List<T>()
getprotected set

A List of active (available) module stored items.

◆ Upcoming

List<T> UserWiseSDK.Common.Modules.BaseModule< T >.Upcoming = new List<T>()
getprotected set

A List of upcoming (soon to be available) module stored items.

Upcoming are not guaranteed to become available during a given play session.

Event Documentation

◆ OnActive

Emitted when a type of T has been marked as active.

◆ OnInactive

Emitted when a type of T has been marked as inactive.

◆ OnLoaded

Emitted when the data for this module has been reloaded. Currently, either from the API, or through the cached data.

◆ OnLoadFailed

EventHandler<EventArgs> UserWiseSDK.Common.Modules.BaseModule< T >.OnLoadFailed

Emitted when the data for this module could not be loaded from the API and/or cache.


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