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

Public Member Functions

Dictionary< string, object > Serialize ()
 
PushNotification Deserialize (Dictionary< string, object > data)
 
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< PushNotification >
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 Title [get, set]
 
string Body [get, set]
 
string ImageId [get, set]
 
object FrameworkData [get, set]
 
string FrameworkRawData [get, set]
 

Member Function Documentation

◆ GetDataAsList< T >()

List<T> UserWiseSDK.PushNotifications.PushNotification.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.PushNotifications.PushNotification.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: