public static BeeTask RestoreTask(LabTask task) { BeeTask bt = new BeeTask(task); return bt; }
public static BeeTask[] GetActiveTasks() { List<BeeTask> list = null; LabDB labDb = new LabDB(); LabTask[] tasks = labDb.GetActiveTasks(); if (tasks != null && tasks.Length > 0) { list = new List<BeeTask>(); foreach (LabTask t in tasks) { BeeTask bt = new BeeTask(t); if (bt.Status == eStatus.Running) { //t.createDataSource( } list.Add(bt); } } return list.ToArray(); ; }
public BeeTask InsertTask(int appId, long expId, string groupName, DateTime startTime, long duration, LabTask.eStatus status, long coupon_ID, string issuerGuid, string essService, string taskData) { BeeTask beeTask = null; LabDB dbManager = new LabDB(); LabTask labTask = dbManager.InsertTask(appId, expId, groupName, startTime, duration, status, coupon_ID, issuerGuid, essService, taskData); beeTask = new BeeTask(labTask); return beeTask; }