49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
|
|
|
|
public static class Constants{
|
|
public static string VALIDATOR_URL = "https://validatordev.duelfi.io/";
|
|
public static string API_URL = "https://api.duelfi.io/v1/";
|
|
|
|
}
|
|
|
|
public static class GameData{
|
|
public static string id= "";
|
|
public static string ownerId="";
|
|
public static string joinerId="";
|
|
public static string address ="";
|
|
public static string user_id = "";
|
|
public static string pubkey = "";
|
|
public static int wager = 0;
|
|
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class UserProfile
|
|
{
|
|
public string id; // Unique identifier for the user
|
|
public string username; // Username of the user
|
|
public string bio; // Bio of the user
|
|
public string x_profile_url; // URL of the user's profile picture
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class Leaderboard
|
|
{
|
|
public string master;
|
|
public string client;
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class Submission
|
|
{
|
|
public string gameAddress;
|
|
public string game_id;
|
|
public string playerType;
|
|
public string username;
|
|
public string winner;
|
|
public int score;
|
|
public Leaderboard leaderboard;
|
|
public string publicKey;
|
|
public int wager;
|
|
}
|