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,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; }
}