Upload files to "routes/API"

This commit is contained in:
2026-07-24 15:43:54 +00:00
parent 718f112747
commit 2b7c8fb05b
3 changed files with 1037 additions and 0 deletions

31
routes/API/CampusCard.cs Normal file
View File

@@ -0,0 +1,31 @@
using Stella.Models;
namespace Stella.Routes.API
{
public class GetCampusCard
{
[ServerAPI.POST("/api/CampusCard/v1/UpdateAndGetSubscription")]
[ServerAPI.UseAuthorization]
public dynamic ReturnGetCampusCard()
{
return new SubscriptionInfoDTO
{
PlatformAccountSubscribedPlayerId = 1,
Subscription = new SubscriptionDTO
{
SubscriptionId = 0,
RecNetPlayerId = 1,
PlatformType = 0,
PlatformId = "1",
PlatformPurchaseId = "0",
Level = SubscriptionLevel.Platinum,
Period = SubscriptionPeriod.Year,
ExpirationDate = DateTime.MinValue,
IsAutoRenewing = false,
CreatedAt = DateTime.UtcNow,
ModifiedAt = DateTime.UtcNow
}
};
}
}
}