WitByteDataEvent.cs 623 B

1234567891011121314151617181920212223242526
  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 UnityEngine.Events;
  10. namespace Meta.WitAi.Events
  11. {
  12. [Serializable]
  13. public class WitByteDataEvent : UnityEvent<byte[], int, int> { }
  14. public interface IWitByteDataReadyHandler
  15. {
  16. void OnWitDataReady(byte[] data, int offset, int length);
  17. }
  18. public interface IWitByteDataSentHandler
  19. {
  20. void OnWitDataSent(byte[] data, int offset, int length);
  21. }
  22. }