    ﻿import { Zondy } from '../../../base'
    import CThemeInfo from './CThemeInfo'
    import { defaultValue } from '../../../util'

    /**
     * 分段专题图信息对象构造函数
     * @class module:专题图服务.CRangeThemeInfo
     * @classdesc 分段专题图信息对象构造函数
     * @description Zondy.Object.Theme.CRangeThemeInfo
     * @extends CThemeInfo
     * @param {Object} options 属性键值对
     * @param {String} [StartValue = ""] 开始值
     * @param {String} [EndValue = ""] 结束值
     */
    class CRangeThemeInfo extends CThemeInfo {
      constructor(startValue, endValue, options) {
        options = defaultValue(options, {})
        super(options)
        /**
         * @private
         * @member Zondy.Object.Theme.CRangeThemeInfo.prototype.StartValue
         * @type {String}
         * @description 开始值
         * @default ""
         */
        this.StartValue = startValue !== undefined ? startValue : ''
        /**
         * @private
         * @member Zondy.Object.Theme.CRangeThemeInfo.prototype.EndValue
         * @type {String}
         * @description 结束值
         * @default ""
         */
        this.EndValue = endValue !== undefined ? endValue : ''
      }
    }
    export default CRangeThemeInfo
    Zondy.Object.Theme.CRangeThemeInfo = CRangeThemeInfo