UNPKG

@asposecloud/aspose-email-cloud

Version:
162 lines (158 loc) 5.19 kB
"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.MapiContactProfessionalPropertySetDtoBuilder = exports.MapiContactProfessionalPropertySetDto = void 0; /** * Properties are used to store professional details for the person represented by the contact */ class MapiContactProfessionalPropertySetDto { /** * Properties are used to store professional details for the person represented by the contact * @param title Gets or sets the job title of the contact * @param companyName Gets or sets the company that employs the contact * @param departmentName Gets or sets the name of the department to which the contact belongs * @param officeLocation Gets or sets the location of the office that the contact works in * @param managerName Gets or sets the name of the contact's manager * @param assistant Gets or sets the name of the contact's assistant * @param profession Gets or sets the profession of the contact */ constructor(title, companyName, departmentName, officeLocation, managerName, assistant, profession) { this.title = title; this.companyName = companyName; this.departmentName = departmentName; this.officeLocation = officeLocation; this.managerName = managerName; this.assistant = assistant; this.profession = profession; } /** * Returns attribute type map */ static getAttributeTypeMap() { return MapiContactProfessionalPropertySetDto.attributeTypeMap; } } exports.MapiContactProfessionalPropertySetDto = MapiContactProfessionalPropertySetDto; /** * Attribute type map */ MapiContactProfessionalPropertySetDto.attributeTypeMap = [ { name: "title", baseName: "title", type: "string", }, { name: "companyName", baseName: "companyName", type: "string", }, { name: "departmentName", baseName: "departmentName", type: "string", }, { name: "officeLocation", baseName: "officeLocation", type: "string", }, { name: "managerName", baseName: "managerName", type: "string", }, { name: "assistant", baseName: "assistant", type: "string", }, { name: "profession", baseName: "profession", type: "string", } ]; /** * MapiContactProfessionalPropertySetDto model builder */ class MapiContactProfessionalPropertySetDtoBuilder { constructor(model) { this.model = model; } /** * Build model. */ build() { return this.model; } /** * Gets or sets the job title of the contact */ title(title) { this.model.title = title; return this; } /** * Gets or sets the company that employs the contact */ companyName(companyName) { this.model.companyName = companyName; return this; } /** * Gets or sets the name of the department to which the contact belongs */ departmentName(departmentName) { this.model.departmentName = departmentName; return this; } /** * Gets or sets the location of the office that the contact works in */ officeLocation(officeLocation) { this.model.officeLocation = officeLocation; return this; } /** * Gets or sets the name of the contact's manager */ managerName(managerName) { this.model.managerName = managerName; return this; } /** * Gets or sets the name of the contact's assistant */ assistant(assistant) { this.model.assistant = assistant; return this; } /** * Gets or sets the profession of the contact */ profession(profession) { this.model.profession = profession; return this; } } exports.MapiContactProfessionalPropertySetDtoBuilder = MapiContactProfessionalPropertySetDtoBuilder; //# sourceMappingURL=mapi-contact-professional-property-set-dto.js.map