move models to shared, make new admin project

This commit is contained in:
Lapis
2026-06-16 18:32:28 -04:00
parent ee98c4c369
commit c20d215ee0
106 changed files with 60428 additions and 5 deletions
@@ -0,0 +1,13 @@
using System.Text.Json.Serialization;
namespace CannedNet.Models;
public class ConsumeGiftRequest
{
[JsonPropertyName("GiftId")]
public int GiftId { get; set; }
[JsonPropertyName("Count")]
public int Count { get; set; }
}
@@ -0,0 +1,93 @@
namespace CannedNet.Models;
public enum GiftContext
{
None = -1,
Default,
First_Activity,
Game_Drop,
All_Daily_Challenges_Complete,
All_Weekly_Challenge_Complete,
Daily_Challenge_Complete,
Weekly_Challenge_Complete,
Unassigned_Equipment = 10,
Unassigned_Avatar,
Unassigned_Consumable,
Reacquisition = 20,
Membership,
NUX_TokensAndDressUp = 30,
NUX_Experiment1,
NUX_Experiment2,
NUX_Experiment3,
NUX_Experiment4,
NUX_Experiment5,
LevelUp = 100,
Purchased_Gift_A = 500,
Purchased_Gift_B,
Purchased_Gift_C,
Purchased_Gift_D,
Holiday = 1000,
Contest,
Promotion,
SubscribersOnly,
Deprecated = 1100,
RecRoyale = 1200,
Paintball_ClearCut = 2000,
Paintball_Homestead,
Paintball_Quarry,
Paintball_River,
Paintball_Dam,
Paintball_DriveIn,
Discgolf_Propulsion = 3000,
Discgolf_Lake,
Discgolf_Mode_CoopCatch = 3500,
Quest_Goblin_A = 4000,
Quest_Goblin_B,
Quest_Goblin_C,
Quest_Goblin_S,
Quest_Goblin_Consumable,
Quest_Cauldron_A = 4010,
Quest_Cauldron_B,
Quest_Cauldron_C,
Quest_Cauldron_S,
Quest_Cauldron_Consumable,
Quest_Pirate1_A = 4100,
Quest_Pirate1_B,
Quest_Pirate1_C,
Quest_Pirate1_S,
Quest_Pirate1_X,
Quest_Pirate1_Consumable,
Quest_Dracula1_A = 4200,
Quest_Dracula1_B,
Quest_Dracula1_C,
Quest_Dracula1_S,
Quest_Dracula1_X,
Quest_Dracula1_Consumable,
Quest_Dracula1_SS,
Quest_SciFi_A = 4500,
Quest_SciFi_B,
Quest_SciFi_C,
Quest_SciFi_S,
Quest_Scifi_Consumable,
Charades = 5000,
Soccer = 6000,
Paddleball = 7000,
Dodgeball = 8000,
Lasertag = 9000,
Bowling = 10000,
StuntRunner_TheMainEvent_A = 11000,
StuntRunner_TheMainEvent_B,
StuntRunner_TheMainEvent_C,
StuntRunner_TheMainEvent_D,
StuntRunner_TheMainEvent_S,
StuntRunner_TheMainEvent_X,
StuntRunner_TheMainEvent_Consumable,
StuntRunner_TheMainEvent_SS,
Store_LaserTag = 100000,
Store_RecCenter = 100010,
Consumable = 110000,
Token = 110100,
Punchcard_Challenge_Complete = 110200,
All_Punchcard_Challenges_Complete,
Commerce_Purchase = 200000
}
+28
View File
@@ -0,0 +1,28 @@
namespace CannedNet.Models;
public class GiftDrop
{
public int Id { get; set; }
public int StorefrontItemId { get; set; }
public int GiftDropId { get; set; }
public string FriendlyName { get; set; } = string.Empty;
public string? Tooltip { get; set; }
public string? ConsumableItemDesc { get; set; }
public string? AvatarItemDesc { get; set; }
public int AvatarItemType { get; set; }
public string? EquipmentPrefabName { get; set; }
public string? EquipmentModificationGuid { get; set; }
public bool IsQuery { get; set; }
public bool Unique { get; set; }
public bool SubscribersOnly { get; set; }
public int Level { get; set; }
public int Rarity { get; set; }
public int CurrencyType { get; set; }
public int Currency { get; set; }
public int Context { get; set; }
public int? ItemSetId { get; set; }
public string? ItemSetFriendlyName { get; set; }
public virtual StorefrontItem StorefrontItem { get; set; } = null!;
}
@@ -0,0 +1,74 @@
using System.Text.Json.Serialization;
namespace CannedNet.Models;
public class ReceivedGift
{
public int Id { get; set; }
[JsonPropertyName("receiverAccountId")]
public int ReceiverAccountId { get; set; }
[JsonPropertyName("fromPlayerId")]
public int? FromPlayerId { get; set; }
[JsonPropertyName("consumableItemDesc")]
public string ConsumableItemDesc { get; set; } = string.Empty;
[JsonPropertyName("avatarItemDesc")]
public string AvatarItemDesc { get; set; } = string.Empty;
[JsonPropertyName("avatarItemType")]
public int AvatarItemType { get; set; }
[JsonPropertyName("friendlyName")]
public string FriendlyName { get; set; } = string.Empty;
[JsonPropertyName("equipmentPrefabName")]
public string EquipmentPrefabName { get; set; } = string.Empty;
[JsonPropertyName("equipmentModificationGuid")]
public string EquipmentModificationGuid { get; set; } = string.Empty;
[JsonPropertyName("currencyType")]
public int CurrencyType { get; set; }
[JsonPropertyName("currency")]
public int Currency { get; set; }
[JsonPropertyName("xp")]
public int Xp { get; set; }
[JsonPropertyName("level")]
public int Level { get; set; }
[JsonPropertyName("platform")]
public int Platform { get; set; } = -1;
[JsonPropertyName("platformsToSpawnOn")]
public int PlatformsToSpawnOn { get; set; } = -1;
[JsonPropertyName("balanceType")]
public int BalanceType { get; set; }
[JsonPropertyName("giftContext")]
public int GiftContext { get; set; }
[JsonPropertyName("giftRarity")]
public int GiftRarity { get; set; }
[JsonPropertyName("message")]
public string Message { get; set; } = string.Empty;
[JsonPropertyName("receivedAt")]
public DateTime ReceivedAt { get; set; } = DateTime.UtcNow;
[JsonPropertyName("isConsumed")]
public bool IsConsumed { get; set; } = false;
[JsonPropertyName("consumedAt")]
public DateTime? ConsumedAt { get; set; }
}