@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
138 lines (134 loc) • 6.75 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.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapiPidNamePropertyDescriptorBuilder = exports.MapiPidNamePropertyDescriptor = void 0;
// @ts-ignore
const model = __importStar(require("./index"));
/**
* Property identified by a string name along with a property set
*/
class MapiPidNamePropertyDescriptor extends model.MapiPidPropertyDescriptor {
/**
* Property identified by a string name along with a property set
* @param canonicalName The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity.
* @param dataType [MS-OXCDATA]: Data Structures. Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object
* @param multipleValuesDataType Indicates if data type contains of multiple values
* @param name A string that identifies the property
* @param propertySet A GUID that identifies a group of properties with a similar purpose.
*/
constructor(
//,
canonicalName, dataType, multipleValuesDataType, name, propertySet) {
super();
this.canonicalName = canonicalName;
this.dataType = dataType;
this.multipleValuesDataType = multipleValuesDataType;
this.name = name;
this.propertySet = propertySet;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return super.getAttributeTypeMap().concat(MapiPidNamePropertyDescriptor.attributeTypeMap);
}
}
exports.MapiPidNamePropertyDescriptor = MapiPidNamePropertyDescriptor;
/**
* Attribute type map
*/
MapiPidNamePropertyDescriptor.attributeTypeMap = [
{
name: "propertySet",
baseName: "propertySet",
type: "string",
}
];
/**
* MapiPidNamePropertyDescriptor model builder
*/
class MapiPidNamePropertyDescriptorBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* The name used to refer to the property in the documentation. The prefix of the canonical name identifies the basic characteristics of a property to the implementer. The canonical naming structure uses three categories that are denoted by the following prefixes to the canonical property name: * PidLid prefix: Properties identified by an unsigned 32-bit quantity along with a property set. * PidName prefix: Properties identified by a string name along with a property set. * PidTag prefix: Properties identified by an unsigned 16-bit quantity.
*/
canonicalName(canonicalName) {
this.model.canonicalName = canonicalName;
return this;
}
/**
* [MS-OXCDATA]: Data Structures. Enum, available values: Unspecified, Null, Integer16, Integer32, Floating32, Floating64, Currency, FloatingTime, ErrorCode, Boolean, Integer64, String, String8, Time, Guid, ServerId, Restriction, RuleAction, Binary, MultipleInteger16, MultipleInteger32, MultipleFloating32, MultipleFloating64, MultipleCurrency, MultipleFloatingTime, MultipleBoolean, MultipleInteger64, MultipleString, MultipleString8, MultipleTime, MultipleGuid, MultipleBinary, Object
*/
dataType(dataType) {
this.model.dataType = dataType;
return this;
}
/**
* Indicates if data type contains of multiple values
*/
multipleValuesDataType(multipleValuesDataType) {
this.model.multipleValuesDataType = multipleValuesDataType;
return this;
}
/**
* A string that identifies the property
*/
name(name) {
this.model.name = name;
return this;
}
/**
* A GUID that identifies a group of properties with a similar purpose.
*/
propertySet(propertySet) {
this.model.propertySet = propertySet;
return this;
}
}
exports.MapiPidNamePropertyDescriptorBuilder = MapiPidNamePropertyDescriptorBuilder;
//# sourceMappingURL=mapi-pid-name-property-descriptor.js.map