mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-08 06:31:46 +00:00
19 lines
551 B
C#
19 lines
551 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Spacebar.Models.Api;
|
|
|
|
public class CreateChannelRequest {
|
|
[JsonPropertyName("name")]
|
|
public required string Name { get; set; }
|
|
|
|
[JsonPropertyName("position")]
|
|
public int? Position { get; set; }
|
|
|
|
[JsonPropertyName("type")]
|
|
public int? Type { get; set; } // TODO enum
|
|
|
|
//
|
|
[JsonPropertyName("parent_id"), JsonNumberHandling(JsonNumberHandling.AllowReadingFromString | JsonNumberHandling.WriteAsString)]
|
|
public long? ParentId { get; set; }
|
|
// TODO: rest of schema
|
|
} |