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