using Newtonsoft.Json; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace DidabuCloud.Unity.Core.NetWorking { public class DidabuHttpResponse where T:new() { public DidabuHttpResponse() { Data = new T(); } [JsonProperty("code")] public int Code; [JsonProperty("isSuccessful")] public bool IsSuccessful; [JsonProperty("message")] public string Message; [JsonProperty("timestamp")] public long Timestamp; [JsonProperty("data")] public T Data; public long DeltaTimestamp { get { var localTimestamp = (DateTime.Now.Ticks - 621355968000000000) / 10000; return Timestamp - localTimestamp; } } } }