0.4.0: Claim, Models/ DTOs, compile
LeaderboardSession.ClaimAsync sends onClaim. Generated DTOs live under Models/ with nullable wire fields. Remove incomplete duplicate type files.
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class ClaimQuestRequest
|
||||
{
|
||||
[JsonProperty("questId")]
|
||||
public string QuestId { get; set; }
|
||||
public string? QuestId { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
using RudderSdk.Core.Models;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class ClaimQuestResponse
|
||||
{
|
||||
[JsonProperty("alreadyClaimed")]
|
||||
public bool AlreadyClaimed { get; set; }
|
||||
public bool? AlreadyClaimed { get; set; }
|
||||
|
||||
[JsonProperty("error")]
|
||||
public string Error { get; set; }
|
||||
public string? Error { get; set; }
|
||||
|
||||
[JsonProperty("granted")]
|
||||
public List<QuestReward> Granted { get; set; }
|
||||
public List<Reward>? Granted { get; set; }
|
||||
|
||||
[JsonProperty("success")]
|
||||
public bool Success { get; set; }
|
||||
public bool? Success { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class ListQuestsRequest
|
||||
{
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
@@ -8,6 +7,6 @@ namespace RudderSdk.Core.Models.Quests;
|
||||
public class ListQuestsResponse
|
||||
{
|
||||
[JsonProperty("quests")]
|
||||
public List<Quest> Quests { get; set; }
|
||||
public List<Quest>? Quests { get; set; }
|
||||
|
||||
}
|
||||
|
||||
+6
-6
@@ -1,25 +1,25 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
using RudderSdk.Core.Models;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class Quest
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string Id { get; set; }
|
||||
public string? Id { get; set; }
|
||||
|
||||
[JsonProperty("name")]
|
||||
public string Name { get; set; }
|
||||
public string? Name { get; set; }
|
||||
|
||||
[JsonProperty("objectives")]
|
||||
public List<QuestObjectiveProgress> Objectives { get; set; }
|
||||
public List<QuestObjectiveProgress>? Objectives { get; set; }
|
||||
|
||||
[JsonProperty("rewards")]
|
||||
public List<QuestReward> Rewards { get; set; }
|
||||
public List<Reward>? Rewards { get; set; }
|
||||
|
||||
[JsonProperty("status")]
|
||||
public string Status { get; set; }
|
||||
public string? Status { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -1,25 +1,23 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class QuestObjectiveProgress
|
||||
{
|
||||
[JsonProperty("completed")]
|
||||
public bool Completed { get; set; }
|
||||
public bool? Completed { get; set; }
|
||||
|
||||
[JsonProperty("current")]
|
||||
public long Current { get; set; }
|
||||
public long? Current { get; set; }
|
||||
|
||||
[JsonProperty("metric")]
|
||||
public string Metric { get; set; }
|
||||
public string? Metric { get; set; }
|
||||
|
||||
[JsonProperty("objectiveId")]
|
||||
public string ObjectiveId { get; set; }
|
||||
public string? ObjectiveId { get; set; }
|
||||
|
||||
[JsonProperty("target")]
|
||||
public long Target { get; set; }
|
||||
public long? Target { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class QuestReward
|
||||
{
|
||||
[JsonProperty("amount")]
|
||||
public long Amount { get; set; }
|
||||
|
||||
[JsonProperty("currency")]
|
||||
public string Currency { get; set; }
|
||||
|
||||
[JsonProperty("itemId")]
|
||||
public string ItemId { get; set; }
|
||||
|
||||
}
|
||||
@@ -1,16 +1,14 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
|
||||
public class ReportQuestProgressRequest
|
||||
{
|
||||
[JsonProperty("amount")]
|
||||
public long Amount { get; set; }
|
||||
public long? Amount { get; set; }
|
||||
|
||||
[JsonProperty("metric")]
|
||||
public string Metric { get; set; }
|
||||
public string? Metric { get; set; }
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace RudderSdk.Core.Models.Quests;
|
||||
@@ -8,6 +7,6 @@ namespace RudderSdk.Core.Models.Quests;
|
||||
public class ReportQuestProgressResponse
|
||||
{
|
||||
[JsonProperty("completedQuestIds")]
|
||||
public List<string> CompletedQuestIds { get; set; }
|
||||
public List<string>? CompletedQuestIds { get; set; }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user