diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2025-01-15 15:20:31 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2025-01-15 15:20:31 +0300 |
commit | 5439fcfb75920974055247801adae3ceddfcb9b3 (patch) | |
tree | bc4a8c99be68a5b48ddc376d508ec416466a6512 /RhSolutions.SkuParser.Api/Models/ProductQuantity.cs | |
parent | c1b7be71c990bc8b11bb052b43551841d0af5ba9 (diff) |
Diffstat (limited to 'RhSolutions.SkuParser.Api/Models/ProductQuantity.cs')
-rw-r--r-- | RhSolutions.SkuParser.Api/Models/ProductQuantity.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs b/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs deleted file mode 100644 index d593f8b..0000000 --- a/RhSolutions.SkuParser.Api/Models/ProductQuantity.cs +++ /dev/null @@ -1,30 +0,0 @@ -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();
- }
-}
|