[Mediacontroller] Fixed issue with invalid name of enum
[Bug]
1. wrong value of enum NONE instead of NO_CATEGORY
2. invalid parsing of empty keyword, which caused crash
[Verification] Code compiles without errors.
Tested in chrome console with code:
var server = tizen.mediacontroller.createServer();
function searchRequestListener(clientName, request)
{
console.log("search command received");
return new tizen.mediacontroller.RequestReply(new tizen.Bundle({"key": "value"}), 5);
}
server.setSearchRequestListener(searchRequestListener);
server.updatePlaybackState("PLAY");
/* Client-side code */
var client = tizen.mediacontroller.getClient();
var sinfo = client.getLatestServerInfo();
var query = [
new tizen.mediacontroller.SearchFilter("MUSIC")
];
sinfo.sendSearchRequest(query, function(reply)
{
console.log("reply status: " + reply.code);
console.log("reply data: " + reply.data);
});
Change-Id: Ie522f07286bf4604fe43428b716d6d808abbea07