aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RhSolutions.SkuParser.Api/Models/ProductQuantity.cs')
-rw-r--r--RhSolutions.SkuParser.Api/Models/ProductQuantity.cs60
1 files changed, 30 insertions, 30 deletions
diff --git a/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs b/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs
index b7b154d..d593f8b 100644
--- a/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs
+++ b/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs
@@ -1,30 +1,30 @@
-using CsvHelper.Configuration.Attributes;
-
-namespace RhSolutions.SkuParser.Models;
-
-public class ProductQuantity
-{
- [Index(0)]
- public required Product Product { get; set; }
- [Index(1)]
- public required double Quantity { get; set; }
-
- public override bool Equals(object? obj)
- {
- if (obj == null || GetType() != obj.GetType())
- {
- return false;
- }
- ProductQuantity other = (ProductQuantity)obj;
- return Product == other.Product &&
- Quantity == other.Quantity;
- }
-
- public override int GetHashCode()
- {
- HashCode hash = new();
- hash.Add(Product);
- hash.Add(Quantity);
- return hash.ToHashCode();
- }
-}
+using CsvHelper.Configuration.Attributes;
+
+namespace RhSolutions.SkuParser.Models;
+
+public class ProductQuantity
+{
+ [Index(0)]
+ public required Product Product { get; set; }
+ [Index(1)]
+ public required double Quantity { get; set; }
+
+ public override bool Equals(object? obj)
+ {
+ if (obj == null || GetType() != obj.GetType())
+ {
+ return false;
+ }
+ ProductQuantity other = (ProductQuantity)obj;
+ return Product == other.Product &&
+ Quantity == other.Quantity;
+ }
+
+ public override int GetHashCode()
+ {
+ HashCode hash = new();
+ hash.Add(Product);
+ hash.Add(Quantity);
+ return hash.ToHashCode();
+ }
+}