From f24eb2f2761eb0bf5617174fe317454e048faebe Mon Sep 17 00:00:00 2001 From: Michal Michalski Date: Fri, 8 Nov 2019 11:07:13 +0100 Subject: [PATCH] [messaging] Autoformat changes in messaging. Change-Id: I84cf3cc8c1a5b6d32c3d1b6f8f9eadc739960be8 Signed-off-by: Michal Michalski --- src/messaging/messaging_api.js | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/src/messaging/messaging_api.js b/src/messaging/messaging_api.js index 65c0005b..c221c69a 100755 --- a/src/messaging/messaging_api.js +++ b/src/messaging/messaging_api.js @@ -93,9 +93,9 @@ function updateInternal_(internal, data) { } var MessageServiceTag = { - SMS: "messaging.sms", - MMS: "messaging.mms", - EMAIL: "messaging.email" + SMS: 'messaging.sms', + MMS: 'messaging.mms', + EMAIL: 'messaging.email' }; function Message(type, data) { @@ -571,7 +571,11 @@ function Messaging() {} Messaging.prototype.getMessageServices = function() { 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 } ]); @@ -600,7 +604,12 @@ function MessageService(data) { 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() { @@ -1349,7 +1358,12 @@ function MessageConversation(data) { 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); @@ -1357,7 +1371,12 @@ function MessageConversation(data) { 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) { -- 2.34.1