53 lines
1.3 KiB
C#
53 lines
1.3 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using System;
|
|
using NpgsqlTypes;
|
|
|
|
// 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 MarkItem
|
|
{
|
|
public string name { get; set; }
|
|
public int time_end { get; set; }
|
|
public int time_spend { get; set; }
|
|
public int time_start { 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 List<MarkItem> marks_hronology { get; set; }
|
|
}
|
|
|
|
public class MethodJSON
|
|
{
|
|
public string error { get; set; }
|
|
public ResposeMethod respose { get; set; }
|
|
public int status { get; set; }
|
|
}
|
|
|