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

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

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

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

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

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

Gets the actual value of this item. Checks for any active promotion for this item.
public GetRealValue ( ) : string
Результат string

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

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

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

public PackageItem ( string id, string type, string originalValue, string promotionValue = null ) : System
id string
type string
originalValue string
promotionValue string
Результат System