public StatisticsGroup GetData() { StatisticsGroup result = new StatisticsGroup(this); result.Server = Server; result.Url = Url; result.Other = OtherStatus.GetData(); result._1xx = Status_1xx.GetData(); result._2xx = Status_2xx.GetData(); result._3xx = Status_3xx.GetData(); result._4xx = Status_4xx.GetData(); result._5xx = Status_5xx.GetData(); result.All = All.GetData(); return(result); }
public StatisticsData GetData() { StatisticsData result = mData; result.Server = Server; result.Url = Url; result.Other = OtherStatus.GetData(); result._1xx = Status_1xx.GetData(); result._2xx = Status_2xx.GetData(); result._3xx = Status_3xx.GetData(); result._4xx = Status_4xx.GetData(); result._5xx = Status_5xx.GetData(); result.All = All.GetData(); for (int i = 0; i < Times.Count; i++) { result.Times[i] = Times[i].GetData(); } return(result); }
public StatisticsGroup GetData() { StatisticsGroup result = new StatisticsGroup(); result.Url = Name; result.Items.Add(OtherStatus.GetData()); result.Items.Add(Status_1xx.GetData()); result.Items.Add(Status_2xx.GetData()); result.Items.Add(Status_3xx.GetData()); result.Items.Add(Status_4xx.GetData()); result.Items.Add(Status_5xx.GetData()); result.Items.Add(All.GetData()); foreach (var item in CodeStatistics) { if (item.Count > 0) { result.Items.Add(item.GetData()); } } return(result); }