This commit is contained in:
Rene Schwarz
2021-08-06 12:35:46 +02:00
parent 2240d30570
commit 4828f95ebb
59 changed files with 476 additions and 829 deletions

View File

@@ -3,16 +3,31 @@ using System.Collections.Generic;
using System.Text;
namespace Server_Dashboard {
/// <summary>
/// Dashboard Module class that holds all the information that gets displayed
/// </summary>
class DashboardModule {
//The name the user gives the module
public string ModuleName { get; set; }
//The user who created it
public string Creator { get; set; }
//All the information that the server had
public ServerInformation ServerInfo { get; set; }
//The status indicator
public string StatusIndicator { get; set; }
//The background color of the status indicator
public string StatusIndicatorBG { get; set; }
//If the server is avaibale or not
public bool ServerAvailable { get; set; }
//The Module icon the user give the server, defaults to a generic server symbol
public string ModuleIcon { get; set; }
//Creation date with System.DateTime.Now
public string CreationDate { get; set; }
/// <summary>
/// This will set the Module status indicator red or green if the server is available or not
/// </summary>
/// <param name="serverAvailable"></param>
public DashboardModule(bool serverAvailable) {
ServerAvailable = serverAvailable;
StatusIndicator = ServerAvailable ? "#20c657" : "#e53935";