WebAPI/WebSTK: Difference between revisions

Jump to navigation Jump to search
Line 713: Line 713:
// 'command' is got from onstkcommand
// 'command' is got from onstkcommand
// and assume it's a Select Item command.
// and assume it's a Select Item command.
var response = new MozStkResponse(command.number, command.type, command.qualifier);
var response = {
response.resultCode = MozStkResponse.RESULT_OK;
  commandNumber: command.commandNumber,  
// 'id' is got from the chosen item identifier (menu.item[].identifier)
  typeOfCommandL command.typeOfCommand,
response.itemIdentifier = id;
  commandQualifier: command.commandQualifier,
  resultCode : mozICC.STK_RESULT_OK;
  // 'id' is got from the chosen item identifier (menu.item[].identifier)
  itemIdentifier: id
};
mozIcc.sendStkResponse(response);
mozIcc.sendStkResponse(response);
</pre>
</pre>
Confirmed users
266

edits

Navigation menu