C# Class SpilGames.Unity.Helpers.Package

This is the business object that the developer can use to work with Packages and Promotions.
Afficher le fichier Open project: spilgames/spil_event_unity_plugin

Méthodes publiques

Свойство Type Description
Items List

Méthodes publiques

Méthode Description
GetItemById ( string itemId ) : PackageItem
GetRealDiscountLabel ( ) : string

Gets the actual discount label for this package. Checks for any active promotion for this package.

HasActivePromotion ( ) : bool

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

Package ( string id, string originalDiscountLabel, List packageItems, List promotionItems = null, string promotionDiscountLabel = null, string promotionBeginDate = null, string promotionEndDate = null ) : System

Method Details

GetItemById() public méthode

public GetItemById ( string itemId ) : PackageItem
itemId string
Résultat PackageItem

GetRealDiscountLabel() public méthode

Gets the actual discount label for this package. Checks for any active promotion for this package.
public GetRealDiscountLabel ( ) : string
Résultat string

HasActivePromotion() public méthode

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

Package() public méthode

public Package ( string id, string originalDiscountLabel, List packageItems, List promotionItems = null, string promotionDiscountLabel = null, string promotionBeginDate = null, string promotionEndDate = null ) : System
id string
originalDiscountLabel string
packageItems List
promotionItems List
promotionDiscountLabel string
promotionBeginDate string
promotionEndDate string
Résultat System

Property Details

Items public_oe property

public List Items
Résultat List