UNPKG

@asposecloud/aspose-email-cloud

Version:
204 lines (200 loc) 5.98 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.MapiContactNamePropertySetDtoBuilder = exports.MapiContactNamePropertySetDto = void 0; /** * The properties are used to specify the name of the person represented by the contact */ class MapiContactNamePropertySetDto { /** * The properties are used to specify the name of the person represented by the contact * @param displayName Full name of the contact * @param displayNamePrefix Title of the contact * @param fileUnder Name under which to file this contact when displaying a list of contacts * @param fileUnderId Value specifying how to generate and recompute the property when other properties are changed * @param generation Generation suffix of the contact * @param givenName Given name (first name) of the contact * @param initials Initials of the contact * @param middleName Middle name of the contact * @param nickname Nickname of the contact * @param surname Surname (family name) of the contact */ constructor(displayName, displayNamePrefix, fileUnder, fileUnderId, generation, givenName, initials, middleName, nickname, surname) { this.displayName = displayName; this.displayNamePrefix = displayNamePrefix; this.fileUnder = fileUnder; this.fileUnderId = fileUnderId; this.generation = generation; this.givenName = givenName; this.initials = initials; this.middleName = middleName; this.nickname = nickname; this.surname = surname; } /** * Returns attribute type map */ static getAttributeTypeMap() { return MapiContactNamePropertySetDto.attributeTypeMap; } } exports.MapiContactNamePropertySetDto = MapiContactNamePropertySetDto; /** * Attribute type map */ MapiContactNamePropertySetDto.attributeTypeMap = [ { name: "displayName", baseName: "displayName", type: "string", }, { name: "displayNamePrefix", baseName: "displayNamePrefix", type: "string", }, { name: "fileUnder", baseName: "fileUnder", type: "string", }, { name: "fileUnderId", baseName: "fileUnderId", type: "number", }, { name: "generation", baseName: "generation", type: "string", }, { name: "givenName", baseName: "givenName", type: "string", }, { name: "initials", baseName: "initials", type: "string", }, { name: "middleName", baseName: "middleName", type: "string", }, { name: "nickname", baseName: "nickname", type: "string", }, { name: "surname", baseName: "surname", type: "string", } ]; /** * MapiContactNamePropertySetDto model builder */ class MapiContactNamePropertySetDtoBuilder { constructor(model) { this.model = model; } /** * Build model. */ build() { return this.model; } /** * Full name of the contact */ displayName(displayName) { this.model.displayName = displayName; return this; } /** * Title of the contact */ displayNamePrefix(displayNamePrefix) { this.model.displayNamePrefix = displayNamePrefix; return this; } /** * Name under which to file this contact when displaying a list of contacts */ fileUnder(fileUnder) { this.model.fileUnder = fileUnder; return this; } /** * Value specifying how to generate and recompute the property when other properties are changed */ fileUnderId(fileUnderId) { this.model.fileUnderId = fileUnderId; return this; } /** * Generation suffix of the contact */ generation(generation) { this.model.generation = generation; return this; } /** * Given name (first name) of the contact */ givenName(givenName) { this.model.givenName = givenName; return this; } /** * Initials of the contact */ initials(initials) { this.model.initials = initials; return this; } /** * Middle name of the contact */ middleName(middleName) { this.model.middleName = middleName; return this; } /** * Nickname of the contact */ nickname(nickname) { this.model.nickname = nickname; return this; } /** * Surname (family name) of the contact */ surname(surname) { this.model.surname = surname; return this; } } exports.MapiContactNamePropertySetDtoBuilder = MapiContactNamePropertySetDtoBuilder; //# sourceMappingURL=mapi-contact-name-property-set-dto.js.map