@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
79 lines (75 loc) • 2.96 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.ClientThreadGetMessagesRequestBuilder = exports.ClientThreadGetMessagesRequest = void 0;
/**
* Request model for ClientThreadApi.getMessages operation.
*/
class ClientThreadGetMessagesRequest {
/**
* Request model for clientThreadGetMessages operation.
* @param threadId Thread identifier
* @param account Email account
* @param folder Specifies account folder to get thread from
* @param storage Storage name where account file located
* @param accountStorageFolder Folder in storage where account file located
*/
constructor(threadId, account, folder, storage, accountStorageFolder) {
this.threadId = threadId;
this.account = account;
this.folder = folder;
this.storage = storage;
this.accountStorageFolder = accountStorageFolder;
}
}
exports.ClientThreadGetMessagesRequest = ClientThreadGetMessagesRequest;
class ClientThreadGetMessagesRequestBuilder {
constructor(model) {
this.model = model;
}
build() {
const tempModel = this.model;
this.model = null;
return tempModel;
}
threadId(threadId) {
this.model.threadId = threadId;
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;
}
}
exports.ClientThreadGetMessagesRequestBuilder = ClientThreadGetMessagesRequestBuilder;
//# sourceMappingURL=client-thread-get-messages-request.js.map