public Dictionary <string, object> ToDictionary() { Dictionary <string, object> result = new Dictionary <string, object>(); result["gameTime"] = gameTime.ToDictionary(); result["unitSelling"] = unitSelling; result["price"] = price; result["cost"] = cost; result["income"] = income; result["profit"] = profit; result["fan"] = fan; return(result); }
public Dictionary <string, object> ToDictionary() { Dictionary <string, object> result = new Dictionary <string, object>(); result["workID"] = workID; result["contractType"] = contractType.GetHashCode(); result["scaleType"] = scaleType.GetHashCode(); Dictionary <string, object> result_genreDatas = new Dictionary <string, object>(); for (int i = 0; i < genreDatas.Count; i++) { result_genreDatas.Add(i + "", genreDatas[i].ToDictionary()); } result["genreDatas"] = result_genreDatas; Dictionary <string, object> result_themeDatas = new Dictionary <string, object>(); for (int i = 0; i < themeDatas.Count; i++) { result_themeDatas.Add(i + "", themeDatas[i].ToDictionary()); } result["themeDatas"] = result_themeDatas; Dictionary <string, object> result_cameraDatas = new Dictionary <string, object>(); for (int i = 0; i < cameraDatas.Count; i++) { result_cameraDatas.Add(i + "", cameraDatas[i].ToDictionary()); } result["cameraDatas"] = result_cameraDatas; Dictionary <string, object> result_graphicDatas = new Dictionary <string, object>(); for (int i = 0; i < graphicDatas.Count; i++) { result_graphicDatas.Add(i + "", graphicDatas[i].ToDictionary()); } result["graphicDatas"] = result_graphicDatas; Dictionary <string, object> result_platformDatas = new Dictionary <string, object>(); for (int i = 0; i < platformDatas.Count; i++) { result_platformDatas.Add(i + "", platformDatas[i].ToDictionary()); } result["platformDatas"] = result_platformDatas; Dictionary <string, object> result_featureDatas = new Dictionary <string, object>(); for (int i = 0; i < featureDatas.Count; i++) { result_featureDatas.Add(i + "", featureDatas[i].ToDictionary()); } result["featureDatas"] = result_featureDatas; result["dueDate"] = dueDate.ToDictionary(); result["reward"] = reward.ToDictionary(); result["fine"] = fine.ToDictionary(); Dictionary <string, object> result_employee_Worker = new Dictionary <string, object>(); for (int i = 0; i < employee_Worker.Count; i++) { result_employee_Worker.Add(i + "", employee_Worker[i]); } result["employee_Worker"] = result_employee_Worker; result["processCurrent"] = processCurrent; result["processMax"] = processMax; result["contractStatus"] = contractStatus.GetHashCode(); return(result); }
public Dictionary <string, object> ToDictionary() { Dictionary <string, object> result = new Dictionary <string, object>(); result["name"] = name; result["rank"] = rank; result["bug"] = bug; result["hype"] = hype; result["fan"] = fan; result["cost"] = cost; result["price"] = price; result["income"] = income; result["profit"] = profit; result["categorie"] = categorie.GetHashCode(); Dictionary <string, object> result_employee_Worker = new Dictionary <string, object>(); for (int i = 0; i < employee_Worker.Count; i++) { result_employee_Worker.Add(i + "", employee_Worker[i]); } result["employee_Worker"] = result_employee_Worker; Dictionary <string, object> result_genreDatas = new Dictionary <string, object>(); for (int i = 0; i < genreDatas.Count; i++) { result_genreDatas.Add(i + "", genreDatas[i].ToDictionary()); } Dictionary <string, object> result_themeDatas = new Dictionary <string, object>(); for (int i = 0; i < themeDatas.Count; i++) { result_themeDatas.Add(i + "", themeDatas[i].ToDictionary()); } Dictionary <string, object> result_cameraDatas = new Dictionary <string, object>(); for (int i = 0; i < cameraDatas.Count; i++) { result_cameraDatas.Add(i + "", cameraDatas[i].ToDictionary()); } Dictionary <string, object> result_graphicDatas = new Dictionary <string, object>(); for (int i = 0; i < graphicDatas.Count; i++) { result_graphicDatas.Add(i + "", graphicDatas[i].ToDictionary()); } Dictionary <string, object> result_platformDatas = new Dictionary <string, object>(); for (int i = 0; i < platformDatas.Count; i++) { result_platformDatas.Add(i + "", platformDatas[i].ToDictionary()); } Dictionary <string, object> result_featureDatas = new Dictionary <string, object>(); for (int i = 0; i < featureDatas.Count; i++) { result_featureDatas.Add(i + "", featureDatas[i].ToDictionary()); } result["genreDatas"] = result_genreDatas; result["themeDatas"] = result_themeDatas; result["cameraDatas"] = result_cameraDatas; result["graphicDatas"] = result_graphicDatas; result["platformDatas"] = result_platformDatas; result["featureDatas"] = result_featureDatas; result["bussinessModel"] = bussinessModel.GetHashCode(); result["release"] = release.ToDictionary(); result["timeStamp"] = timeStamp.ToDictionary(); result["totalSaleReport"] = totalSaleReport.ToDictionary(); Dictionary <string, object> result_saleReports = new Dictionary <string, object>(); for (int i = 0; i < saleReports.Count; i++) { result_saleReports.Add(i + "", saleReports[i].ToDictionary()); } result["saleReports"] = result_saleReports; result["processCurrent"] = processCurrent; result["processMax"] = processMax; return(result); }