public ControllerRunResultTickRes runResultTick(ConsoleReceiveReq req) { RunResultTickRes res = service.runResultTick(req); ControllerRunResultTickRes R = new ControllerRunResultTickRes(); R.fail = res.fail; if (res.fail == 0 && res.effect != null && res.effect.Count > 4) { R.effect = string.Format("{0},{1},{2},{3},{4}", res.effect[0], res.effect[1], res.effect[2], res.effect[3], res.effect[4]); } return(R); }
public static RunResultTickRes GetRecieve2() { RunResultTickRes res = new RunResultTickRes(); res.fail = 0; res.effect = new List <string>(); res.effect.AddRange(data2[index2].Split(',')); index2++; if (index2 > data2.Count - 1) { index2 = 0; } return(res); }
public RunResultTickRes runResultTick(ConsoleReceiveReq req) { RunResultTickRes e = RecieveMockData.GetRecieve2(); return(e); }