public InaraPlugin(IPlayerStateHistoryRecorder playerStateRecorder, ISettingsProvider settingsProvider) : base(settingsProvider) { this.playerStateRecorder = playerStateRecorder; eventConverter = new InaraEventConverter(this.playerStateRecorder); this.settingsProvider = settingsProvider; settingsProvider.SettingsChanged += (o, e) => ReloadSettings(); ReloadSettings(); }
public InaraPlugin(IPlayerStateHistoryRecorder playerStateRecorder, ISettingsProvider settingsProvider, IRestClientFactory restClientFactory, IUserNotificationInterface notificationInterface) : base(settingsProvider) { RestClient = restClientFactory.CreateRestClient(InaraApiUrl); this.playerStateRecorder = playerStateRecorder; this.notificationInterface = notificationInterface; EventConverter = new InaraEventConverter(this.playerStateRecorder); settingsProvider.SettingsChanged += (o, e) => ReloadSettings(); ReloadSettings(); }