1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using CB.Entity;
- namespace CB.Interface
- {
- /// <summary>
- /// 走势图项接口
- /// </summary>
- /// <typeparam name="TEntity">彩种开奖数据</typeparam>
- /// <typeparam name="T">项对应的值或项的索引号</typeparam>
- public interface IChartItem<TEntity> where TEntity : LotteryOpenCode
- {
- /// <summary>
- /// 初始化项
- /// </summary>
- /// <param name="fomartString">fomart格式</param>
- /// <param name="chartItemConfig">项配置信息</param>
- /// <param name="entity">开奖数据</param>
- void Init(ChartCssConfigInfo cssConfig, TrendChartItemInfo itemConfig);
- /// <summary>
- /// 遗漏相关数据初使化
- /// </summary>
- /// <param name="TrendChartCofig">上期遗漏数据</param>
- /// <param name="i">对应计算项</param>
- void MissDataInit(TrendChartData TrendChartCofig, int i);
- /// <summary>
- /// 字符串返回遗漏数据(逗号分隔数组)
- /// </summary>
- /// <param name="missDataType">遗漏数据类型</param>
- /// <returns></returns>
- string GetMissData(MissDataType missDataType);
- /// <summary>
- /// 根据彩种开奖数据计算当前项的值(可以是配置项的数组索引号)
- /// </summary>
- /// <param name="entity"></param>
- /// <returns></returns>
- bool SetItemValue(TEntity entity);
- bool SetItemValue(TEntity entity, TEntity nextentity);
- /// <summary>
- /// 返回格式化字符串
- /// </summary>
- /// <param name="fomart">Fomart格式</param>
- /// <param name="cssConfig">CSS配置</param>
- /// <returns></returns>
- string GetFomartString(string fomart, ChartCssConfigInfo cssConfig = null);
- }
- }
|