Genesis Game Client Project Setup
This commit is contained in:
16
Assets/02_Scripts/Network/DTOs/ApiResponse.cs
Normal file
16
Assets/02_Scripts/Network/DTOs/ApiResponse.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Newtonsoft.Json;
|
||||
using UnityEngine;
|
||||
|
||||
[System.Serializable]
|
||||
public class ApiResponse<T>
|
||||
{
|
||||
[JsonProperty("data")]
|
||||
public T data;
|
||||
|
||||
[JsonProperty("count")]
|
||||
public int count;
|
||||
|
||||
[JsonProperty("message")]
|
||||
public string message;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user