View Source SMPPEX.Pdu.MessageState (smppex v3.2.3)
Module for operating with deliver_sm
message states.
Summary
Functions
Converts atom representing message state to integer value.
Converts integer message state value to string representation.
Types
Functions
@spec code_by_name(state_name()) :: state()
Converts atom representing message state to integer value.
Example
iex(1)> SMPPEX.Pdu.MessageState.code_by_name(:DELIVERED)
2
Converts integer message state value to string representation.
Example
iex(1)> SMPPEX.Pdu.MessageState.format(2)
"DELIVERED"
iex(2)> SMPPEX.Pdu.MessageState.format(12345)
"12345"