VoiceSession.cs 745 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Meta Platforms, Inc. and affiliates.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the license found in the
  6. * LICENSE file in the root directory of this source tree.
  7. */
  8. using System;
  9. using Meta.WitAi.Json;
  10. namespace Meta.WitAi.Data
  11. {
  12. [Serializable]
  13. public class VoiceSession
  14. {
  15. /// <summary>
  16. /// Voice service being used
  17. /// </summary>
  18. public VoiceService service;
  19. /// <summary>
  20. /// Voice service response data
  21. /// </summary>
  22. public WitResponseNode response;
  23. /// <summary>
  24. /// Session response data is valid & can be deactivated if true
  25. /// </summary>
  26. public bool validResponse = false;
  27. }
  28. }