C# 클래스 SpilGames.Unity.Helpers.Package

This is the business object that the developer can use to work with Packages and Promotions.
파일 보기 프로젝트 열기: spilgames/spil_event_unity_plugin

공개 프로퍼티들

프로퍼티 타입 설명
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