mirror of
https://github.com/excaliburpartners/OmniLinkBridge
synced 2025-05-06 17:13:11 +00:00
26 lines
693 B
C#
26 lines
693 B
C#
using Newtonsoft.Json;
|
|
using OmniLinkBridge.Modules;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OmniLinkBridge.MQTT
|
|
{
|
|
public class Device
|
|
{
|
|
public string unique_id { get; set; }
|
|
|
|
public string name { get; set; }
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public string state_topic { get; set; }
|
|
|
|
public string availability_topic { get; set; } = $"{Global.mqtt_prefix}/status";
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public DeviceRegistry device { get; set; } = MQTTModule.MqttDeviceRegistry;
|
|
}
|
|
}
|