Mqtt.cs 430 Bytes
namespace Rcs.Domain.Settings;


public record Mqtt(
    string? Username,
    string? Password,
    List<Protocol> ? Protocols,
    string Broker = "localhost", 
    int Port = 1883, 
    string ClientId = "hah_rcs", 
    bool UseTls = false,
    bool CleanSession = true,
    int KeepAlivePeriodSeconds = 60,
    int ReconnectDelaySeconds=5
    );

public record Protocol(
    string ProtocolName,
    List<string> Topics
);