public TwitchBotViewModel(ITwitchAuthentication auth, ITwitchConnection twitchConnection) : base(auth, twitchConnection, AuthenticationType.TwitchBot, new PackIconMaterial { Kind = PackIconMaterialKind.Robot }, "Bot Account", "Twitch Bot Account Settings", new TwitchBotView()) { }
public TwitchStreamerViewModel(ITwitchAuthentication auth, ITwitchConnection twitchConnection) : base(auth, twitchConnection, AuthenticationType.TwitchStreamer, new PackIconOcticons { Kind = PackIconOcticonsKind.DeviceCameraVideo }, "Streamer Account", "Twitch Stream Account Settings", new TwitchStreamerView()) { }
protected TwitchAccountViewModel(ITwitchAuthentication twitchAuthentication, ITwitchConnection twitchConnection, AuthenticationType authType, object icon, object label, object toolTip, UserControl content) : base(icon, label, toolTip, content) { AuthType = authType; _twitchAuthentication = twitchAuthentication; _twitchConnection = twitchConnection; ConnectCommand = new ActionCommand(Connect); DisconnectCommand = new ActionCommand(Disconnect); GenerateTokenCommand = new ActionCommand(GenerateToken); ManualEntryCommand = new ActionCommand(SwitchToManualEntry); if (!_twitchAuthentication.Credentials.ContainsKey(AuthType)) { _twitchAuthentication.Credentials[AuthType] = new TwitchCredentials { AuthType = authType }; } }
public AccessTokenRecorder(ITwitchAuthentication twitchAuthentication, IDataProtection dataProtection) { _twitchAuthentication = twitchAuthentication; _dataProtection = dataProtection; }