getDirectionByValue

Retrieves the direction of a message based on the given value.

Return

The message direction, either SENT or RECEIVED.

Parameters

value

The value representing the direction of the message. 0 indicates SENT direction. 1 indicates RECEIVED direction. Any other value defaults to SENT direction.