Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConnectionCollection

internal

Hierarchy

  • ConnectionCollection
    • ConnectionCollection

Index

Constructors

constructor

Properties

Private __lookupByRemoteUserId

__lookupByRemoteUserId: Hash<string, Connection>
internal

Private __lookupByRemoteUserIdLock

__lookupByRemoteUserIdLock: Object
internal

Private __onLocalCandidate

__onLocalCandidate: Array<IAction2<Connection, Candidate>>
internal

Private _joinArgs

_joinArgs: JoinConferenceArgs
internal

Private _onLocalCandidate

_onLocalCandidate: IAction2<Connection, Candidate>
internal

Static Private __fmicelinkwebsync4ConnectionCollectionInitialized

__fmicelinkwebsync4ConnectionCollectionInitialized: boolean = false
internal

Static fm_icelink_websync4_ConnectionCollection__remoteUserId

fm_icelink_websync4_ConnectionCollection__remoteUserId: string
internal

Methods

add

  • add(value: Connection): boolean
  • Parameters

    • value: Connection

    Returns boolean

addMany

  • addMany(values: Connection[]): boolean
  • Adds some values.

    Parameters

    • values: Connection[]

      The values.

    Returns boolean

addOnLocalCandidate

  • addOnLocalCandidate(value: IAction2<Connection, Candidate>): void
  • Parameters

    • value: IAction2<Connection, Candidate>

    Returns void

Protected addSuccess

  • addSuccess(value: Connection): void

any

  • any(predicate: IFunction1<Connection, boolean>): boolean
  • any(): boolean
  • Determined whether the collection contains at least one value that matches the specified predicate.

    Parameters

    • predicate: IFunction1<Connection, boolean>

      The predicate.

    Returns boolean

  • Determined whether the collection contains at least one value.

    Returns boolean

Protected arrayFromList

  • arrayFromList(list: Array<Connection>): Connection[]

checkForExistingConnection

  • checkForExistingConnection(remoteUserId: string, tieBreaker: string): boolean
  • Parameters

    • remoteUserId: string
    • tieBreaker: string

    Returns boolean

contains

  • contains(value: Connection): boolean
  • Determines whether the collection contains a value.

    Parameters

    • value: Connection

      The value.

    Returns boolean

Protected createCollection

  • createCollection(): ConnectionCollection

first

  • first(predicate: IFunction1<Connection, boolean>): Connection
  • first(): Connection
  • Gets the first value that matches the specified predicate. Throws an exception if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<Connection, boolean>

      The predicate.

    Returns Connection

  • Gets the first value. Throws an exception if there are no values in the collection.

    Returns Connection

firstOrDefault

  • firstOrDefault(): Connection
  • firstOrDefault(predicate: IFunction1<Connection, boolean>): Connection
  • Gets the first value. Returns a default value if there are no values in the collection.

    Returns Connection

  • Gets the first value that matches the specified predicate. Returns a default value if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<Connection, boolean>

      The predicate.

    Returns Connection

Private fmicelinkwebsync4ConnectionCollectionInit

  • fmicelinkwebsync4ConnectionCollectionInit(): void
  • Returns void

forEach

  • forEach(callback: IAction2<Connection, number>): void
  • Executes a callback function once per value.

    Parameters

    • callback: IAction2<Connection, number>

      The callback to execute.

    Returns void

getById

  • getById(id: string): Connection
  • Gets a connection by ID.

    Parameters

    • id: string

      The identifier.

    Returns Connection

    The connection, or null if the connection does not exist.

getByRemoteUserId

  • getByRemoteUserId(remoteUserId: string): Connection
  • Parameters

    • remoteUserId: string

    Returns Connection

getCount

  • getCount(): number
  • Gets the count.

    Returns number

getJoinArgs

  • getJoinArgs(): JoinConferenceArgs
  • Returns JoinConferenceArgs

getTypeString

  • getTypeString(): string

getValue

  • getValue(): Connection
  • Gets the value.

    Returns Connection

getValues

  • getValues(): Connection[]
  • Gets the values.

    Returns Connection[]

last

  • last(predicate: IFunction1<Connection, boolean>): Connection
  • last(): Connection
  • Gets the last value that matches the specified predicate. Throws an exception if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<Connection, boolean>

      The predicate.

    Returns Connection

  • Gets the last value. Throws an exception if there are no values in the collection.

    Returns Connection

lastOrDefault

  • lastOrDefault(predicate: IFunction1<Connection, boolean>): Connection
  • lastOrDefault(): Connection
  • Gets the last value that matches the specified predicate. Returns a default value if there are no such values in the collection.

    Parameters

    • predicate: IFunction1<Connection, boolean>

      The predicate.

    Returns Connection

  • Gets the last value. Returns a default value if there are no values in the collection.

    Returns Connection

Private processLocalCandidate

  • processLocalCandidate(connection: Connection, localCandidate: Candidate): void
  • internal

    Parameters

    • connection: Connection
    • localCandidate: Candidate

    Returns void

remove

  • remove(value: Connection): boolean
  • Removes a value.

    Parameters

    • value: Connection

      The value.

    Returns boolean

removeAll

  • removeAll(): void
  • Removes all values.

    Returns void

removeFirst

  • removeFirst(condition: IFunction1<Connection, boolean>): Connection
  • removeFirst(): Connection
  • Removes the first value that matches a given condition.

    Parameters

    • condition: IFunction1<Connection, boolean>

    Returns Connection

  • Removes the first value.

    Returns Connection

removeLast

  • removeLast(): Connection
  • removeLast(condition: IFunction1<Connection, boolean>): Connection
  • Removes the last value.

    Returns Connection

  • Removes the last value that matches a given condition.

    Parameters

    • condition: IFunction1<Connection, boolean>

    Returns Connection

removeMany

  • removeMany(values: Connection[]): boolean
  • Removes some values.

    Parameters

    • values: Connection[]

      The values.

    Returns boolean

removeOnLocalCandidate

  • removeOnLocalCandidate(value: IAction2<Connection, Candidate>): void
  • Parameters

    • value: IAction2<Connection, Candidate>

    Returns void

Protected removeSuccess

  • removeSuccess(value: Connection): void

replace

  • replace(values: Connection[]): void
  • Replaces the collection with a new set of values.

    Parameters

    • values: Connection[]

      The values.

    Returns void

Private setJoinArgs

  • setJoinArgs(value: JoinConferenceArgs): void
  • internal

    Parameters

    • value: JoinConferenceArgs

    Returns void

setValue

  • setValue(value: Connection): void
  • Sets the value.

    Parameters

    • value: Connection

    Returns void

setValues

  • setValues(value: Connection[]): void
  • Sets the values.

    Parameters

    • value: Connection[]

    Returns void

single

  • single(predicate: IFunction1<Connection, boolean>): Connection
  • single(): Connection
  • 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

    • predicate: IFunction1<Connection, boolean>

    Returns Connection

  • Gets the only value. Throws an exception if there are no values or more than one value in the collection.

    Returns Connection

singleOrDefault

  • singleOrDefault(): Connection
  • singleOrDefault(predicate: IFunction1<Connection, boolean>): Connection
  • Gets the only value. Returns a default value if there are no values or more than one value in the collection.

    Returns Connection

  • 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

    • predicate: IFunction1<Connection, boolean>

    Returns Connection

tryGetById

  • tryGetById(id: string, connection: Holder<Connection>): boolean
  • Tries to get a connection by ID.

    Parameters

    • id: string

      The identifier.

    • connection: Holder<Connection>

      The connection.

    Returns boolean

    The connection, or null if the connection does not exist.

tryGetByRemoteUserId

  • tryGetByRemoteUserId(remoteUserId: string, connection: Holder<Connection>): boolean
  • Parameters

    • remoteUserId: string
    • connection: Holder<Connection>

    Returns boolean

valueAt

  • valueAt(index: number): Connection
  • Gets the value at the specified index. Throws an exception if a value does not exist at that index.

    Parameters

    • index: number

      The index.

    Returns Connection

valueAtOrDefault

  • valueAtOrDefault(index: number): Connection
  • Gets the value at the specified index. Returns a default value if a value does not exist at that index.

    Parameters

    • index: number

      The index.

    Returns Connection

where

  • where(predicate: IFunction2<Connection, number, boolean>): ConnectionCollection
  • Creates a new collection with values that match the specified predicate.

    Parameters

    • predicate: IFunction2<Connection, number, boolean>

      The predicate.

    Returns ConnectionCollection

Static fmicelinkwebsync4ConnectionCollectionInitialize

  • fmicelinkwebsync4ConnectionCollectionInitialize(): void
  • internal

    Returns void