Common Custom data source
Common_CustomDataSource_CSharp\TiledMapDataSource_CSharp\TileCacheInfo.cs
// Copyright 2010 ESRI
// 
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
// 
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
// 
// See the use restrictions.
// 


using System;
using System.Collections.Generic;
using System.Text;
using ESRI.ArcGIS.ADF.Web.DataSources;
using ESRI.ArcGIS.ADF.Web.Geometry;
namespace TiledMapDataSource_CSharp
{
    public class TileCacheInfo : ESRI.ArcGIS.ADF.Web.DataSources.TileCacheInfo
    {

        private System.Collections.Generic.Dictionary<int, int> _levels;
        private System.Collections.Generic.Dictionary<string, string> _layers;
        private string _url;
        private string _cacheTileFormat;

        public TileCacheInfo(int width, int height, int dpi, Point origin, LodInfo[] lodInfos)
            : base(width, height, dpi, origin, lodInfos)
        { }
        public TileCacheInfo(ESRI.ArcGIS.ADF.Web.DataSources.TileCacheInfo tci)
            : base(tci.Width, tci.Height, tci.Dpi, tci.Origin, tci.LodInfos)
        {
            _levels = new Dictionary<int, int>();
            _layers = new Dictionary<string, string>();
        }

        public System.Collections.Generic.Dictionary<int, int> Levels
        {
            get
            {
                return _levels;
            }
            set { _levels = value; }
        }

        public System.Collections.Generic.Dictionary<string, string> Layers
        {
            get
            {
                return _layers;
            }
            set { _layers = value; }
        }

        public string Url
        {
            get { return _url; }
            set { _url = value; }
        }

        public string CacheTileFormat
        {
            get { return _cacheTileFormat; }
            set { _cacheTileFormat = value; }
        }
    }
}