@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
330 lines (326 loc) • 10.2 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.MapiContactPersonalInfoPropertySetDtoBuilder = exports.MapiContactPersonalInfoPropertySetDto = void 0;
/**
* Specify other additional contact information.
*/
class MapiContactPersonalInfoPropertySetDto {
/**
* Specify other additional contact information.
* @param spouseName Specifies the name of the contact's spouse/partner
* @param personalHomePage Specifies the contact's personal web page URL
* @param language Specifies the language that the contact uses
* @param notes Specifies the additional notes
* @param hobbies Specifies the hobbies of the contact
* @param location Specifies the location of the contact
* @param instantMessagingAddress Specifies the contact's instant messaging address
* @param organizationalIdNumber Specifies an organizational ID number for the contact
* @param customerId Specifies the contact's customer ID number
* @param governmentIdNumber Specifies the contact's government ID number
* @param freeBusyLocation Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file
* @param account Specifies the account name of the contact
* @param html Specifies the contact's business web page URL
* @param businessHomePage Specifies the contact's business web page URL
* @param ftpSite Specifies the contact's File Transfer Protocol (FTP) URL
* @param computerNetworkName Specifies the name of the network to which the contact's computer is connected
* @param gender Gender of the contact. Enum, available values: Unspecified, Female, Male
* @param referredByName Specifies the name of the person who referred this contact to the user
* @param children Contains a list of names of children.
*/
constructor(spouseName, personalHomePage, language, notes, hobbies, location, instantMessagingAddress, organizationalIdNumber, customerId, governmentIdNumber, freeBusyLocation, account, html, businessHomePage, ftpSite, computerNetworkName, gender, referredByName, children) {
this.spouseName = spouseName;
this.personalHomePage = personalHomePage;
this.language = language;
this.notes = notes;
this.hobbies = hobbies;
this.location = location;
this.instantMessagingAddress = instantMessagingAddress;
this.organizationalIdNumber = organizationalIdNumber;
this.customerId = customerId;
this.governmentIdNumber = governmentIdNumber;
this.freeBusyLocation = freeBusyLocation;
this.account = account;
this.html = html;
this.businessHomePage = businessHomePage;
this.ftpSite = ftpSite;
this.computerNetworkName = computerNetworkName;
this.gender = gender;
this.referredByName = referredByName;
this.children = children;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return MapiContactPersonalInfoPropertySetDto.attributeTypeMap;
}
}
exports.MapiContactPersonalInfoPropertySetDto = MapiContactPersonalInfoPropertySetDto;
/**
* Attribute type map
*/
MapiContactPersonalInfoPropertySetDto.attributeTypeMap = [
{
name: "spouseName",
baseName: "spouseName",
type: "string",
},
{
name: "personalHomePage",
baseName: "personalHomePage",
type: "string",
},
{
name: "language",
baseName: "language",
type: "string",
},
{
name: "notes",
baseName: "notes",
type: "string",
},
{
name: "hobbies",
baseName: "hobbies",
type: "string",
},
{
name: "location",
baseName: "location",
type: "string",
},
{
name: "instantMessagingAddress",
baseName: "instantMessagingAddress",
type: "string",
},
{
name: "organizationalIdNumber",
baseName: "organizationalIdNumber",
type: "string",
},
{
name: "customerId",
baseName: "customerId",
type: "string",
},
{
name: "governmentIdNumber",
baseName: "governmentIdNumber",
type: "string",
},
{
name: "freeBusyLocation",
baseName: "freeBusyLocation",
type: "string",
},
{
name: "account",
baseName: "account",
type: "string",
},
{
name: "html",
baseName: "html",
type: "string",
},
{
name: "businessHomePage",
baseName: "businessHomePage",
type: "string",
},
{
name: "ftpSite",
baseName: "ftpSite",
type: "string",
},
{
name: "computerNetworkName",
baseName: "computerNetworkName",
type: "string",
},
{
name: "gender",
baseName: "gender",
type: "string",
},
{
name: "referredByName",
baseName: "referredByName",
type: "string",
},
{
name: "children",
baseName: "children",
type: "Array<string>",
}
];
/**
* MapiContactPersonalInfoPropertySetDto model builder
*/
class MapiContactPersonalInfoPropertySetDtoBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* Specifies the name of the contact's spouse/partner
*/
spouseName(spouseName) {
this.model.spouseName = spouseName;
return this;
}
/**
* Specifies the contact's personal web page URL
*/
personalHomePage(personalHomePage) {
this.model.personalHomePage = personalHomePage;
return this;
}
/**
* Specifies the language that the contact uses
*/
language(language) {
this.model.language = language;
return this;
}
/**
* Specifies the additional notes
*/
notes(notes) {
this.model.notes = notes;
return this;
}
/**
* Specifies the hobbies of the contact
*/
hobbies(hobbies) {
this.model.hobbies = hobbies;
return this;
}
/**
* Specifies the location of the contact
*/
location(location) {
this.model.location = location;
return this;
}
/**
* Specifies the contact's instant messaging address
*/
instantMessagingAddress(instantMessagingAddress) {
this.model.instantMessagingAddress = instantMessagingAddress;
return this;
}
/**
* Specifies an organizational ID number for the contact
*/
organizationalIdNumber(organizationalIdNumber) {
this.model.organizationalIdNumber = organizationalIdNumber;
return this;
}
/**
* Specifies the contact's customer ID number
*/
customerId(customerId) {
this.model.customerId = customerId;
return this;
}
/**
* Specifies the contact's government ID number
*/
governmentIdNumber(governmentIdNumber) {
this.model.governmentIdNumber = governmentIdNumber;
return this;
}
/**
* Specifies a URL path from which a client can retrieve free/busy information for the contact as an iCal file
*/
freeBusyLocation(freeBusyLocation) {
this.model.freeBusyLocation = freeBusyLocation;
return this;
}
/**
* Specifies the account name of the contact
*/
account(account) {
this.model.account = account;
return this;
}
/**
* Specifies the contact's business web page URL
*/
html(html) {
this.model.html = html;
return this;
}
/**
* Specifies the contact's business web page URL
*/
businessHomePage(businessHomePage) {
this.model.businessHomePage = businessHomePage;
return this;
}
/**
* Specifies the contact's File Transfer Protocol (FTP) URL
*/
ftpSite(ftpSite) {
this.model.ftpSite = ftpSite;
return this;
}
/**
* Specifies the name of the network to which the contact's computer is connected
*/
computerNetworkName(computerNetworkName) {
this.model.computerNetworkName = computerNetworkName;
return this;
}
/**
* Gender of the contact. Enum, available values: Unspecified, Female, Male
*/
gender(gender) {
this.model.gender = gender;
return this;
}
/**
* Specifies the name of the person who referred this contact to the user
*/
referredByName(referredByName) {
this.model.referredByName = referredByName;
return this;
}
/**
* Contains a list of names of children.
*/
children(children) {
this.model.children = children;
return this;
}
}
exports.MapiContactPersonalInfoPropertySetDtoBuilder = MapiContactPersonalInfoPropertySetDtoBuilder;
//# sourceMappingURL=mapi-contact-personal-info-property-set-dto.js.map