Files
gamenight/Gamenight.Ui/Gamenight.Ui/Services/IGamenight.cs

1082 lines
38 KiB
C#

// <auto-generated>
// This code was generated by Refitter.
// </auto-generated>
using Refit;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
#nullable enable annotations
namespace Gamenight.Ui.Services
{
/// <summary>Gamenight</summary>
[System.CodeDom.Compiler.GeneratedCode("Refitter", "1.7.1.0")]
public partial interface IGamenightApi
{
/// <remarks>Submit your credentials to get a JWT-token to use with the rest of the api.</remarks>
/// <returns>Example response</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/token")]
Task<Token> TokenGet([Body] Login body);
/// <remarks>Refresh your JWT-token without logging in again.</remarks>
/// <returns>Example response</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/token")]
Task<Token> TokenPost();
/// <returns>List of all Users</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>400</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/users")]
Task<ICollection<User>> Users();
/// <remarks>Create a new user given a registration token and user information, username and email must be unique, and password and password_repeat must match.</remarks>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/user")]
Task UserPost([Body] Registration body);
/// <remarks>Get a user from primary id</remarks>
/// <returns>A user in the gamenight system</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>404</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/user")]
Task<User> UserGet([Body] UserId body);
/// <summary>Get a all gamenights</summary>
/// <remarks>Retrieve the list of gamenights on this gamenight server. Requires authorization.</remarks>
/// <returns>Example response</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>400</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/gamenights")]
Task<ICollection<Gamenight>> Gamenights();
/// <summary>Get all participants for a gamenight</summary>
/// <remarks>Retrieve the participants of a single gamenight by id.</remarks>
/// <returns>Response with a list of participant uuids</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>400</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/participants")]
Task<Participants> Participants([Body] GamenightId body);
/// <remarks>Add a gamenight by providing a name and a date, only available when providing an JWT token.</remarks>
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/gamenight")]
Task GamenightPost([Body] AddGamenightRequestBody body);
/// <returns>A gamenight being hosted</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/gamenight")]
Task<Gamenight> GamenightGet([Body] GetGamenightRequestBody body);
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/join")]
Task Join([Body] GamenightId body);
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/leave")]
Task Leave([Body] GamenightId body);
/// <returns>A list of Games in this gamenight instance.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/games")]
Task<ICollection<Game>> Games();
/// <returns>A game.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/game")]
Task<Game> GameGet([Body] GameId body);
/// <returns>a game id</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/game")]
Task<GameId> GamePost([Body] AddGameRequestBody body);
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Delete("/game")]
Task GameDelete([Body] GameId body);
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/rename_game")]
Task RenameGame([Body] RenameGameRequestBody body);
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/own")]
Task Own([Body] OwnGameRequestBody body);
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/disown")]
Task Disown([Body] GameId body);
/// <returns>A list of game ids.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/owned_games")]
Task<ICollection<OwnedGame>> OwnedGames([Body] UserId body);
/// <returns>A location</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/location")]
Task<Location> LocationGet([Body] LocationId body);
/// <returns>A location Id</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/location")]
Task<LocationId> LocationPost([Body] AddLocationRequestBody body);
/// <returns>A list of all LocationsResponse</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/locations")]
Task<ICollection<Location>> Locations();
/// <returns>A <see cref="Task"/> that completes when the request is finished.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Post("/location_authorize")]
Task LocationAuthorize([Body] AuthorizeLocationRequestBody body);
/// <returns>A list of user ids.</returns>
/// <exception cref="ApiException">
/// Thrown when the request returns a non-success status code:
/// <list type="table">
/// <listheader>
/// <term>Status</term>
/// <description>Description</description>
/// </listheader>
/// <item>
/// <term>401</term>
/// <description>Example response</description>
/// </item>
/// <item>
/// <term>422</term>
/// <description>Example response</description>
/// </item>
/// </list>
/// </exception>
[Get("/authorized_location_user_ids")]
Task<ICollection<UserId>> AuthorizedLocationUserIds([Body] LocationId body);
}
}
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
#pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended."
#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
#pragma warning disable 612 // Disable "CS0612 '...' is obsolete"
#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null"
#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
#pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..."
#pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'"
#pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant"
#pragma warning disable 8600 // Disable "CS8600 Converting null literal or possible null value to non-nullable type"
#pragma warning disable 8602 // Disable "CS8602 Dereference of a possibly null reference"
#pragma warning disable 8603 // Disable "CS8603 Possible null reference return"
#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter"
#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type"
#pragma warning disable 8765 // Disable "CS8765 Nullability of type of parameter doesn't match overridden member (possibly because of nullability attributes)."
namespace Gamenight.Ui.Services
{
using System = global::System;
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Gamenight
{
[JsonPropertyName("id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Id { get; set; }
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
[JsonPropertyName("location_id")]
public string LocationId { get; set; }
[JsonPropertyName("datetime")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Datetime { get; set; }
[JsonPropertyName("owner_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string OwnerId { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Participants
{
[JsonPropertyName("participants")]
[System.ComponentModel.DataAnnotations.Required]
public ICollection<string> Participants1 { get; set; } = new System.Collections.ObjectModel.Collection<string>();
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
/// <summary>
/// Failure Reason
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Failure
{
[JsonPropertyName("message")]
public string Message { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Token
{
[JsonPropertyName("jwt_token")]
public string JwtToken { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Login
{
[JsonPropertyName("username")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Username { get; set; }
[JsonPropertyName("password")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Password { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Registration
{
[JsonPropertyName("username")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Username { get; set; }
[JsonPropertyName("email")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Email { get; set; }
[JsonPropertyName("password")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Password { get; set; }
[JsonPropertyName("password_repeat")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string PasswordRepeat { get; set; }
[JsonPropertyName("registration_token")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string RegistrationToken { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UserId
{
[JsonPropertyName("user_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string UserId1 { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class OwnedGame
{
[JsonPropertyName("game_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string GameId { get; set; }
[JsonPropertyName("location_id")]
public string LocationId { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class LocationId
{
[JsonPropertyName("location_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string LocationId1 { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AddGamenightRequestBody
{
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
[JsonPropertyName("datetime")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Datetime { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class GamenightId
{
[JsonPropertyName("gamenight_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string GamenightId1 { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class GameId
{
[JsonPropertyName("game_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string GameId1 { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class GetGamenightRequestBody
{
[JsonPropertyName("id")]
public string Id { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class User
{
[JsonPropertyName("id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Id { get; set; }
[JsonPropertyName("username")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Username { get; set; }
[JsonPropertyName("email")]
public string Email { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Game
{
[JsonPropertyName("id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Id { get; set; }
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AddGameRequestBody
{
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class RenameGameRequestBody
{
[JsonPropertyName("id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Id { get; set; }
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class OwnGameRequestBody
{
[JsonPropertyName("game_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string GameId { get; set; }
[JsonPropertyName("location_id")]
public string LocationId { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class GameIdsResponse : System.Collections.ObjectModel.Collection<OwnedGame>
{
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class UserIdsResponse : System.Collections.ObjectModel.Collection<UserId>
{
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AddLocationRequestBody
{
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
[JsonPropertyName("address")]
public string Address { get; set; }
[JsonPropertyName("note")]
public string Note { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class Location
{
[JsonPropertyName("id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Id { get; set; }
[JsonPropertyName("name")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string Name { get; set; }
[JsonPropertyName("address")]
public string Address { get; set; }
[JsonPropertyName("note")]
public string Note { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public partial class AuthorizeLocationRequestBody
{
[JsonPropertyName("location_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string LocationId { get; set; }
[JsonPropertyName("user_id")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public string UserId { get; set; }
[JsonPropertyName("op")]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[JsonConverter(typeof(JsonStringEnumConverter<AuthorizeLocationRequestBodyOp>))]
public AuthorizeLocationRequestBodyOp Op { get; set; }
private IDictionary<string, object> _additionalProperties;
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties
{
get { return _additionalProperties ?? (_additionalProperties = new Dictionary<string, object>()); }
set { _additionalProperties = value; }
}
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))")]
public enum AuthorizeLocationRequestBodyOp
{
[System.Runtime.Serialization.EnumMember(Value = @"grant")]
Grant = 0,
[System.Runtime.Serialization.EnumMember(Value = @"revoke")]
Revoke = 1,
}
}
#pragma warning restore 108
#pragma warning restore 114
#pragma warning restore 472
#pragma warning restore 612
#pragma warning restore 649
#pragma warning restore 1573
#pragma warning restore 1591
#pragma warning restore 8073
#pragma warning restore 3016
#pragma warning restore 8600
#pragma warning restore 8602
#pragma warning restore 8603
#pragma warning restore 8604
#pragma warning restore 8625
#pragma warning restore 8765