/// <summary> /// Add a client to the server /// </summary> /// <param name="client">Client to be added</param> public static async void AddClient(PushClient client) { client.Send(Details, new Notification { Title = "Yes!", Message = "Subscribe succesful", Icon = "icon.png" }); Clients.Add(client); await ExportClients(Clients); }
/// <summary> /// Remove a client from the server /// </summary> /// <param name="client">Client to be removed</param> public static async void RemoveClient(PushClient client) { Clients.Remove(client); await ExportClients(Clients); }