five-on-it / packages/protocol/src/messages / parsePhoneCommand
Function: parsePhoneCommand()
parsePhoneCommand(
text): {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; } |undefined
Defined in: packages/protocol/src/messages.ts:1153
Parses a text frame as a phone command; undefined when it is not one.
Parameters
text
string
Returns
{ 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; } | undefined