Class StreamDirectionHelper
Class containing utility methods to manipulate StreamDirection.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class StreamDirectionHelper
Methods
DirectionFromString(String)
Converts string representations of stream directions to StreamDirection.
Declaration
public static StreamDirection DirectionFromString(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
Returns
Type | Description |
---|---|
StreamDirection | The direction. |
DirectionToString(StreamDirection)
Obtains the string representation of StreamDirection.
Declaration
public static string DirectionToString(StreamDirection direction)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
Returns
Type | Description |
---|---|
System.String | The direction string. |
IsReceiveDisabled(StreamDirection)
Checks the receive flag.
Declaration
public static bool IsReceiveDisabled(StreamDirection direction)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
Returns
Type | Description |
---|---|
System.Boolean | The receive flag. |
IsReceiveDisabled(String)
Checks the receive flag.
Declaration
public static bool IsReceiveDisabled(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
Returns
Type | Description |
---|---|
System.Boolean | The receive flag. |
IsReceiveOnly(String)
Checks receive only.
Declaration
public static bool IsReceiveOnly(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString |
Returns
Type | Description |
---|---|
System.Boolean |
IsSendDisabled(StreamDirection)
Checks the send flag.
Declaration
public static bool IsSendDisabled(StreamDirection direction)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
Returns
Type | Description |
---|---|
System.Boolean | The send flag. |
IsSendDisabled(String)
Checks the send flag.
Declaration
public static bool IsSendDisabled(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
Returns
Type | Description |
---|---|
System.Boolean | The send flag. |
IsSendOnly(String)
Checks send only.
Declaration
public static bool IsSendOnly(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString |
Returns
Type | Description |
---|---|
System.Boolean |
SetReceiveDisabled(StreamDirection, Boolean)
Sets the receive flag.
Declaration
public static StreamDirection SetReceiveDisabled(StreamDirection direction, bool disabled)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
System.Boolean | disabled | Whether to disable the receive flag. |
Returns
Type | Description |
---|---|
StreamDirection | The new direction. |
SetReceiveDisabled(String, Boolean)
Sets the receive flag.
Declaration
public static string SetReceiveDisabled(string directionString, bool disabled)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
System.Boolean | disabled | Whether to disable the receive flag. |
Returns
Type | Description |
---|---|
System.String | The new direction. |
SetSendDisabled(StreamDirection, Boolean)
Sets the send flag.
Declaration
public static StreamDirection SetSendDisabled(StreamDirection direction, bool disabled)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
System.Boolean | disabled | Whether to disable the send flag. |
Returns
Type | Description |
---|---|
StreamDirection | The new direction. |
SetSendDisabled(String, Boolean)
Sets the send flag.
Declaration
public static string SetSendDisabled(string directionString, bool disabled)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
System.Boolean | disabled | Whether to disable the send flag. |
Returns
Type | Description |
---|---|
System.String | The new direction. |
ToggleReceive(StreamDirection)
Toggles the receive flag.
Declaration
public static StreamDirection ToggleReceive(StreamDirection direction)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
Returns
Type | Description |
---|---|
StreamDirection | The new direction. |
ToggleReceive(String)
Toggles the receive flag.
Declaration
public static string ToggleReceive(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
Returns
Type | Description |
---|---|
System.String | The new direction. |
ToggleSend(StreamDirection)
Toggles the send flag.
Declaration
public static StreamDirection ToggleSend(StreamDirection direction)
Parameters
Type | Name | Description |
---|---|---|
StreamDirection | direction | The direction. |
Returns
Type | Description |
---|---|
StreamDirection | The new direction. |
ToggleSend(String)
Toggles the send flag.
Declaration
public static string ToggleSend(string directionString)
Parameters
Type | Name | Description |
---|---|---|
System.String | directionString | The direction string. |
Returns
Type | Description |
---|---|
System.String | The new direction. |