@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
85 lines (81 loc) • 3.24 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.ClientMessageFetchFileRequestBuilder = exports.ClientMessageFetchFileRequest = void 0;
/**
* Request model for ClientMessageApi.fetchFile operation.
*/
class ClientMessageFetchFileRequest {
/**
* Request model for clientMessageFetchFile operation.
* @param messageId Message identifier
* @param account Email account
* @param folder Account folder to fetch from (should be specified for some protocols such as IMAP)
* @param storage Storage name where account file located.
* @param accountStorageFolder Folder in storage where account file located.
* @param format Fetched message file format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef, Oft
*/
constructor(messageId, account, folder, storage, accountStorageFolder, format) {
this.messageId = messageId;
this.account = account;
this.folder = folder;
this.storage = storage;
this.accountStorageFolder = accountStorageFolder;
this.format = format;
}
}
exports.ClientMessageFetchFileRequest = ClientMessageFetchFileRequest;
class ClientMessageFetchFileRequestBuilder {
constructor(model) {
this.model = model;
}
build() {
const tempModel = this.model;
this.model = null;
return tempModel;
}
messageId(messageId) {
this.model.messageId = messageId;
return this;
}
account(account) {
this.model.account = account;
return this;
}
folder(folder) {
this.model.folder = folder;
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;
}
}
exports.ClientMessageFetchFileRequestBuilder = ClientMessageFetchFileRequestBuilder;
//# sourceMappingURL=client-message-fetch-file-request.js.map