[messaging] Autoformat changes in messaging. 91/217691/1
authorMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 8 Nov 2019 10:07:13 +0000 (11:07 +0100)
committerMichal Michalski <m.michalski2@partner.samsung.com>
Fri, 8 Nov 2019 10:07:13 +0000 (11:07 +0100)
Change-Id: I84cf3cc8c1a5b6d32c3d1b6f8f9eadc739960be8
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
src/messaging/messaging_api.js

index 65c0005..c221c69 100755 (executable)
@@ -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) {