/// <summary> /// Initializes a new instance of the <see cref="ChooseShowDialog"/> class. /// </summary> /// <param name="recognizer">Intent recognizer.</param> /// <param name="traktTv">Trakt.tv client.</param> /// <param name="telemetry">Telemetry client.</param> public ChooseShowDialog(IRecognizer recognizer, ITraktTv traktTv, IBotTelemetry telemetry) : base(nameof(ChooseShowDialog), recognizer) { this.traktTv = traktTv; Begin(OnBeginAsync). Matches(TraktBotNLP.IntentHelp, OnHelpAsync). Matches(TraktBotNLP.IntentCancel, OnCancelAsync). Default(OnAnythingElseAsync); }
/// <summary> /// Initializes a new instance of the <see cref="RootDialog"/> class. /// </summary> /// <param name="recognizer">Intent recognizer.</param> /// <param name="traktTv">Trakt.tv client.</param> /// <param name="telemetry">Telemetry client.</param> public RootDialog(IRecognizer recognizer, ITraktTv traktTv, IBotTelemetry telemetry) : base(nameof(RootDialog), recognizer) { this.traktTv = traktTv; Matches(TraktBotNLP.IntentHi, OnHiAsync). Matches(TraktBotNLP.IntentThx, OnThxAsync). Matches(TraktBotNLP.IntentBye, OnByeAsync). Matches(TraktBotNLP.IntentTrending, OnTrendingAsync). Matches(TraktBotNLP.IntentPopular, OnPopularAsync). Matches(TraktBotNLP.IntentRecommendations, OnRecommendations()). Matches(TraktBotNLP.IntentSearch, OnSearch()). Matches(TraktBotNLP.IntentStatus, OnStatus()). Matches(TraktBotNLP.IntentWatched, OnWatched()). Matches(TraktBotNLP.IntentHelp, OnHelpAsync). Matches(TraktBotNLP.IntentCancel, OnCancelAsync). Matches(TraktBotNLP.IntentLogout, OnLogoutAsync). Default(OnUnknownAsync); }