C# Class SpilGames.Unity.Helpers.PackageItem

This is the business object that the developer can use to work with Items associated with Packages and Promotions.
Datei anzeigen Open project: spilgames/spil_event_unity_plugin

Public Methods

Method Description
GetRealValue ( ) : string

Gets the actual value of this item. Checks for any active promotion for this item.

HasActivePromotion ( ) : bool

Checks for any active promotion for this item, also checks if the current date is between the promotion's begin and end date.

PackageItem ( string id, string type, string originalValue, string promotionValue = null ) : System

Method Details

GetRealValue() public method

Gets the actual value of this item. Checks for any active promotion for this item.
public GetRealValue ( ) : string
return string

HasActivePromotion() public method

Checks for any active promotion for this item, also checks if the current date is between the promotion's begin and end date.
public HasActivePromotion ( ) : bool
return bool

PackageItem() public method

public PackageItem ( string id, string type, string originalValue, string promotionValue = null ) : System
id string
type string
originalValue string
promotionValue string
return System