This commit is contained in:
Ivan Hörler 2018-07-23 20:59:59 +02:00
parent cff5a09e01
commit 8cc003cc03
5 changed files with 1 additions and 142 deletions

View File

@ -1,27 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;
namespace EHEC_Server
{
public class JsonModel
{
public IList<JsonNodeModel> Node { get; set; } = new List<JsonNodeModel>();
public IList<JsonEdgesModel> Edge { get; set; } = new List<JsonEdgesModel>();
}
public class JsonNodeModel
{
public int Id { get; set; }
public string Nodetype { get; set; }
public string Name { get; set; }
}
public class JsonEdgesModel
{
public int Source { get; set; }
public int Target { get; set; }
public string EdgeType { get; set; }
}
}

View File

@ -5,7 +5,7 @@ using System.Web;
namespace EHEC_Server
{
public class Cluster
public class ClusterModel
{
public string Comment { get; set; }
public List<Node> Nodes { get; set; }

View File

@ -1,38 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EHEC_Server
{
/// <summary>
/// This clas converts the object from db model to the needs of Json
/// conversion for Clusteranalysis.
/// </summary>
public class ClusterOrigin
{
//public int Id { get; set; }
//public string Name { get; set; }
//public string Nodetype { get; set; }
//public ClusterOrigin() { }
//public List<ClusterOrigin> GetClusterOrigins()
//{
// Origin origin = new Origin();
// List<Origin> origins = new List<Origin>();
// origins = origin.GetAllOrigins();
// List<ClusterOrigin> clusterOrigins = new List<ClusterOrigin>();
// foreach (Origin element in origins)
// {
// ClusterOrigin clusterOrigin = new ClusterOrigin
// {
// Id = element.OriginId,
// Nodetype = "origin",
// Name = element.City
// };
// clusterOrigins.Add(clusterOrigin);
// };
// return clusterOrigins;
//}
}
}

View File

@ -1,38 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EHEC_Server
{
/// <summary>
/// This clas converts the object from db model to the needs of Json
/// conversion for Clusteranalysis.
/// </summary>
public class ClusterPatient
{
//public int Id { get; set; }
//public string Name { get; set; }
//public string Nodetype { get; set; }
//public ClusterPatient() { }
//public List<ClusterPatient> GetClusterPatients()
//{
// Patient patient = new Patient();
// List<Patient> patients = new List<Patient>();
// patients = patient.GetAllPatients();
// List<ClusterPatient> clusterPatients = new List<ClusterPatient>();
// foreach (Patient element in patients)
// {
// ClusterPatient clusterPatient = new ClusterPatient
// {
// Id = element.PatientId,
// Nodetype = "patient",
// Name = element.FirstName + " " + element.LastName
// };
// clusterPatients.Add(clusterPatient);
// }
// return clusterPatients;
//}
}
}

View File

@ -1,38 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EHEC_Server
{
/// <summary>
/// This clas converts the object from db model to the needs of Json
/// conversion for Clusteranalysis.
/// </summary>
public class ClusterResult
{
//public int Id { get; set; }
//public string Name { get; set; }
//public string Nodetype { get; set; }
//public ClusterResult() { }
//public List<ClusterResult> GetClusterResults()
//{
// Result result = new Result();
// List<Result> results = new List<Result>();
// results = result.GetAllResults();
// List<ClusterResult> clusterResults = new List<ClusterResult>();
// foreach (Result element in results)
// {
// ClusterResult clusterResult = new ClusterResult
// {
// Id = element.ResultId,
// Nodetype = "result",
// Name = element.Name
// };
// clusterResults.Add(clusterResult);
// };
// return clusterResults;
//}
}
}