mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🆙 Init V3
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import { ICalendarItem } from './ICalendarItem';
|
||||
|
||||
export class CalendarItem implements ICalendarItem
|
||||
{
|
||||
private _productName: string;
|
||||
private _customImage: string;
|
||||
private _furnitureClassName: string;
|
||||
|
||||
constructor(productName: string, customImage: string, furnitureClassName: string)
|
||||
{
|
||||
this._productName = productName;
|
||||
this._customImage = customImage;
|
||||
this._furnitureClassName = furnitureClassName;
|
||||
}
|
||||
|
||||
public get productName(): string
|
||||
{
|
||||
return this._productName;
|
||||
}
|
||||
|
||||
public get customImage(): string
|
||||
{
|
||||
return this._customImage;
|
||||
}
|
||||
|
||||
public get furnitureClassName(): string
|
||||
{
|
||||
return this._furnitureClassName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export class CalendarItemState
|
||||
{
|
||||
public static readonly STATE_UNLOCKED = 1;
|
||||
public static readonly STATE_LOCKED_AVAILABLE = 2;
|
||||
public static readonly STATE_LOCKED_EXPIRED = 3;
|
||||
public static readonly STATE_LOCKED_FUTURE = 4;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
export interface ICalendarItem
|
||||
{
|
||||
readonly productName: string;
|
||||
readonly customImage: string;
|
||||
readonly furnitureClassName: string;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
export * from './CalendarItem';
|
||||
export * from './CalendarItemState';
|
||||
export * from './ICalendarItem';
|
||||
Reference in New Issue
Block a user