using FObjBase; using System; using System.Collections.Generic; using System.ComponentModel; namespace FLY.OBJComponents.IService { public interface IBulkDbSQLiteService : INotifyPropertyChanged { /// /// 最后一条数据Id /// long LastId { get; } /// /// 获取纵向趋势图 /// /// /// /// void GetTrend( Pack_GetTrendRequest request, AsyncCBHandler asyncDelegate, object asyncContext); } public class Pack_GetTrendRequest { /// /// 最后1幅数据ID, 当-1, 从数据库最后获取 /// public long Id; /// /// 长度 /// public int Count; /// /// 间隔, 只获取 Id % Interval == 0 的数据 /// public int Interval; /// /// 按时间查找数据 /// public bool IsSearchByTime; /// /// 按时间查找数据, 获取的数据对应的时间都比Time小 /// public DateTime Time; } public class Pack_GetTrendReponse { public Pack_GetTrendRequest Request; /// /// 数据是从尾向前排的 /// public List Values; } }