/ fm / liveswitch / CandidateUtility
Class: CandidateUtility
fm.liveswitch.CandidateUtility
Utility functions for candidate and candidate pair.
Table of contents
Constructors
Methods
- getTypeString
- candidatePairStateFromString
- candidatePairStateToString
- protocolTypeFromString
- protocolTypeToString
- typeFromString
- typeToString
Constructors
constructor
+ new CandidateUtility(): CandidateUtility
Returns: CandidateUtility
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:11
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:9
candidatePairStateFromString
▸ Static
candidatePairStateFromString(stateString
: string): CandidatePairState
Convert string to CandidatePairState.
Parameters:
Name | Type |
---|---|
stateString |
string |
Returns: CandidatePairState
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:29
candidatePairStateToString
▸ Static
candidatePairStateToString(state
: CandidatePairState): string
Convert CandidatePairState to string.
Parameters:
Name | Type |
---|---|
state |
CandidatePairState |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:60
protocolTypeFromString
▸ Static
protocolTypeFromString(protocolTypeString
: string): ProtocolType
Convert string to ProtocolType.
Parameters:
Name | Type |
---|---|
protocolTypeString |
string |
Returns: ProtocolType
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:91
protocolTypeToString
▸ Static
protocolTypeToString(protocolType
: ProtocolType): string
Convert ProtocolType to string.
Parameters:
Name | Type |
---|---|
protocolType |
ProtocolType |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:114
typeFromString
▸ Static
typeFromString(typeString
: string): CandidateType
Convert string to CandidateType.
Parameters:
Name | Type |
---|---|
typeString |
string |
Returns: CandidateType
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:137
typeToString
▸ Static
typeToString(type
: CandidateType): string
Convert CandidateType to string.
Parameters:
Name | Type |
---|---|
type |
CandidateType |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/CandidateUtility.ts:162