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
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYBaseSocialRequest
|
||||
{
|
||||
[JsonPropertyName("targetPlayFabId")]
|
||||
public string? TargetPlayFabId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYEmptyRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYEnterMatchAzureFunction
|
||||
{
|
||||
[JsonPropertyName("optimalRegion")]
|
||||
public string? OptimalRegion { get; set; }
|
||||
|
||||
[JsonPropertyName("isMatch")]
|
||||
public bool IsMatch { get; set; }
|
||||
|
||||
[JsonPropertyName("bypassMaintenanceMode")]
|
||||
public bool BypassMaintenanceMode { get; set; }
|
||||
|
||||
[JsonPropertyName("debugOption")]
|
||||
public string? DebugOption { get; set; }
|
||||
|
||||
[JsonPropertyName("mapName")]
|
||||
public string? MapName { get; set; }
|
||||
|
||||
[JsonPropertyName("squad_id")]
|
||||
public string? SquadId { get; set; }
|
||||
|
||||
[JsonPropertyName("purchaseInventoryInsurances")]
|
||||
public List<FYPurchaseInventoryInsuranceRequest>? PurchaseInventoryInsurances { get; set; }
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYEnterMatchAzureFunctionResult
|
||||
{
|
||||
[JsonPropertyName("success")]
|
||||
public bool Success { get; set; }
|
||||
|
||||
[JsonPropertyName("address")]
|
||||
public string? Address { get; set; }
|
||||
|
||||
[JsonPropertyName("errorMessage")]
|
||||
public string? ErrorMessage { get; set; }
|
||||
|
||||
[JsonPropertyName("port")]
|
||||
public int Port { get; set; }
|
||||
|
||||
[JsonPropertyName("sharedIndex")]
|
||||
public int ShardIndex { get; set; }
|
||||
|
||||
[JsonPropertyName("singleplayerStation")]
|
||||
public bool SingleplayerStation { get; set; }
|
||||
|
||||
[JsonPropertyName("maintenanceMode")]
|
||||
public bool MaintenanceMode { get; set; }
|
||||
|
||||
[JsonPropertyName("sessionTimeJoinDelay")]
|
||||
public float SessionTimeJoinDelay { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetCharacterVanityRequest
|
||||
{
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetCraftingInProgressDataRequest
|
||||
{
|
||||
[JsonPropertyName("userId")]
|
||||
public string? UserId { get; set; }
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetCraftingInProgressDataResult
|
||||
{
|
||||
[JsonPropertyName("userId")]
|
||||
public string UserId { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("error")]
|
||||
public string Error { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("itemCurrentlyBeingCrafted")]
|
||||
public FYItemCurrentlyBeingCrafted ItemCurrentlyBeingCrafted { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetPlayerContractsRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetPlayerContractsResult
|
||||
{
|
||||
[JsonPropertyName("userId")]
|
||||
public string UserId { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("error")]
|
||||
public string? Error { get; set; }
|
||||
|
||||
[JsonPropertyName("activeContracts")]
|
||||
public List<FYActiveContractPlayerData> ActiveContracts { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("factionsContracts")]
|
||||
public FYFactionsContractsData FactionsContracts { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("refreshHours24UtcFromBackend")]
|
||||
public int RefreshHours24UtcFromBackend { get; set; }
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetPlayersInventoriesLimitsRequest
|
||||
{
|
||||
[JsonPropertyName("userIds")]
|
||||
public List<string>? UserIds { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetPlayersSets
|
||||
{
|
||||
[JsonPropertyName("userIds")]
|
||||
public List<string>? UserIds { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetSignalRConnection
|
||||
{
|
||||
[JsonPropertyName("userId")]
|
||||
public string UserId { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYGetSignalRConnectionResult
|
||||
{
|
||||
[JsonPropertyName("url")]
|
||||
public string Url { get; set; } = null!;
|
||||
|
||||
[JsonPropertyName("accessToken")]
|
||||
public string AccessToken { get; set; } = null!;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYMaintenanceModeState
|
||||
{
|
||||
[JsonPropertyName("bypassMaintenanceMode")]
|
||||
public bool BypassMaintenanceMode { get; set; }
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYQueryFactionProgressionRequest
|
||||
{
|
||||
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYRequestMaintenanceModeStateResult
|
||||
{
|
||||
[JsonPropertyName("enabled")]
|
||||
public bool Enabled { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYRetentionBonusRequest
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYSetAllowJoinRequest
|
||||
{
|
||||
[JsonPropertyName("sessionId")]
|
||||
public string? SessionId { get; set; }
|
||||
|
||||
[JsonPropertyName("allowJoin")]
|
||||
public bool AllowJoin { get; set; }
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYUpdatePlayerPresenceStateRequest
|
||||
{
|
||||
[JsonPropertyName("inMatch")]
|
||||
public bool InMatch { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Prospect.Server.Api.Services.CloudScript.Models.Data;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYVivoxJoinData
|
||||
{
|
||||
[JsonPropertyName("request")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public FYVivoxJoinTokenRequest? Request { get; set; }
|
||||
|
||||
[JsonPropertyName("token")]
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
||||
public string? Token { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYVivoxLoginTokenRequest
|
||||
{
|
||||
[JsonPropertyName("username")]
|
||||
public string? Username { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Prospect.Server.Api.Services.CloudScript.Models;
|
||||
|
||||
public class FYVivoxSettingsData
|
||||
{
|
||||
[JsonPropertyName("vivoxServer")]
|
||||
public string? VivoxServer { get; set; }
|
||||
|
||||
[JsonPropertyName("vivoxDomain")]
|
||||
public string? VivoxDomain { get; set; }
|
||||
|
||||
[JsonPropertyName("vivoxIssuer")]
|
||||
public string? VivoxIssuer { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user