70 lines
1.7 KiB
C#
70 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EonaCat.Connections.Client
|
|
{
|
|
// Root myDeserializedClass = JsonConvert.DeserializeObject<List<Root>>(myJsonResponse);
|
|
public class Contact
|
|
{
|
|
public string email { get; set; }
|
|
public string phone { get; set; }
|
|
}
|
|
|
|
public class Department
|
|
{
|
|
public string id { get; set; }
|
|
public string name { get; set; }
|
|
public Manager manager { get; set; }
|
|
}
|
|
|
|
public class Details
|
|
{
|
|
public int hoursSpent { get; set; }
|
|
public List<string> technologiesUsed { get; set; }
|
|
public string completionDate { get; set; }
|
|
public string expectedCompletion { get; set; }
|
|
}
|
|
|
|
public class Employee
|
|
{
|
|
public string id { get; set; }
|
|
public string name { get; set; }
|
|
public string position { get; set; }
|
|
public Department department { get; set; }
|
|
public List<Project> projects { get; set; }
|
|
}
|
|
|
|
public class Manager
|
|
{
|
|
public string id { get; set; }
|
|
public string name { get; set; }
|
|
public Contact contact { get; set; }
|
|
}
|
|
|
|
public class Project
|
|
{
|
|
public string projectId { get; set; }
|
|
public string projectName { get; set; }
|
|
public string startDate { get; set; }
|
|
public List<Task> tasks { get; set; }
|
|
}
|
|
|
|
public class Root
|
|
{
|
|
public Employee employee { get; set; }
|
|
}
|
|
|
|
public class Task
|
|
{
|
|
public string taskId { get; set; }
|
|
public string title { get; set; }
|
|
public string status { get; set; }
|
|
public Details details { get; set; }
|
|
}
|
|
|
|
|
|
}
|