five-on-it / packages/protocol/src/messages / encodePhoneCommand
Function: encodePhoneCommand()
encodePhoneCommand(
command):string
Defined in: packages/protocol/src/messages.ts:1148
Serializes a phone command as a text frame.
Parameters
command
app?
string = ...
button?
string = ...
choice?
string = ...
contact?
string = ...
message?
number = ...
op
"open" | "call" | "close" | "photo" | "read" | "waypoint" | "press" | "reply" | "answer" | "decline" | "hangUp" | "choose" | "clearWaypoint" = ...
type
"phone" = ...
values?
Record<string, string> = ...
x?
number = ...
z?
number = ...
Returns
string