Skip to content

Commit 6ab18de

Browse files
Erik Bylundkirre-bylund
authored andcommitted
Rename Grouping Key to Catalog Listing ID
1 parent 6590bc8 commit 6ab18de

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

Runtime/Game/Requests/CatalogRequests.cs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public class LootLockerCatalogEntry
106106
/// </summary>
107107
public string created_at { get; set; }
108108
/// <summary>
109-
/// The kind of entity that this entry is. This signifies in which lookup structure to find the details of this entry by using the grouping_key.
109+
/// The kind of entity that this entry is. This signifies in which lookup structure to find the details of this entry by using the catalog_listing_id.
110110
/// </summary>
111111
public LootLockerCatalogEntryEntityKind entity_kind { get; set; }
112112
/// <summary>
@@ -122,9 +122,9 @@ public class LootLockerCatalogEntry
122122
/// </summary>
123123
public string entity_id { get; set; }
124124
/// <summary>
125-
/// A unique id for this entry in this catalog grouping the entity and the prices. This is the key you use to look up details about the entity in the structure signified by the entity_kind.
126-
/// </summary>
127-
public string grouping_key { get; set; }
125+
/// A unique listing id for this entry in this catalog, grouping the entity and the prices. This is the key you use to look up details about the entity in the structure signified by the entity_kind.
126+
/// </summary>
127+
public string catalog_listing_id { get; set; }
128128
/// <summary>
129129
/// Whether this entry is currently purchasable
130130
/// </summary>
@@ -160,9 +160,9 @@ public class LootLockerAssetDetails
160160
/// </summary>
161161
public string thumbnail { get; set; }
162162
/// <summary>
163-
/// The grouping key for this asset detail
163+
/// The catalog listing id for this asset detail
164164
/// </summary>
165-
public string grouping_key { get; set; }
165+
public string catalog_listing_id { get; set; }
166166

167167
}
168168

@@ -187,9 +187,9 @@ public class LootLockerProgressionPointDetails
187187
/// </summary>
188188
public string id { get; set; }
189189
/// <summary>
190-
/// The grouping key for this progression point detail
190+
/// The catalog listing id for this progression point detail
191191
/// </summary>
192-
public string grouping_key { get; set; }
192+
public string catalog_listing_id { get; set; }
193193
}
194194

195195
/// <summary>
@@ -209,9 +209,9 @@ public class LootLockerProgressionResetDetails
209209
/// </summary>
210210
public string id { get; set; }
211211
/// <summary>
212-
/// The grouping key for this progression reset detail
212+
/// The catalog listing id for this progression reset detail
213213
/// </summary>
214-
public string grouping_key { get; set; }
214+
public string catalog_listing_id { get; set; }
215215
}
216216

217217
/// <summary>
@@ -235,9 +235,9 @@ public class LootLockerCurrencyDetails
235235
/// </summary>
236236
public string id { get; set; }
237237
/// <summary>
238-
/// The grouping key for this currency detail
238+
/// The catalog listing id for this currency detail
239239
/// </summary>
240-
public string grouping_key { get; set; }
240+
public string catalog_listing_id { get; set; }
241241
}
242242

243243
//==================================================
@@ -271,12 +271,12 @@ public class LootLockerListCatalogPricesResponse : LootLockerResponse
271271
/// <summary>
272272
/// Lookup map for details about entities of entity type assets
273273
/// </summary>
274-
public Dictionary<string /*grouping_key*/, LootLockerAssetDetails> asset_details { get; set; }
274+
public Dictionary<string /*catalog_listing_id*/, LootLockerAssetDetails> asset_details { get; set; }
275275

276276
/// <summary>
277277
/// Lookup map for details about entities of entity type progression_points
278278
/// </summary>
279-
public Dictionary<string /*grouping_key*/, LootLockerProgressionPointDetails> progression_points_details
279+
public Dictionary<string /*catalog_listing_id*/, LootLockerProgressionPointDetails> progression_points_details
280280
{
281281
get;
282282
set;
@@ -285,7 +285,7 @@ public class LootLockerListCatalogPricesResponse : LootLockerResponse
285285
/// <summary>
286286
/// Lookup map for details about entities of entity type progression_reset
287287
/// </summary>
288-
public Dictionary<string /*grouping_key*/, LootLockerProgressionResetDetails> progression_resets_details
288+
public Dictionary<string /*catalog_listing_id*/, LootLockerProgressionResetDetails> progression_resets_details
289289
{
290290
get;
291291
set;
@@ -294,7 +294,7 @@ public class LootLockerListCatalogPricesResponse : LootLockerResponse
294294
/// <summary>
295295
/// Lookup map for details about entities of entity type currency
296296
/// </summary>
297-
public Dictionary<string /*grouping_key*/, LootLockerCurrencyDetails> currency_details { get; set; }
297+
public Dictionary<string /*catalog_listing_id*/, LootLockerCurrencyDetails> currency_details { get; set; }
298298

299299
/// <summary>
300300
/// Pagination data to use for subsequent requests
@@ -366,7 +366,7 @@ public LootLockerListCatalogPricesResponse(LootLockerResponse serverResponse)
366366
asset_details = new Dictionary<string, LootLockerAssetDetails>();
367367
foreach (var assetDetail in parsedResponse.assets_details)
368368
{
369-
asset_details[assetDetail.grouping_key] = assetDetail;
369+
asset_details[assetDetail.catalog_listing_id] = assetDetail;
370370
}
371371
}
372372

@@ -376,7 +376,7 @@ public LootLockerListCatalogPricesResponse(LootLockerResponse serverResponse)
376376
progression_points_details = new Dictionary<string, LootLockerProgressionPointDetails>();
377377
foreach (var detail in parsedResponse.progression_points_details)
378378
{
379-
progression_points_details[detail.grouping_key] = detail;
379+
progression_points_details[detail.catalog_listing_id] = detail;
380380
}
381381
}
382382

@@ -386,7 +386,7 @@ public LootLockerListCatalogPricesResponse(LootLockerResponse serverResponse)
386386
progression_resets_details = new Dictionary<string, LootLockerProgressionResetDetails>();
387387
foreach (var detail in parsedResponse.progression_resets_details)
388388
{
389-
progression_resets_details[detail.grouping_key] = detail;
389+
progression_resets_details[detail.catalog_listing_id] = detail;
390390
}
391391
}
392392

@@ -395,7 +395,7 @@ public LootLockerListCatalogPricesResponse(LootLockerResponse serverResponse)
395395
currency_details = new Dictionary<string, LootLockerCurrencyDetails>();
396396
foreach (var detail in parsedResponse.currency_details)
397397
{
398-
currency_details[detail.grouping_key] = detail;
398+
currency_details[detail.catalog_listing_id] = detail;
399399
}
400400
}
401401
}
@@ -429,7 +429,7 @@ public LootLockerInlinedCatalogEntry(LootLockerCatalogEntry entry, [CanBeNull] L
429429
entity_name = entry.entity_name;
430430
entity_id = entry.entity_id;
431431
prices = entry.prices;
432-
grouping_key = entry.grouping_key;
432+
catalog_listing_id = entry.catalog_listing_id;
433433
purchasable = entry.purchasable;
434434
asset_details = assetDetails;
435435
progression_point_details = progressionPointDetails;
@@ -446,14 +446,14 @@ public LootLockerInlinedCatalogEntry[] GetLootLockerInlinedCatalogEntries()
446446
List<LootLockerInlinedCatalogEntry> inlinedEntries = new List<LootLockerInlinedCatalogEntry>();
447447
foreach (var lootLockerCatalogEntry in entries)
448448
{
449-
var groupingKey = lootLockerCatalogEntry.grouping_key;
449+
var catalogListingID = lootLockerCatalogEntry.catalog_listing_id;
450450
var entityKind = lootLockerCatalogEntry.entity_kind;
451451
inlinedEntries.Add(new LootLockerInlinedCatalogEntry(
452452
lootLockerCatalogEntry,
453-
LootLockerCatalogEntryEntityKind.asset == entityKind && asset_details.ContainsKey(groupingKey) ? asset_details[groupingKey] : null,
454-
LootLockerCatalogEntryEntityKind.progression_points == entityKind && progression_points_details.ContainsKey(groupingKey) ? progression_points_details[groupingKey] : null,
455-
LootLockerCatalogEntryEntityKind.progression_reset == entityKind && progression_resets_details.ContainsKey(groupingKey) ? progression_resets_details[groupingKey] : null,
456-
LootLockerCatalogEntryEntityKind.currency == entityKind && currency_details.ContainsKey(groupingKey) ? currency_details[groupingKey] : null
453+
LootLockerCatalogEntryEntityKind.asset == entityKind && asset_details.ContainsKey(catalogListingID) ? asset_details[catalogListingID] : null,
454+
LootLockerCatalogEntryEntityKind.progression_points == entityKind && progression_points_details.ContainsKey(catalogListingID) ? progression_points_details[catalogListingID] : null,
455+
LootLockerCatalogEntryEntityKind.progression_reset == entityKind && progression_resets_details.ContainsKey(catalogListingID) ? progression_resets_details[catalogListingID] : null,
456+
LootLockerCatalogEntryEntityKind.currency == entityKind && currency_details.ContainsKey(catalogListingID) ? currency_details[catalogListingID] : null
457457
));
458458
}
459459
return inlinedEntries.ToArray();

Runtime/Game/Requests/PurchaseRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public class LootLockerPurchaseCatalogItemResponse : LootLockerResponse
4949
public class LootLockerCatalogItemAndQuantityPair
5050
{
5151
/// <summary>
52-
/// The unique id of the catalog item to purchase
52+
/// The unique listing id of the catalog item to purchase
5353
/// </summary>
54-
public string catalog_item_id { get; set; }
54+
public string catalog_listing_id { get; set; }
5555
/// <summary>
5656
/// The quantity of the specified item to purchase
5757
/// </summary>

0 commit comments

Comments
 (0)