using System; using System.Collections.Generic; using System.Threading.Tasks; using MQTTnet.Core.Packets; namespace MQTTnet.Core.Client { public interface IMqttClient : IApplicationMessageReceiver { bool IsConnected { get; } event EventHandler Connected; event EventHandler Disconnected; Task ConnectAsync(IMqttClientOptions options); Task DisconnectAsync(); Task> SubscribeAsync(IEnumerable topicFilters); Task UnsubscribeAsync(IEnumerable topicFilters); Task PublishAsync(IEnumerable applicationMessages); } }