/ GUNRPG.WebClient / Models / OperatorModels.cs
OperatorModels.cs
 1  // Re-export shared types into the WebClient.Models namespace for backward compatibility.
 2  global using OperatorSummary = GUNRPG.ClientModels.OperatorSummary;
 3  global using OperatorState = GUNRPG.ClientModels.OperatorState;
 4  global using StartInfilResponse = GUNRPG.ClientModels.StartInfilResponse;
 5  
 6  namespace GUNRPG.WebClient.Models;
 7  
 8  /// <summary>Request body for POST /operators.</summary>
 9  public sealed class OperatorCreateRequest
10  {
11      public string Name { get; set; } = string.Empty;
12  }
13  
14  /// <summary>Request body for POST /operators/{id}/loadout.</summary>
15  public sealed class ChangeLoadoutRequest
16  {
17      public string WeaponName { get; set; } = string.Empty;
18  }
19  
20  /// <summary>Request body for POST /operators/{id}/wounds/treat.</summary>
21  public sealed class TreatWoundsRequest
22  {
23      public float HealthAmount { get; set; }
24  }
25  
26  /// <summary>Request body for POST /operators/{id}/perks.</summary>
27  public sealed class UnlockPerkRequest
28  {
29      public string PerkName { get; set; } = string.Empty;
30  }
31  
32  /// <summary>Request body for POST /operators/{id}/pet.</summary>
33  public sealed class PetActionRequest
34  {
35      public string Action { get; set; } = string.Empty;
36      public float? Hours { get; set; }
37      public float? Nutrition { get; set; }
38      public float? Hydration { get; set; }
39  }