Hi,
> Is the message storage used to check the status of the message.
message storage is interface for use method such as addDraftMessage, findMessages and so on.
> In the example below,it checks whether the message is loaded or not. So each service object has storage object which is used to check the status of the message.
Where does the message gets stored.
when findMessages() is success, successcallback has the queried message from the service. the message is stored in the serivice which you get service from messaging.getMessageServices.
if you call the tizen.messaging.getMessageServices("messaging.email", serviceListCB, errorCallback);
You can get the email service from device and that service has the storage object of that service.
It means finded message from service is email message of that service.
Best Regards,
Ethan.
------- Original Message -------
Sender : rajen2 V<[email protected]>
Date : 2013-04-04 16:48 (GMT+09:00)
Title : [Tizen General] Query on Message Storage in Messaging Web API-Regarding
Hi ,
I have checked Messaging Web APIs.
Could you please let me know the answers for the following query
Query 1:
Is the message storage used to check the status of the message.
In the example below,it checks whether the message is loaded or not. So each service object has storage object which is used to check the status of the message.
Where does the message gets stored.
function messageQueryCallback(messages) {
for (var i=0; i<messages.length; i++) {
var message = messages[i];
if (!message.body.loaded) {
service.loadMessageBody(message, successCallback, errorCallback);
}
}
}
service.messageStorage.findMessages(new tizen.AttributeFilter("type", "EXACTLY", "messaging.email"), messageQueryCallback);
Please let me know if you need any further information.
|
|
_______________________________________________ General mailing list [email protected] https://lists.tizen.org/listinfo/general

