Skip to content

Commit 51356cb

Browse files
Erik Bylundkirre-bylund
authored andcommitted
Add support for vendor listings to catalog entries
1 parent 82d792c commit 51356cb

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

Runtime/Game/Requests/CatalogRequests.cs

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
using LootLocker.LootLockerEnums;
1+
using LootLocker.LootLockerEnums;
22
using System.Collections.Generic;
3+
#if UNITY_2020_2_OR_NEWER
4+
using JetBrains.Annotations;
5+
#endif
36

47
namespace LootLocker.LootLockerEnums
58
{
@@ -76,6 +79,40 @@ public class LootLockerCatalogEntryPrice
7679
/// </summary>
7780
public string currency_id { get; set; }
7881
}
82+
83+
/// <summary>
84+
/// </summary>
85+
public class LootLockerCatalogAppleAppStoreListing
86+
{
87+
/// <summary>
88+
/// The id of the product in Apple App Store that can be purchased and then used to redeem this catalog entry
89+
/// </summary>
90+
public string product_id { get; set; }
91+
}
92+
93+
/// <summary>
94+
/// </summary>
95+
public class LootLockerCatalogGooglePlayStoreListing
96+
{
97+
/// <summary>
98+
/// The id of the product in Google Play Store that can be purchased and then used to redeem this catalog entry
99+
/// </summary>
100+
public string product_id { get; set; }
101+
}
102+
103+
/// <summary>
104+
/// </summary>
105+
public class LootLockerCatalogEntryListings
106+
{
107+
/// <summary>
108+
/// The listing information (if configured) for Apple App Store
109+
/// </summary>
110+
public LootLockerCatalogAppleAppStoreListing apple_app_store { get; set; }
111+
/// <summary>
112+
/// The listing information (if configured) for Google Play Store
113+
/// </summary>
114+
public LootLockerCatalogGooglePlayStoreListing google_play_store { get; set; }
115+
}
79116

80117
/// <summary>
81118
/// </summary>
@@ -416,6 +453,7 @@ public LootLockerInlinedCatalogEntry(LootLockerCatalogEntry entry, [CanBeNull] L
416453
entity_kind = entry.entity_kind;
417454
entity_name = entry.entity_name;
418455
entity_id = entry.entity_id;
456+
listings = entry.listings;
419457
prices = entry.prices;
420458
catalog_listing_id = entry.catalog_listing_id;
421459
purchasable = entry.purchasable;

0 commit comments

Comments
 (0)