2021-02-23 18:03:37 +08:00
|
|
|
using System;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Core.Api.Model
|
|
|
|
{
|
2022-05-16 23:28:31 +08:00
|
|
|
internal class DanmuInfo
|
2021-02-23 18:03:37 +08:00
|
|
|
{
|
|
|
|
[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; }
|
2022-08-25 18:42:36 +08:00
|
|
|
|
|
|
|
[JsonProperty("ws_port")]
|
|
|
|
public int WsPort { get; set; }
|
|
|
|
|
|
|
|
[JsonProperty("wss_port")]
|
|
|
|
public int WssPort { get; set; }
|
2021-02-23 18:03:37 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|