Files
EonaCat.Connections/EonaCat.Connections.Client/JsonTest.cs
T
2026-06-17 08:05:50 +02:00

73 lines
1.9 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EonaCat.Connections.Client
{
// This file is part of the EonaCat project(s) which is released under the Apache License.
// See the LICENSE file or go to https://EonaCat.com/license for full license details.
// 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; }
}
}