User & App Information

Make sure your application has been initialized before attempting to obtain user information.

static async void Main(string[] args)
{
// Do this before using the code below
await FusionApp.RefreshApp();
// User
Console.WriteLine($"Username -> {User.Username}");
Console.WriteLine($"Expire -> {User.Expiry}");
Console.WriteLine($"User ID -> {User.UserId}");
Console.WriteLine($"Level -> {User.Level}");
Console.WriteLine($"IP -> {User.Ip}");
Console.WriteLine($"Hardware ID -> {User.HardwareId}");
// App
Console.WriteLine($"User Count -> {App.UserCount}");
Console.WriteLine($"API Count -> {App.ApiCount}");
Console.WriteLine($"Active API's -> {App.ActiveApis}");
Console.WriteLine($"App Name -> {App.AppName}");
Console.WriteLine($"App Description -> {App.AppDescription}");
}