/ fm / liveswitch / EventBatch
Class: EventBatch
fm.liveswitch.EventBatch
An event batch.
Table of contents
Constructors
Methods
Constructors
constructor
+ new EventBatch(): EventBatch
Returns: EventBatch
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:13
Methods
deserializeProperty
▸ Protected
deserializeProperty(key
: string, valueJson
: string): void
Deserializes the property.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key. |
valueJson |
string | The value in JSON format. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:63
getEvents
▸ getEvents(): EventInfo[]
Gets the events.
Returns: EventInfo[]
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:78
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:9
serializeProperties
▸ Protected
serializeProperties(jsonObject
: Hash<string, string>): void
Serializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
jsonObject |
Hash<string, string> | The JSON object. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:91
setEvents
▸ setEvents(value
: EventInfo[]): void
Sets the events.
Parameters:
Name | Type |
---|---|
value |
EventInfo[] |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:105
toJson
▸ toJson(): string
Serializes this instance to JSON.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:117
fromJson
▸ Static
fromJson(instanceJson
: string): EventBatch
Deserializes an instance from JSON.
Parameters:
Name | Type |
---|---|
instanceJson |
string |
Returns: EventBatch
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:31
toJson
▸ Static
toJson(instance
: EventBatch): string
Serializes an instance to JSON.
Parameters:
Name | Type |
---|---|
instance |
EventBatch |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/EventBatch.ts:47