Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

PurchaseFailureDescription.cs 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. namespace UnityEngine.Purchasing.Extension
  3. {
  4. /// <summary>
  5. /// Represents a failed purchase as described
  6. /// by a purchasing service.
  7. /// </summary>
  8. public class PurchaseFailureDescription
  9. {
  10. /// <summary>
  11. /// Parametrized Constructor.
  12. /// </summary>
  13. /// <param name="productId"> The id of the product. </param>
  14. /// <param name="reason"> The reason for the purchase failure </param>
  15. /// <param name="message"> The message containing details about the failed purchase. </param>
  16. public PurchaseFailureDescription(string productId, PurchaseFailureReason reason, string message)
  17. {
  18. this.productId = productId;
  19. this.reason = reason;
  20. this.message = message;
  21. }
  22. /// <summary>
  23. /// The store specific product ID.
  24. /// </summary>
  25. public string productId { get; private set; }
  26. /// <summary>
  27. /// The reason for the failure.
  28. /// </summary>
  29. public PurchaseFailureReason reason { get; private set; }
  30. /// <summary>
  31. /// The message containing details about the failed purchase.
  32. /// </summary>
  33. public string message { get; private set; }
  34. }
  35. }