/ fm / liveswitch / RemoteMediaCollection
Class: RemoteMediaCollection
fm.liveswitch.RemoteMediaCollection
A collection of remote medias.
Hierarchy
Collection<RemoteMedia, RemoteMediaCollection>
↳ RemoteMediaCollection
Table of contents
Constructors
Methods
- add
- addMany
- addSuccess
- addSuccessNoLock
- any
- arrayFromList
- contains
- createCollection
- first
- firstOrDefault
- forEach
- getById
- getCount
- getTypeString
- getValue
- getValues
- last
- lastOrDefault
- remove
- removeAll
- removeFirst
- removeLast
- removeMany
- removeSuccess
- removeSuccessNoLock
- replace
- setValue
- setValues
- single
- singleOrDefault
- toArray
- valueAt
- valueAtOrDefault
- where
Constructors
constructor
+ new RemoteMediaCollection(): RemoteMediaCollection
Returns: RemoteMediaCollection
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:16
Methods
add
▸ add(value
: RemoteMedia): boolean
Adds a value.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: boolean
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:44
addMany
▸ addMany(values
: RemoteMedia[]): void
Adds some values.
Parameters:
Name | Type | Description |
---|---|---|
values |
RemoteMedia[] | The values. |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:69
addSuccess
▸ Protected
addSuccess(value
: RemoteMedia): void
Invoked when an element is added to the collection.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: void
Overrides: Collection
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:37
addSuccessNoLock
▸ Protected
addSuccessNoLock(value
: RemoteMedia): void
Invoked after an element is added to the collection.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:107
any
▸ any(): boolean
Determined whether the collection contains at least one value.
Returns: boolean
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:118
▸ any(predicate
: IFunction1<RemoteMedia, boolean>): boolean
Determined whether the collection contains at least one value that matches the specified predicate.
Parameters:
Name | Type | Description |
---|---|---|
predicate |
IFunction1<RemoteMedia, boolean> | The predicate. |
Returns: boolean
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:126
arrayFromList
▸ Protected
arrayFromList(list
: RemoteMedia[]): RemoteMedia[]
Creates an array from a list.
Parameters:
Name | Type | Description |
---|---|---|
list |
RemoteMedia[] | The list. |
Returns: RemoteMedia[]
Overrides: Collection
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:51
contains
▸ contains(value
: RemoteMedia): boolean
Determines whether the collection contains a value.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: boolean
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:155
createCollection
▸ Protected
createCollection(): RemoteMediaCollection
Creates a collection.
Returns: RemoteMediaCollection
Overrides: Collection
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:63
first
▸ first(): RemoteMedia
Gets the first value. Throws an exception if there are no values in the collection.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:178
▸ first(predicate
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Gets the first value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters:
Name | Type | Description |
---|---|---|
predicate |
IFunction1<RemoteMedia, boolean> | The predicate. |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:188
firstOrDefault
▸ firstOrDefault(): RemoteMedia
Gets the first value. Returns a default value if there are no values in the collection.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:214
▸ firstOrDefault(predicate
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Gets the first value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters:
Name | Type | Description |
---|---|---|
predicate |
IFunction1<RemoteMedia, boolean> | The predicate. |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:224
forEach
▸ forEach(callback
: IAction2<RemoteMedia, number>): void
Executes a callback function once per value.
Parameters:
Name | Type | Description |
---|---|---|
callback |
IAction2<RemoteMedia, number> | The callback to execute. |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:247
getById
▸ getById(idValue
: string): RemoteMedia
Gets a media by ID.
Parameters:
Name | Type | Description |
---|---|---|
idValue |
string | The identifier. |
Returns: RemoteMedia
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:76
getCount
▸ getCount(): number
Gets the count.
Returns: number
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:262
getTypeString
▸ getTypeString(): string
Returns: string
Overrides: Collection
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:10
getValue
▸ getValue(): RemoteMedia
Gets the value.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:274
getValues
▸ getValues(): RemoteMedia[]
Gets the values.
Returns: RemoteMedia[]
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:289
last
▸ last(): RemoteMedia
Gets the last value. Throws an exception if there are no values in the collection.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:303
▸ last(predicate
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Gets the last value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters:
Name | Type | Description |
---|---|---|
predicate |
IFunction1<RemoteMedia, boolean> | The predicate. |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:313
lastOrDefault
▸ lastOrDefault(): RemoteMedia
Gets the last value. Returns a default value if there are no values in the collection.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:339
▸ lastOrDefault(predicate
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Gets the last value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters:
Name | Type | Description |
---|---|---|
predicate |
IFunction1<RemoteMedia, boolean> | The predicate. |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:349
remove
▸ remove(value
: RemoteMedia): boolean
Removes a value.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: boolean
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:372
removeAll
▸ removeAll(): void
Removes all values.
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:395
removeFirst
▸ removeFirst(): RemoteMedia
Removes the first value.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:416
▸ removeFirst(condition
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Removes the first value that matches a given condition.
Parameters:
Name | Type |
---|---|
condition |
IFunction1<RemoteMedia, boolean> |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:422
removeLast
▸ removeLast(): RemoteMedia
Removes the last value.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:449
▸ removeLast(condition
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Removes the last value that matches a given condition.
Parameters:
Name | Type |
---|---|
condition |
IFunction1<RemoteMedia, boolean> |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:455
removeMany
▸ removeMany(values
: RemoteMedia[]): void
Removes some values.
Parameters:
Name | Type | Description |
---|---|---|
values |
RemoteMedia[] | The values. |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:483
removeSuccess
▸ Protected
removeSuccess(value
: RemoteMedia): void
Invoked when an element is removed from the collection.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: void
Overrides: Collection
Defined in: Generated/TypeScript/fm.liveswitch/RemoteMediaCollection.ts:96
removeSuccessNoLock
▸ Protected
removeSuccessNoLock(value
: RemoteMedia): void
Invoked after an element is removed from the collection.
Parameters:
Name | Type | Description |
---|---|---|
value |
RemoteMedia | The value. |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:520
replace
▸ replace(values
: RemoteMedia[]): void
Replaces the collection with a new set of values.
Parameters:
Name | Type | Description |
---|---|---|
values |
RemoteMedia[] | The values. |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:532
setValue
▸ setValue(value
: RemoteMedia): void
Sets the value.
Parameters:
Name | Type |
---|---|
value |
RemoteMedia |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:548
setValues
▸ setValues(value
: RemoteMedia[]): void
Sets the values.
Parameters:
Name | Type |
---|---|
value |
RemoteMedia[] |
Returns: void
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:564
single
▸ single(): RemoteMedia
Gets the only value. Throws an exception if there are no values or more than one value in the collection.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:583
▸ single(predicate
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Gets the only value that matches the specified predicate. Throws an exception if there are no values or more than one value in the collection.
Parameters:
Name | Type |
---|---|
predicate |
IFunction1<RemoteMedia, boolean> |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:593
singleOrDefault
▸ singleOrDefault(): RemoteMedia
Gets the only value. Returns a default value if there are no values or more than one value in the collection.
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:620
▸ singleOrDefault(predicate
: IFunction1<RemoteMedia, boolean>): RemoteMedia
Gets the only value that matches the specified predicate. Returns a default value if there are no values or more than one value in the collection.
Parameters:
Name | Type |
---|---|
predicate |
IFunction1<RemoteMedia, boolean> |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:630
toArray
▸ toArray(): RemoteMedia[]
Clones the values into a new array.
Returns: RemoteMedia[]
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:658
valueAt
▸ valueAt(index
: number): RemoteMedia
Gets the value at the specified index. Throws an exception if a value does not exist at that index.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index. |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:673
valueAtOrDefault
▸ valueAtOrDefault(index
: number): RemoteMedia
Gets the value at the specified index. Returns a default value if a value does not exist at that index.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | The index. |
Returns: RemoteMedia
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:693
where
▸ where(predicate
: IFunction2<RemoteMedia, number, boolean>): RemoteMediaCollection
Creates a new collection with values that match the specified predicate.
Parameters:
Name | Type | Description |
---|---|---|
predicate |
IFunction2<RemoteMedia, number, boolean> | The predicate. |
Returns: RemoteMediaCollection
Inherited from: Collection
Defined in: Generated/TypeScript/fm.liveswitch/Collection.ts:715