mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 20:32:08 +00:00
14 lines
462 B
C#
14 lines
462 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Spacebar.Models.AdminApi;
|
|
|
|
public class ForceJoinRequest {
|
|
[JsonPropertyName("user_id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
public long? UserId { get; set; } = null!;
|
|
|
|
[JsonPropertyName("make_admin")]
|
|
public bool MakeAdmin { get; set; } = false;
|
|
|
|
[JsonPropertyName("make_owner")]
|
|
public bool MakeOwner { get; set; } = false;
|
|
} |