mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
30 lines
549 B
C#
30 lines
549 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Nibriboard.Client
|
|
{
|
|
public class ClientSettings
|
|
{
|
|
[JsonIgnore]
|
|
public bool SecureWebsocket = false;
|
|
[JsonIgnore]
|
|
public int WebsocketPort;
|
|
[JsonIgnore]
|
|
public string WebsocketHost = "localhost";
|
|
[JsonIgnore]
|
|
public string WebsocketPath;
|
|
|
|
public string WebsocketUri {
|
|
get {
|
|
return (SecureWebsocket ? "wss" : "ws") + $"://{WebsocketHost}:{WebsocketPort}{WebsocketPath}";
|
|
}
|
|
}
|
|
|
|
public string WebsocketProtocol = "RippleLink";
|
|
|
|
public ClientSettings()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|