using MatrixRoomUtils.Authentication; using MatrixRoomUtils.Responses; namespace MatrixRoomUtils; public class RuntimeCache { public static bool WasLoaded = false; public static string AccessToken { get; set; } public static string? CurrentHomeserver { get; set; } public static AuthenticatedHomeServer CurrentHomeServer { get; set; } public static Dictionary LoginSessions { get; set; } = new(); public static Dictionary HomeserverResolutionCache { get; set; } = new(); public static Dictionary ProfileCache { get; set; } = new(); } public class UserInfo { public ProfileResponse Profile { get; set; } = new(); public LoginResponse LoginResponse { get; set; } } public class HomeServerResolutionResult { public string Result { get; set; } public DateTime ResolutionTime { get; set; } }