Scripts/MethodJSON.cs
Станислав Хозяенок df6e2fe069 first commit
2025-04-07 10:57:03 +07:00

43 lines
1.1 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
public class Item
{
public List<string> block_names_aliases { get; set; }
public int sn { get; set; }
public DateTime time { get; set; }
public DateTime time_mo { get; set; }
public float x { get; set; }
public float x_mo { get; set; }
public float y { get; set; }
public float y_mo { get; set; }
public float z { get; set; }
public float z_mo { get; set; }
}
public class MarksTime
{
public int count_seconds { get; set; }
public string name { get; set; }
}
public class ResposeMethod
{
public List<Item> items { get; set; }
public string tag { get; set; }
public string time_begin { get; set; }
public string time_end { get; set; }
public List<MarksTime> marks_time { get; set; }
}
public class MethodJSON
{
public string error { get; set; }
public ResposeMethod respose { get; set; }
public int status { get; set; }
}