Guest User

Untitled

a guest
Dec 10th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. #region References
  2. using System;
  3. using System.Collections.Generic;
  4. using Microsoft.Bot.Builder;
  5. using Microsoft.Bot.Builder.Dialogs;
  6. #endregion
  7.  
  8. namespace ImageProcessingBot
  9. {
  10. public class ImageProcessingBotAccessors
  11. {
  12. public ImageProcessingBotAccessors(ConversationState conversationState, UserState userState)
  13. {
  14. ConversationState = conversationState ?? throw new ArgumentNullException(nameof(ConversationState));
  15. UserState = userState ?? throw new ArgumentNullException(nameof(UserState));
  16. }
  17.  
  18. public static readonly string CommandStateName = $"{nameof(ImageProcessingBotAccessors)}.CommandState";
  19.  
  20. public static readonly string DialogStateName = $"{nameof(ImageProcessingBotAccessors)}.DialogState";
  21.  
  22. public IStatePropertyAccessor<string> CommandState { get; set; }
  23.  
  24. public IStatePropertyAccessor<DialogState> ConversationDialogState { get; set; }
  25. public ConversationState ConversationState { get; }
  26.  
  27. public UserState UserState { get; }
  28. }
  29. }
Add Comment
Please, Sign In to add comment