return filter;
}
-/**
- * Example usage:
- * function Messaging () {
- * propertyFactory_(this, 'ids', [2,3,4], Property.W | Property.E | Property.C);
- * propertyFactory_(this, 'name', 'Name', Property.E);
- * propertyFactory_(this, 'age', 25, Property.W);
- * propertyFactory_(this, 'something', 1);
- * propertyFactory_(this, 'getSomething', Property.E, {get: function(){return 100;}});
- * }
- * Will produce:
- * var m = new Messaging();
- * {
- * id: [2,3,4],
- * name: 'Name',
- * age: 25
- * }
- *
- * m.name = 'A brand new name';
- * privUtils_.log(m.name); // Name
- */
function propertyFactory_(that, name, value, flags, options) {
flags = flags || 0;
if (options === null || typeof options !== 'object') {
}
}
-/**
- * Specifies the Messaging service tags.
- */
var MessageServiceTag = ['messaging.sms', 'messaging.mms', 'messaging.email'];
function Message(type, data) {
inResponseTo: inResponseTo || null,
attachments: attachments
};
- // id
+
Object.defineProperty(this, 'id', {
get: function() {
return _internal.id;
enumerable: true
});
- //conversationId
Object.defineProperty(this, 'conversationId', {
get: function() {
return _internal.conversationId;
enumerable: true
});
- // folderId
Object.defineProperty(this, 'folderId', {
get: function() {
return _internal.folderId;
enumerable: true
});
- // type
Object.defineProperty(this, 'type', {
get: function() {
return _internal.type;
enumerable: true
});
- // timestamp
Object.defineProperty(this, 'timestamp', {
get: function() {
return _internal.timestamp
enumerable: true
});
- // from
Object.defineProperty(this, 'from', {
get: function() {
return _internal.from;
enumerable: true
});
- // to
Object.defineProperty(this, 'to', {
get: function() {
return _internal.to;
enumerable: true
});
- // cc
Object.defineProperty(this, 'cc', {
get: function() {
return _internal.cc;
enumerable: true
});
- // bcc
Object.defineProperty(this, 'bcc', {
get: function() {
return _internal.bcc;
enumerable: true
});
- // body
Object.defineProperty(this, 'body', {
get: function() {
return _internal.body;
enumerable: true
});
- // isRead
Object.defineProperty(this, 'isRead', {
get: function() {
return _internal.isRead;
enumerable: true
});
- // hasAttachment
Object.defineProperty(this, 'hasAttachment', {
get: function() {
return _internal.attachments.length > 0;
enumerable: true
});
- // isHighPriority
Object.defineProperty(this, 'isHighPriority', {
get: function() {
return _internal.isHighPriority;
enumerable: true
});
- // subject
Object.defineProperty(this, 'subject', {
get: function() {
return _internal.subject;
enumerable: true
});
- // inResponseTo
Object.defineProperty(this, 'inResponseTo', {
get: function() {
return _internal.inResponseTo;
enumerable: true
});
- // messageStatus
Object.defineProperty(this, 'messageStatus', {
get: function() {
if (_internal.id) {
enumerable: true
});
- // attachments
Object.defineProperty(this, 'attachments', {
get: function() {
return _internal.attachments;
inlineAttachments: data.inlineAttachments || []
};
- // messageId
Object.defineProperty(this, 'messageId', {
get: function() {
return _internal.messageId;
enumerable: true
});
- // loaded
Object.defineProperty(this, 'loaded', {
get: function() {
return _internal.loaded;
enumerable: true
});
- // plainBody
Object.defineProperty(this, 'plainBody', {
get: function() {
return _internal.plainBody;
enumerable: true
});
- // htmlBody
Object.defineProperty(this, 'htmlBody', {
get: function() {
return _internal.htmlBody;
enumerable: true
});
- // inlineAttachments
Object.defineProperty(this, 'inlineAttachments', {
get: function() {
return _internal.inlineAttachments;
filePath: internalConstructor ? first.filePath : first
};
- // messageId
Object.defineProperty(this, 'messageId', {
get: function() {
return _internal.messageId;
},
enumerable: true
});
- // id
+
Object.defineProperty(this, 'id', {
get: function() {
return _internal.id;
},
enumerable: true
});
- // mimeType
+
Object.defineProperty(this, 'mimeType', {
get: function() {
return _internal.mimeType;
},
enumerable: true
});
- // filePath
+
Object.defineProperty(this, 'filePath', {
get: function() {
if (_internal.id && !messageAttachmentsLoaded[_internal.id]) {
function Messaging() {}
-/**
- * Gets the messaging service of a given type for a given account.
- * @param {!MessageServiceTag} messageServiceType Type of the services to be retrieved.
- * @param {!MessageServiceArraySuccessCallback} successCallback Callback function that
- * is called when the services are successfully retrieved.
- * @param {ErrorCallback} errorCallback Callback function that is called when
- * an error occurs.
- */
Messaging.prototype.getMessageServices = function() {
var args = validator_.validateArgs(arguments, [
{ name: 'messageServiceType', type: types_.ENUM, values: MessageServiceTag },