//
//  DyteDelegateHandler.m
//  DyteSdk
//
//  Created by Rohit Bhatia on 7/15/21.
//

#import "DyteDelegateHandler.h"

#if __has_include("DyteMeetingView+Private.h")
#import "DyteMeetingView+Private.h"
#endif

@implementation DyteDelegateHandler

- (void)call:(id _Nullable)data andSelector:(SEL)selector {
    #if __has_include("DyteMeetingView+Private.h")
        DyteMeetingView *view = [DyteMeetingView getView];
        if (view && [view delegate]) {
            if ([[view delegate] respondsToSelector:selector]) {
                [[view delegate] performSelector:selector withObject:data];
            }
        }
    #endif
}
@end
