public static StatisticData GetModel(Patient patient, object primaryKey) { var data = GetModel <StatisticData>(primaryKey); data.database = DatabaseStatistic.Instance(patient); return(data); }
public static IList <StatisticData> GetByDate(Patient patient, long date) { IList <StatisticData> data = new List <StatisticData>(); var primaryKeys = DatabaseStatistic.Instance(patient).GetByDate(date); foreach (var primaryKey in primaryKeys) { data.Add(GetModel(patient, primaryKey)); } return(data); }
public static IList <long> Dates(Patient patient) { var dates = new List <long>(); var ticks = DatabaseStatistic.Instance(patient).Dates; foreach (long tick in ticks) { if (dates.Contains(tick) == false) { dates.Add(tick); } } return(dates); }
public static IList <object> ExercisesByDate(Patient patient, long date, bool distinct = true) { return(DatabaseStatistic.Instance(patient).ExercisesByDate(date, distinct)); }
public static IList <object> Exercises(Patient patient, bool distinct = true) { return(DatabaseStatistic.Instance(patient).Exercises(distinct)); }