C# Class SpilGames.Unity.Helpers.Package

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

Public Properties

Property Type Description
Items List

Public Methods

Method 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 method

public GetItemById ( string itemId ) : PackageItem
itemId string
return PackageItem

GetRealDiscountLabel() public method

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

HasActivePromotion() public method

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
return bool

Package() public method

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
return System

Property Details

Items public_oe property

public List Items
return List