@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
91 lines (87 loc) • 3.42 kB
JavaScript
"use strict";
/*
* MIT License
* Copyright (c) 2018-2020 Aspose Pty Ltd
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientMessageAppendFileRequestBuilder = exports.ClientMessageAppendFileRequest = void 0;
/**
* Request model for ClientMessageApi.appendFile operation.
*/
class ClientMessageAppendFileRequest {
/**
* Request model for clientMessageAppendFile operation.
* @param account Email account.
* @param file Message file to append.
* @param storage Storage name where account file located.
* @param accountStorageFolder Folder in storage where account file located.
* @param format Email file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
* @param folder Path to folder on email server to append message to.
* @param markAsSent Determines that appended message should be market as sent or not.
*/
constructor(account, file, storage, accountStorageFolder, format, folder, markAsSent) {
this.account = account;
this.file = file;
this.storage = storage;
this.accountStorageFolder = accountStorageFolder;
this.format = format;
this.folder = folder;
this.markAsSent = markAsSent;
}
}
exports.ClientMessageAppendFileRequest = ClientMessageAppendFileRequest;
class ClientMessageAppendFileRequestBuilder {
constructor(model) {
this.model = model;
}
build() {
const tempModel = this.model;
this.model = null;
return tempModel;
}
account(account) {
this.model.account = account;
return this;
}
file(file) {
this.model.file = file;
return this;
}
storage(storage) {
this.model.storage = storage;
return this;
}
accountStorageFolder(accountStorageFolder) {
this.model.accountStorageFolder = accountStorageFolder;
return this;
}
format(format) {
this.model.format = format;
return this;
}
folder(folder) {
this.model.folder = folder;
return this;
}
markAsSent(markAsSent) {
this.model.markAsSent = markAsSent;
return this;
}
}
exports.ClientMessageAppendFileRequestBuilder = ClientMessageAppendFileRequestBuilder;
//# sourceMappingURL=client-message-append-file-request.js.map