public JsonReturnGamers ReturnGamerAsJson() { JsonReturnGamers single = new JsonReturnGamers(); single.Active = SingleGamer.Active; single.Comments = SingleGamer.Comments; single.DisplayName = SingleGamer.DisplayName; single.Email = SingleGamer.Email; single.GamerID = SingleGamer.GamerID; single.MainTeam = SingleGamer.MainTeam; single.PSNID = SingleGamer.PSNID; single.RealUserID = SingleGamer.RealUserID; single.XB1Gamertag = SingleGamer.XB1Gamertag; return(single); }
public List <JsonReturnGamers> ReturnGamersAsJson() { List <JsonReturnGamers> result = new List <JsonReturnGamers>(); for (int i = 0; i < _GamerList.Count; i++) { JsonReturnGamers row = new JsonReturnGamers(); row.Active = _GamerList[i].Active; row.Comments = _GamerList[i].Comments; row.DisplayName = _GamerList[i].DisplayName; row.Email = _GamerList[i].Email; row.GamerID = _GamerList[i].GamerID; row.MainTeam = _GamerList[i].MainTeam; row.PSNID = _GamerList[i].PSNID; row.RealUserID = _GamerList[i].RealUserID; row.XB1Gamertag = _GamerList[i].XB1Gamertag; result.Add(row); } return(result); }