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.
Afficher le fichier Open project: spilgames/spil_event_unity_plugin

Méthodes publiques

Méthode 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 méthode

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

HasActivePromotion() public méthode

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
Résultat bool

PackageItem() public méthode

public PackageItem ( string id, string type, string originalValue, string promotionValue = null ) : System
id string
type string
originalValue string
promotionValue string
Résultat System