/ fm / liveswitch / StreamDirectionHelper
Class: StreamDirectionHelper
fm.liveswitch.StreamDirectionHelper
Class containing utility methods to manipulate [[fm.liveswitch.streamDirection]].
Table of contents
Constructors
Methods
- getTypeString
- directionFromString
- directionToString
- isReceiveDisabled
- isReceiveOnly
- isSendDisabled
- isSendOnly
- setReceiveDisabled
- setSendDisabled
- toggleReceive
- toggleSend
Constructors
constructor
+ new StreamDirectionHelper(): StreamDirectionHelper
Returns: StreamDirectionHelper
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:11
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:9
directionFromString
▸ Static
directionFromString(directionString
: string): StreamDirection
Converts string representations of stream directions to [[fm.liveswitch.streamDirection]].
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
Returns: StreamDirection
The direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:30
directionToString
▸ Static
directionToString(direction
: StreamDirection): string
Obtains the string representation of [[fm.liveswitch.streamDirection]].
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
Returns: string
The direction string.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:62
isReceiveDisabled
▸ Static
isReceiveDisabled(direction
: StreamDirection): boolean
Checks the receive flag.
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
Returns: boolean
The receive flag.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:88
▸ Static
isReceiveDisabled(directionString
: string): boolean
Checks the receive flag.
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
Returns: boolean
The receive flag.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:96
isReceiveOnly
▸ Static
isReceiveOnly(directionString
: string): boolean
Checks receive only.
Parameters:
Name | Type |
---|---|
directionString |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:114
isSendDisabled
▸ Static
isSendDisabled(direction
: StreamDirection): boolean
Checks the send flag.
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
Returns: boolean
The send flag.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:128
▸ Static
isSendDisabled(directionString
: string): boolean
Checks the send flag.
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
Returns: boolean
The send flag.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:136
isSendOnly
▸ Static
isSendOnly(directionString
: string): boolean
Checks send only.
Parameters:
Name | Type |
---|---|
directionString |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:154
setReceiveDisabled
▸ Static
setReceiveDisabled(direction
: StreamDirection, disabled
: boolean): StreamDirection
Sets the receive flag.
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
disabled |
boolean | Whether to disable the receive flag. |
Returns: StreamDirection
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:169
▸ Static
setReceiveDisabled(directionString
: string, disabled
: boolean): string
Sets the receive flag.
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
disabled |
boolean | Whether to disable the receive flag. |
Returns: string
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:178
setSendDisabled
▸ Static
setSendDisabled(direction
: StreamDirection, disabled
: boolean): StreamDirection
Sets the send flag.
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
disabled |
boolean | Whether to disable the send flag. |
Returns: StreamDirection
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:200
▸ Static
setSendDisabled(directionString
: string, disabled
: boolean): string
Sets the send flag.
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
disabled |
boolean | Whether to disable the send flag. |
Returns: string
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:209
toggleReceive
▸ Static
toggleReceive(direction
: StreamDirection): StreamDirection
Toggles the receive flag.
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
Returns: StreamDirection
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:230
▸ Static
toggleReceive(directionString
: string): string
Toggles the receive flag.
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
Returns: string
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:238
toggleSend
▸ Static
toggleSend(direction
: StreamDirection): StreamDirection
Toggles the send flag.
Parameters:
Name | Type | Description |
---|---|---|
direction |
StreamDirection | The direction. |
Returns: StreamDirection
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:269
▸ Static
toggleSend(directionString
: string): string
Toggles the send flag.
Parameters:
Name | Type | Description |
---|---|---|
directionString |
string | The direction string. |
Returns: string
The new direction.
Defined in: Generated/TypeScript/fm.liveswitch/StreamDirectionHelper.ts:277