Add more CloudScript functions, start of EnterMatchmaking
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYActiveContractPlayerData
|
||||
{
|
||||
[JsonPropertyName("contractId")]
|
||||
public string ContractId { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("progress")]
|
||||
public List<int> Progress { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYFactionContractData
|
||||
{
|
||||
[JsonPropertyName("contractId")]
|
||||
public string ContractId { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("contractIsLockedDueToLowFactionReputation")]
|
||||
public bool ContractIsLockedDueToLowFactionReputation { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYFactionContractsData
|
||||
{
|
||||
[JsonPropertyName("factionId")]
|
||||
public string FactionId { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("contracts")]
|
||||
public List<FYFactionContractData> Contracts { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYFactionsContractsData
|
||||
{
|
||||
[JsonPropertyName("boards")]
|
||||
public List<FYFactionContractsData> Boards { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("lastBoardRefreshTimeUtc")]
|
||||
public FYTimestamp LastBoardRefreshTimeUtc { get; set; } = null!;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYItemCurrentlyBeingCrafted
|
||||
{
|
||||
[JsonPropertyName("itemId")]
|
||||
public string? ItemId { get; set; }
|
||||
|
||||
[JsonPropertyName("itemRarity")]
|
||||
public int ItemRarity { get; set; }
|
||||
|
||||
[JsonPropertyName("purchaseAmount")]
|
||||
public int PurchaseAmount { get; set; }
|
||||
|
||||
[JsonPropertyName("utcTimestampWhenCraftingStarted")]
|
||||
public FYTimestamp UtcTimestampWhenCraftingStarted { get; set; } = null!;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYPurchaseInventoryInsuranceRequest
|
||||
{
|
||||
// m_insuranceId
|
||||
// m_itemIds
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYTimestamp
|
||||
{
|
||||
[JsonPropertyName("seconds")]
|
||||
public int Seconds { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
public class FYVivoxJoinTokenRequest
|
||||
{
|
||||
[JsonPropertyName("userName")]
|
||||
public string? Username { get; set; }
|
||||
|
||||
[JsonPropertyName("channel")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? Channel { get; set; }
|
||||
|
||||
// TODO: channelType
|
||||
// TODO: hasText
|
||||
// TODO: hasAudio
|
||||
// TODO: channelId
|
||||
}
|
||||
Reference in New Issue
Block a user