mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-25 19:56:10 +08:00
30 lines
733 B
C#
30 lines
733 B
C#
using System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BililiveRecorder.Core.Api.Model
|
|
{
|
|
internal class DanmuInfo
|
|
{
|
|
[JsonProperty("host_list")]
|
|
public HostListItem[] HostList { get; set; } = Array.Empty<HostListItem>();
|
|
|
|
[JsonProperty("token")]
|
|
public string Token { get; set; } = string.Empty;
|
|
|
|
public class HostListItem
|
|
{
|
|
[JsonProperty("host")]
|
|
public string Host { get; set; } = string.Empty;
|
|
|
|
[JsonProperty("port")]
|
|
public int Port { get; set; }
|
|
|
|
[JsonProperty("ws_port")]
|
|
public int WsPort { get; set; }
|
|
|
|
[JsonProperty("wss_port")]
|
|
public int WssPort { get; set; }
|
|
}
|
|
}
|
|
}
|