2023-01-01 22:50:39 -05:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.IO;
|
2023-07-03 23:24:35 -04:00
|
|
|
using Luski.net.Enums;
|
|
|
|
using Luski.net.Interfaces;
|
|
|
|
using Luski.net.JsonTypes;
|
2023-07-08 09:06:13 -04:00
|
|
|
using Luski.net.Structures;
|
2023-07-03 23:24:35 -04:00
|
|
|
using Luski.net.Structures.Main;
|
|
|
|
using Luski.net.Structures.Public;
|
2023-01-01 22:50:39 -05:00
|
|
|
using WebSocketSharp;
|
|
|
|
|
|
|
|
namespace Luski.net;
|
|
|
|
|
2023-07-08 09:06:13 -04:00
|
|
|
public partial class Server
|
2023-01-01 22:50:39 -05:00
|
|
|
{
|
2023-07-03 23:24:35 -04:00
|
|
|
public ServerType ServerType { get; internal set; } = ServerType.Public;
|
2023-08-25 12:07:36 -04:00
|
|
|
public string Domain { get; set; } = default!;
|
2024-03-20 23:18:34 -04:00
|
|
|
|
|
|
|
public bool PrintServerMessages { get; set; } = false;
|
2023-07-10 14:19:03 -04:00
|
|
|
public string ApiVersion { get; } = "v1";
|
2023-07-08 09:06:13 -04:00
|
|
|
internal WebSocket? ServerOut;
|
2023-07-03 23:24:35 -04:00
|
|
|
internal string? Token = null, Error = null, gen = null;
|
2023-08-21 10:58:17 -04:00
|
|
|
public bool IsLogedIn => Token is not null;
|
2023-07-03 23:24:35 -04:00
|
|
|
internal bool CanRequest = false, login = false;
|
|
|
|
internal List<IUser> poeople = new();
|
2024-08-27 10:57:22 -04:00
|
|
|
internal List<ServerProfile> profiles = new();
|
2024-11-18 23:24:23 -05:00
|
|
|
public ConnectionStatus ConnectionStatus { get; protected set; } = ConnectionStatus.FailedToConnect;
|
2023-07-03 23:24:35 -04:00
|
|
|
}
|