oop_II-6/EHEC_Server/EHEC_Server/cluster_dependencies/ClusterConverter.cs

31 lines
765 B
C#
Raw Normal View History

2018-07-17 19:51:33 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using EHEC_Server;
namespace EHEC_Server
{
public class ClusterConverter
{
public void WriteJson()
{
2018-07-18 19:19:47 +02:00
ClusterPatient p = new ClusterPatient();
List<ClusterPatient> clusterPatientsList = new List<ClusterPatient>();
clusterPatientsList = p.GetClusterPatients();
//clusterPatient =
2018-07-17 21:05:13 +02:00
2018-07-18 19:19:47 +02:00
var json = JsonConverter.Serialize(clusterPatientsList);
2018-07-17 21:41:04 +02:00
System.IO.File.WriteAllText(@"C:\Users\novski\Desktop\cluster.json", json);
2018-07-17 19:51:33 +02:00
}
2018-07-17 21:05:13 +02:00
private List<ClusterPatient> GetCluster()
2018-07-17 19:51:33 +02:00
{
return new List<ClusterPatient>();
2018-07-17 21:05:13 +02:00
2018-07-17 19:51:33 +02:00
}
}
}