87 lines
1.7 KiB
C#
87 lines
1.7 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Simulator.Data
|
|
{
|
|
[Serializable]
|
|
public class totaljson
|
|
{
|
|
public int status;
|
|
public string code;
|
|
public logicData data;
|
|
}
|
|
|
|
[Serializable]
|
|
public class logicData
|
|
{
|
|
public int id;
|
|
public logicDetailData data;
|
|
}
|
|
|
|
[Serializable]
|
|
public class logicDetailData
|
|
{
|
|
public string name;
|
|
public infrastructure infrastructure;
|
|
public production_system production_system;
|
|
}
|
|
|
|
[Serializable]
|
|
public class infrastructure
|
|
{
|
|
public List<QueueDataClass> queues;
|
|
}
|
|
|
|
[Serializable]
|
|
public class production_system
|
|
{
|
|
public List<SourceDataClass> sources;
|
|
public List<SinkDataClass> sinks;
|
|
public List<ASRSDataClass> asrs;
|
|
}
|
|
|
|
[Serializable]
|
|
public class physical
|
|
{
|
|
public position position = new position();
|
|
public dimensions dimensions = new dimensions();
|
|
public float orientation;
|
|
public access_points access_points = new access_points();
|
|
}
|
|
|
|
[Serializable]
|
|
public class position
|
|
{
|
|
public float x = 0.0f;
|
|
public float y = 0.0f;
|
|
public float z = 0.0f;
|
|
}
|
|
|
|
[Serializable]
|
|
public class dimensions
|
|
{
|
|
public float width = 0.0f;
|
|
public float height = 0.0f;
|
|
public float depth = 0.0f;
|
|
}
|
|
|
|
[Serializable]
|
|
public class access_points
|
|
{
|
|
public input input;
|
|
public output output;
|
|
}
|
|
|
|
[Serializable]
|
|
public class input
|
|
{
|
|
public position local_position = new position();
|
|
}
|
|
|
|
[Serializable]
|
|
public class output
|
|
{
|
|
public position local_position = new position();
|
|
}
|
|
} |