Add very basic but functional support for authentication and custom servers

This commit is contained in:
Alexander Horner
2022-12-06 19:37:39 +00:00
parent b66620c9da
commit 0a11d5a583
9 changed files with 662 additions and 105 deletions

View File

@@ -0,0 +1,23 @@
using System.IO;
namespace ntfysh_client
{
public class SubscribedTopic
{
public SubscribedTopic(string topicId, string serverUrl, string username, string password, StreamReader stream)
{
TopicId = topicId;
ServerUrl = serverUrl;
Username = username;
Password = password;
Stream = stream;
}
public string TopicId { get; }
public string ServerUrl { get; }
public string Username { get; }
public string Password { get; }
public StreamReader Stream { get; }
}
}