//
//  © 2019-2020 Qualcomm Technologies, Inc. and/or its subsidiaries. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol IoTTransport;
@class IoTServiceDiscoveryResult;

@protocol IoTIotivityService

- (IoTServiceDiscoveryResult *)serviceInfo;
- (instancetype)initWithServiceInfo:(IoTServiceDiscoveryResult *)serviceInfo
                     stateSyncQueue:(dispatch_queue_t)syncQueue
                          transport:(id<IoTTransport>)transport;

- (void)setDiscoveryParams:(NSSet<NSString *> *)resourcetypes uriPrefix:(NSString *)uriPrefix;
- (void)discoverWithCompletion:(void(^)(BOOL))completion
               completionQueue:(dispatch_queue_t)completionQueue;
- (void)startObserving;
- (void)prepareForDisposal;

@end
