Skip to content

Commit 8bdd796

Browse files
AlmightyMikkelkirre-bylund
authored andcommitted
Added group info to leaderboard data
1 parent 66b18e9 commit 8bdd796

File tree

1 file changed

+80
-1
lines changed

1 file changed

+80
-1
lines changed

Runtime/Game/Requests/LeaderboardDetailsRequest.cs

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public class LootLockerLeaderboardRewardAssetDetails
260260
public class LootLockerLeaderboardReward
261261
{
262262
/// <summary>
263-
/// The kind of reward, (asset / currency / progression points / progression reset).
263+
/// The kind of reward, (asset / currency / group / progression points / progression reset).
264264
/// </summary>
265265
public string reward_kind { get; set; }
266266
/// <summary>
@@ -283,6 +283,10 @@ public class LootLockerLeaderboardReward
283283
/// The Asset reward, will be null if the reward is of another type.
284284
/// </summary>
285285
public LootLockerLeaderboardRewardAsset asset { get; set; }
286+
/// <summary>
287+
/// The Group reward, will be null if the reward is of another type.
288+
/// </summary>
289+
public LootLockerLeaderboardRewardGroup group { get; set; }
286290
}
287291

288292
public class LootLockerLeaderboardRewardPredicates
@@ -321,6 +325,81 @@ public class LootLockerLeaderboardRewardPredicatesArgs
321325
public string direction { get; set; }
322326
}
323327

328+
public class LootLockerLeaderboardRewardGroup
329+
{
330+
/// <summary>
331+
/// The date the Group reward was created.
332+
/// </summary>
333+
public string created_at { get; set; }
334+
335+
/// <summary>
336+
/// The name of the Group.
337+
/// </summary>
338+
public string name { get; set; }
339+
340+
/// <summary>
341+
/// The description of the Group.
342+
/// </summary>
343+
public string description { get; set; }
344+
345+
/// <summary>
346+
/// Metadata for the Group reward.
347+
/// </summary>
348+
public LootLockerLeaderboardGroupRewardMetadata[] metadata { get; set; }
349+
350+
/// <summary>
351+
/// Associations for the Group reward.
352+
/// </summary>
353+
public LootLockerLeaderboardGroupRewardAssociations[] associations { get; set; }
354+
355+
/// <summary>
356+
/// The ID of the reward.
357+
/// </summary>
358+
public string reward_id { get; set; }
359+
}
360+
361+
public class LootLockerLeaderboardGroupRewardMetadata
362+
{
363+
/// <summary>
364+
/// The Key of a metadata
365+
/// </summary>
366+
public string key { get; set; }
367+
/// <summary>
368+
/// the Value of a metadata
369+
/// </summary>
370+
public string value { get; set; }
371+
}
372+
373+
374+
public class LootLockerLeaderboardGroupRewardAssociations
375+
{
376+
/// <summary>
377+
/// The kind of reward, (asset / currency / group / progression points / progression reset).
378+
/// </summary>
379+
public string kind { get; set; }
380+
381+
/// <summary>
382+
/// The details on the Asset.
383+
/// </summary>
384+
public LootLockerLeaderboardRewardAssetDetails asset { get; set; }
385+
386+
/// <summary>
387+
/// The details on the Currency.
388+
/// </summary>
389+
public LootLockerLeaderboardRewardCurrencyDetails currency { get; set; }
390+
391+
/// <summary>
392+
/// The Progression Points reward, will be null if the reward is of another type.
393+
/// </summary>
394+
public LootLockerLeaderboardRewardProgression progression_points { get; set; }
395+
396+
/// <summary>
397+
/// The Progression Reset reward, will be null if the reward is of another type.
398+
/// </summary>
399+
public LootLockerLeaderboardRewardProgressionReset progression_reset { get; set; }
400+
401+
}
402+
324403
public class LootLockerLeaderboardSchedule
325404
{
326405
/// <summary>

0 commit comments

Comments
 (0)