C# Класс SpilGames.Unity.Helpers.Package

This is the business object that the developer can use to work with Packages and Promotions.
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
Items List

Открытые методы

Метод Описание
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

Описание методов

GetItemById() публичный Метод

public GetItemById ( string itemId ) : PackageItem
itemId string
Результат PackageItem

GetRealDiscountLabel() публичный Метод

Gets the actual discount label for this package. Checks for any active promotion for this package.
public GetRealDiscountLabel ( ) : string
Результат string

HasActivePromotion() публичный Метод

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
Результат bool

Package() публичный Метод

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
Результат System

Описание свойств

Items публичное свойство

public List Items
Результат List