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

Public Member Functions

GetAdditionalFieldsAsObject< T > (T defaultValue)
 Safely retrieve the AdditionalFields property by deserializing the data through the IDictSerializable interface. More...
 
List< T > GetJsonAsList< T > (List< T > defaultValue)
 Safely retrieve the AdditionalFields property by deserializing the data through the IDictSerializable interface. More...
 
Message Deserialize (Dictionary< string, object > data)
 
Dictionary< string, object > Serialize ()
 
- Public Member Functions inherited from UserWiseSDK.IDictSerializable< Message >
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]
 
string Name [get]
 
string Title [get]
 
string Body [get]
 
string MessageType [get]
 
string PortraitImageId [get]
 
string LandscapeImageId [get]
 
object AdditionalFields [get]
 
string AdditionalFieldsRaw [get]
 
DateTime StartAt [get, set]
 
SchedulableTimezoneType StartAtTz [get, set]
 
DateTime EndAt [get, set]
 
SchedulableTimezoneType EndAtTz [get, set]
 

Member Function Documentation

◆ GetAdditionalFieldsAsObject< T >()

T UserWiseSDK.Messages.Message.GetAdditionalFieldsAsObject< T > ( defaultValue)
inline

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

This should only be called if the AdditionalFields 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() 

◆ GetJsonAsList< T >()

List<T> UserWiseSDK.Messages.Message.GetJsonAsList< T > ( List< T >  defaultValue)
inline

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

This should only be called if the AdditionalFields 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: