UserWise Unity SDK  3.0.0
Public Member Functions | Properties | List of all members
UserWiseSDK.Events.GameEvent Class Reference
Inheritance diagram for UserWiseSDK.Events.GameEvent:
UserWiseSDK.IDictSerializable< GameEvent > UserWiseSDK.Common.IIdentifiable

Public Member Functions

GetDataAsObject< T > (T defaultValue)
 Safely retrieve the Data property by deserializing the data through the IDictSerializable interface. More...
 
List< T > GetDataAsList< T > (List< T > defaultValue)
 Safely retrieve the Data property by deserializing the data through the IDictSerializable interface. More...
 
- Public Member Functions inherited from UserWiseSDK.IDictSerializable< GameEvent >
Dictionary< string, object > Serialize ()
 Serialize instance into a generic Dictionary{string, object}. More...
 
Deserialize (Dictionary< string, object > data)
 Deserialize generic Dictionary{string, object} into an instance of T. More...
 

Properties

string Id [get, set]
 
string Name [get, set]
 
object Data [get, set]
 
string DataRaw [get, set]
 
string ExternalId [get, set]
 
string ExternalEventType [get, set]
 
DateTime StartAt [get, set]
 
SchedulableTimezoneType StartAtTz [get, set]
 
DateTime EndAt [get, set]
 
SchedulableTimezoneType EndAtTz [get, set]
 

Member Function Documentation

◆ GetDataAsList< T >()

List<T> UserWiseSDK.Events.GameEvent.GetDataAsList< T > ( List< T >  defaultValue)
inline

Safely retrieve the Data property by deserializing the data through the IDictSerializable interface.

This should only be called if the Data you expect is a root-level array.

Template Parameters
TType to convert to
Parameters
defaultValueDefault on failure. If null will default(T)
Returns
Type Constraints
T :IDictSerializable<T> 
T :new() 

◆ GetDataAsObject< T >()

T UserWiseSDK.Events.GameEvent.GetDataAsObject< T > ( defaultValue)
inline

Safely retrieve the Data property by deserializing the data through the IDictSerializable interface.

This should only be called if the Data you expect is a root-level array.

Template Parameters
TType to convert to
Parameters
defaultValueDefault on failure. If null will default(T)
Returns
Type Constraints
T :IDictSerializable<T> 
T :new() 

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