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

Public Member Functions

Dictionary< string, object > Serialize ()
 
Offer Deserialize (Dictionary< string, object > data)
 
GetFrameworkDataAsObject< T > (T defaultValue)
 Safely retrieve the FrameworkData property by deserializing the data through the IDictSerializable interface. More...
 
List< T > GetFrameworkDataAsList< T > (List< T > defaultValue)
 Safely retrieve the FrameworkData property by deserializing the data through the IDictSerializable interface. More...
 
- Public Member Functions inherited from UserWiseSDK.IDictSerializable< Offer >
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]
 
string Title [get, set]
 
string Body [get, set]
 
string PortraitImageId [get, set]
 
string LandscapeImageId [get, set]
 
OfferPaymentData PaymentData [get, set]
 
Dictionary< string, long > Currencies [get, set]
 
Dictionary< string, long > Items [get, set]
 
DateTime StartAt [get, set]
 
SchedulableTimezoneType StartAtTz [get, set]
 
DateTime EndAt [get, set]
 
SchedulableTimezoneType EndAtTz [get, set]
 
string FrameworkId [get, set]
 
object FrameworkData [get, set]
 
string FrameworkDataRaw [get, set]
 
string OfferType [get, set]
 

Member Function Documentation

◆ GetFrameworkDataAsList< T >()

List<T> UserWiseSDK.Offers.Offer.GetFrameworkDataAsList< T > ( List< T >  defaultValue)
inline

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

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

◆ GetFrameworkDataAsObject< T >()

T UserWiseSDK.Offers.Offer.GetFrameworkDataAsObject< T > ( defaultValue)
inline

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

This should only be called if the FrameworkData you expect is a root-level object.

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: