//
//  DyteMeetingInfo.m
//  DyteMobile
//
//  Created by Rohit Bhatia on 6/24/21.
//  Copyright © 2021 Facebook. All rights reserved.
//

#import "DyteMeetingInfo.h"

@implementation DyteMeetingInfo

+ (instancetype)sharedInstance {
      static DyteMeetingInfo *sharedInstance = nil;
      static dispatch_once_t meetingInfoOnceToken;
      dispatch_once(&meetingInfoOnceToken, ^{
          sharedInstance = [[self alloc] init];
      });
      return sharedInstance;
}

- (instancetype)init {
    self = [super init];
    return self;
}
//
//@property(nonatomic, assign, readonly) NSString *newRoomMessage;
//@property(nonatomic, assign, readonly) NSString *newMessage;
//@property(nonatomic, assign) NSMutableArray* roomMessages;
//@property(nonatomic, assign) NSMutableArray* messages;

-(void)setAllValueNil {
    _meetingJoined = nil;
    _meetingConnected = nil;
    _activeSpeaker = nil;
    _roomMessage = nil;
    _message = nil;
    _localMediaConnected = nil;
}

- (void)setMeetingJoined:(BOOL)value {
    _meetingJoined = value;
    NSLog(@"Meeting Joined: %@", _meetingJoined ? @"YES" : @"NO");
    
}
- (void)setMeetingConnected:(BOOL)value {
    _meetingConnected = value;
}

- (void)setActiveSpeaker:(NSString*)id {
    _activeSpeaker = id;
}

- (void)setLocalMediaConnected:(BOOL)localMediaConnected {
  _localMediaConnected = localMediaConnected;
}

- (void)setMessage:(NSObject*)message {
    _message = message;
}

- (void)setRoomMessage:(NSObject*)roomMessage {
    _roomMessage = roomMessage;
}

@end
