public string GetAllPlayerData(string deviceId) { var data = GenericData.GetAllPlayerData(deviceId); StringBuilder sb = new StringBuilder(); foreach (var d in data) { sb.Append(d.deviceId).Append("|").Append(d.key).Append("|").AppendLine(d.value); } return(sb.ToString()); }