Calendar events module.

Methods

getEvent (id:Int):_CalendarEventCore

Returns calendar event by its numeric ID.

Parameters:

id

Calendar event ID.

Returns:

Calendar event.

getEventStage (event:_CalendarEventCore):Int

Returns current event stage number.

Parameters:

event

Calendar event.

Returns:

Calendar event stage number.

inline getEventStageParams (event:_CalendarEventCore, ?stageID:Int):Dynamic

Returns parameters for event stage.

Parameters:

event

Calendar event.

stageID

Event stage ID. If it is null, returns parameters for current event stage.

Returns:

Calendar event stage parameters object.

inline getEvents (type:String):List<_CalendarEventCore>

Returns all events with this type.

Parameters:

type

Calendar event type.

Returns:

List of calendar events.

isActive (event:_CalendarEventCore, networkType:String, platform:String, lang:String):Bool

Returns true, if this calendar event is currently active for this SNS type, platform and user language.

Parameters:

event

Calendar event.

networkType

SNS type.

platform

Platform. If this is an empty string, skips platform check.

lang

User language.

Returns:

True, if calendar event is active. False otherwise.

isActiveSimple (event:_CalendarEventCore):Bool

Returns true, if this calendar event is currently active. No checks for SNS types or languages are made.

Parameters:

event

Calendar event.

Returns:

True, if calendar event is active. False otherwise.

iterator ():ListIterator<_CalendarEventCore>

Returns calendar events iterator.

Returns:

Calendar events iterator.