@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
3 lines (2 loc) • 1.75 kB
JavaScript
/* COPYRIGHT Esri - https://js.arcgis.com/5.0.8/LICENSE.txt */
import{__decorate as t}from"tslib";import{JSONSupport as e}from"../../core/JSONSupport.js";import{property as r,subclass as o}from"../../core/accessorSupport/decorators.js";import{impedanceAttributeNameJsonMap as s}from"./networkEnums.js";import i from"./TravelMode.js";import{reader as p}from"../../core/accessorSupport/decorators/reader.js";import{writer as u}from"../../core/accessorSupport/decorators/writer.js";let a=class extends e{constructor(t){super(t),this.accumulateAttributes=null,this.directionsLanguage=null,this.findBestSequence=null,this.preserveFirstStop=null,this.preserveLastStop=null,this.startTimeIsUTC=null,this.timeWindowsAreUTC=null,this.travelMode=null}readAccumulateAttributes(t){return null==t?null:t.map(t=>s.fromJSON(t))}writeAccumulateAttributes(t,e,r){t?.length&&(e[r]=t.map(t=>s.toJSON(t)))}};t([r({type:[String],json:{name:"accumulateAttributeNames",write:!0}})],a.prototype,"accumulateAttributes",void 0),t([p("accumulateAttributes")],a.prototype,"readAccumulateAttributes",null),t([u("accumulateAttributes")],a.prototype,"writeAccumulateAttributes",null),t([r({type:String,json:{write:!0}})],a.prototype,"directionsLanguage",void 0),t([r({type:Boolean,json:{write:!0}})],a.prototype,"findBestSequence",void 0),t([r({type:Boolean,json:{write:!0}})],a.prototype,"preserveFirstStop",void 0),t([r({type:Boolean,json:{write:!0}})],a.prototype,"preserveLastStop",void 0),t([r({type:Boolean,json:{write:!0}})],a.prototype,"startTimeIsUTC",void 0),t([r({type:Boolean,json:{write:!0}})],a.prototype,"timeWindowsAreUTC",void 0),t([r({type:i,json:{write:!0}})],a.prototype,"travelMode",void 0),a=t([o("esri.rest.support.RouteSettings")],a);export{a as default};