if (data instanceof tizen.AttributeFilter) {
filter.filterType = 'AttributeFilter';
- filter.matchValue = filter.matchValue;
} else if (data instanceof tizen.AttributeRangeFilter) {
filter.filterType = 'AttributeRangeFilter';
} else if (data instanceof tizen.CompositeFilter) {
}
var MessageServiceTag = {
- SMS: "messaging.sms",
- MMS: "messaging.mms",
- EMAIL: "messaging.email"
+ SMS: 'messaging.sms',
+ MMS: 'messaging.mms',
+ EMAIL: 'messaging.email'
};
function Message(type, data) {
+ privUtils_.deprecationWarn(
+ 'Message() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
validator_.isConstructorCall(this, Message);
if (Object.values(MessageServiceTag).indexOf(type) == -1) {
var messageAttachmentsLoaded = {};
function MessageAttachment(first, second) {
+ privUtils_.deprecationWarn(
+ 'MessageAttachment() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
validator_.isConstructorCall(this, MessageAttachment);
if (!this instanceof MessageAttachment) {
return new MessageAttachment(data);
function Messaging() {}
Messaging.prototype.getMessageServices = function() {
+ privUtils_.deprecationWarn(
+ 'getMessageServices() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
- { name: 'messageServiceType', type: types_.ENUM, values: Object.values(MessageServiceTag) },
+ {
+ name: 'messageServiceType',
+ type: types_.ENUM,
+ values: Object.values(MessageServiceTag)
+ },
{ name: 'successCallback', type: types_.FUNCTION },
{ name: 'errorCallback', type: types_.FUNCTION, optional: true, nullable: true }
]);
propertyFactory_(this, 'id', data.id, Property.ENUMERABLE);
propertyFactory_(this, 'type', data.type, Property.ENUMERABLE);
propertyFactory_(this, 'name', data.name, Property.ENUMERABLE);
- propertyFactory_(this, 'messageStorage', new MessageStorage(this), Property.ENUMERABLE);
+ propertyFactory_(
+ this,
+ 'messageStorage',
+ new MessageStorage(this),
+ Property.ENUMERABLE
+ );
}
MessageService.prototype.sendMessage = function() {
+ privUtils_.deprecationWarn(
+ 'sendMessage() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'message', type: types_.PLATFORM_OBJECT, values: tizen.Message },
{
};
MessageService.prototype.loadMessageBody = function() {
+ privUtils_.deprecationWarn(
+ 'loadMessageBody() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'message', type: types_.PLATFORM_OBJECT, values: tizen.Message },
{ name: 'successCallback', type: types_.FUNCTION },
}
};
MessageService.prototype.loadMessageAttachment = function() {
+ privUtils_.deprecationWarn(
+ 'loadMessageAttachment() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'attachment', type: types_.PLATFORM_OBJECT, values: MessageAttachment },
{ name: 'successCallback', type: types_.FUNCTION },
};
MessageService.prototype.sync = function() {
+ privUtils_.deprecationWarn(
+ 'sync() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'successCallback',
};
MessageService.prototype.syncFolder = function() {
+ privUtils_.deprecationWarn(
+ 'syncFolder() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'folder', type: types_.PLATFORM_OBJECT, values: MessageFolder },
{
};
MessageService.prototype.stopSync = function() {
+ privUtils_.deprecationWarn(
+ 'stopSync() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [{ name: 'opId', type: types_.LONG }]);
var self = this;
}
MessageStorage.prototype.addDraftMessage = function() {
+ privUtils_.deprecationWarn(
+ 'addDraftMessage() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'message', type: types_.PLATFORM_OBJECT, values: tizen.Message },
{
};
MessageStorage.prototype.findMessages = function() {
+ privUtils_.deprecationWarn(
+ 'findMessages() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'filter',
};
MessageStorage.prototype.removeMessages = function() {
+ privUtils_.deprecationWarn(
+ 'removeMessages() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'messages', type: types_.ARRAY, values: Message },
{
};
MessageStorage.prototype.updateMessages = function() {
+ privUtils_.deprecationWarn(
+ 'updateMessages() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'messages', type: types_.ARRAY, values: Message },
{
};
MessageStorage.prototype.findConversations = function() {
+ privUtils_.deprecationWarn(
+ 'findConversations() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'filter',
};
MessageStorage.prototype.removeConversations = function() {
+ privUtils_.deprecationWarn(
+ 'removeConversations() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'conversations', type: types_.ARRAY },
{
};
MessageStorage.prototype.findFolders = function() {
+ privUtils_.deprecationWarn(
+ 'findFolders() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'filter',
);
MessageStorage.prototype.addMessagesChangeListener = function() {
+ privUtils_.deprecationWarn(
+ 'addMessagesChangeListener() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'messagesChangeCallback',
};
MessageStorage.prototype.addConversationsChangeListener = function() {
+ privUtils_.deprecationWarn(
+ 'addConversationsChangeListener() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'conversationsChangeCallback',
};
MessageStorage.prototype.addFoldersChangeListener = function() {
+ privUtils_.deprecationWarn(
+ 'addFoldersChangeListener() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{
name: 'foldersChangeCallback',
};
MessageStorage.prototype.removeChangeListener = function() {
+ privUtils_.deprecationWarn(
+ 'removeChangeListener() is deprecated and will be ' +
+ 'removed from next release without any alternatives. ',
+ '8.0'
+ );
var args = validator_.validateArgs(arguments, [
{ name: 'watchId', type: types_.LONG }
]);
Property.ENUMERABLE
);
propertyFactory_(this, 'messageCount', data.messageCount || 0, Property.ENUMERABLE);
- propertyFactory_(this, 'unreadMessages', data.unreadMessages || 0, Property.ENUMERABLE);
+ propertyFactory_(
+ this,
+ 'unreadMessages',
+ data.unreadMessages || 0,
+ Property.ENUMERABLE
+ );
propertyFactory_(this, 'preview', data.preview || '', Property.ENUMERABLE);
propertyFactory_(this, 'subject', data.subject || '', Property.ENUMERABLE);
propertyFactory_(this, 'isRead', data.isRead || false, Property.ENUMERABLE);
propertyFactory_(this, 'to', data.to || [], Property.ENUMERABLE);
propertyFactory_(this, 'cc', data.cc || [], Property.ENUMERABLE);
propertyFactory_(this, 'bcc', data.bcc || [], Property.ENUMERABLE);
- propertyFactory_(this, 'lastMessageId', data.lastMessageId || null, Property.ENUMERABLE);
+ propertyFactory_(
+ this,
+ 'lastMessageId',
+ data.lastMessageId || null,
+ Property.ENUMERABLE
+ );
}
function MessageFolder(data) {