@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
85 lines (81 loc) • 3.26 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.AiNameParseEmailAddressRequestBuilder = exports.AiNameParseEmailAddressRequest = void 0;
/**
* Request model for AiNameApi.parseEmailAddress operation.
*/
class AiNameParseEmailAddressRequest {
/**
* Request model for aiNameParseEmailAddress operation.
* @param emailAddress Email address to parse.
* @param language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian).
* @param location A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France.
* @param encoding A character encoding name.
* @param script A writing system code; starts with the ISO-15924 script name.
* @param style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
*/
constructor(emailAddress, language, location, encoding, script, style) {
this.emailAddress = emailAddress;
this.language = language;
this.location = location;
this.encoding = encoding;
this.script = script;
this.style = style;
}
}
exports.AiNameParseEmailAddressRequest = AiNameParseEmailAddressRequest;
class AiNameParseEmailAddressRequestBuilder {
constructor(model) {
this.model = model;
}
build() {
const tempModel = this.model;
this.model = null;
return tempModel;
}
emailAddress(emailAddress) {
this.model.emailAddress = emailAddress;
return this;
}
language(language) {
this.model.language = language;
return this;
}
location(location) {
this.model.location = location;
return this;
}
encoding(encoding) {
this.model.encoding = encoding;
return this;
}
script(script) {
this.model.script = script;
return this;
}
style(style) {
this.model.style = style;
return this;
}
}
exports.AiNameParseEmailAddressRequestBuilder = AiNameParseEmailAddressRequestBuilder;
//# sourceMappingURL=ai-name-parse-email-address-request.js.map