Skip to content

Commit

Permalink
added ids to inventory class
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed May 26, 2024
1 parent 043a695 commit 45dbc51
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BrickOwlSharp.Client/Inventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@ public class Inventory

[JsonPropertyName("tier_price"), JsonConverter(typeof(TierPriceListConverter))]
public List<TierPrice> TierPrices { get; set; }

[JsonPropertyName("ids")]
public List<Reference> Ids { get; set; } = new List<Reference>();
}
}
17 changes: 17 additions & 0 deletions BrickOwlSharp.Client/Reference.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using BrickOwlSharp.Client.Json;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;

namespace BrickOwlSharp.Client
{
public class Reference
{
[JsonPropertyName("id")]
public string Id { get; set; }

[JsonPropertyName("type"), JsonConverter(typeof(IdTypesStringConverter))]
public IdType Type { get; set; }
}
}

0 comments on commit 45dbc51

Please sign in to comment.