From 849f57596f4aef916235a7070100b36c4f9522fe Mon Sep 17 00:00:00 2001 From: Daniel Gatto Date: Wed, 30 Oct 2019 19:57:41 +1030 Subject: [PATCH] InAppBillingPurchase comparer to consider TransactionDateUtc --- .../InAppBillingPurchase.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Plugin.InAppBilling.Abstractions/InAppBillingPurchase.cs b/src/Plugin.InAppBilling.Abstractions/InAppBillingPurchase.cs index af9c917..e83eff8 100644 --- a/src/Plugin.InAppBilling.Abstractions/InAppBillingPurchase.cs +++ b/src/Plugin.InAppBilling.Abstractions/InAppBillingPurchase.cs @@ -75,11 +75,11 @@ public InAppBillingPurchase() (obj is InAppBillingPurchase purchase) && Equals(purchase); public bool Equals(InAppBillingPurchase other) => - (Id, ProductId, AutoRenewing, PurchaseToken, State, Payload) == - (other.Id, other.ProductId, other.AutoRenewing, other.PurchaseToken, other.State, other.Payload); + (Id, TransactionDateUtc, ProductId, AutoRenewing, PurchaseToken, State, Payload) == + (other.Id, other.TransactionDateUtc, other.ProductId, other.AutoRenewing, other.PurchaseToken, other.State, other.Payload); public override int GetHashCode() => - (Id, ProductId, AutoRenewing, PurchaseToken, State, Payload).GetHashCode(); + (Id, TransactionDateUtc, ProductId, AutoRenewing, PurchaseToken, State, Payload).GetHashCode(); /// /// Prints out product