1
0

UnityServicesErrorEventArgs.cs 622 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace UnityEngine.Monetization
  3. {
  4. public class UnityServicesErrorEventArgs : EventArgs
  5. {
  6. // error is not mapped to an enum as it is not exposed to public API, can be changed later
  7. public long error { get; private set; }
  8. public string message { get; private set; }
  9. public UnityServicesErrorEventArgs(string message)
  10. {
  11. error = -1;
  12. this.message = message;
  13. }
  14. public UnityServicesErrorEventArgs(long error, string message)
  15. {
  16. this.error = error;
  17. this.message = message;
  18. }
  19. }
  20. }