mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added support for Kiwi PeerTube livestream notifications and capturing
This commit is contained in:
@@ -29,10 +29,16 @@ public enum StreamService
|
||||
{
|
||||
Kick,
|
||||
Parti,
|
||||
DLive
|
||||
DLive,
|
||||
KiwiPeerTube
|
||||
}
|
||||
|
||||
public class KickStreamMetaModel
|
||||
{
|
||||
public required int ChannelId { get; set; }
|
||||
}
|
||||
|
||||
public class PeerTubeMetaModel
|
||||
{
|
||||
public required string AccountName { get; set; }
|
||||
}
|
||||
31
KfChatDotNetBot/Models/PeerTubeModels.cs
Normal file
31
KfChatDotNetBot/Models/PeerTubeModels.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace KfChatDotNetBot.Models;
|
||||
|
||||
public class PeerTubeVideoDataModel
|
||||
{
|
||||
[JsonPropertyName("uuid")]
|
||||
public required string Uuid { get; set; }
|
||||
[JsonPropertyName("shortUUID")]
|
||||
public required string ShortUuid { get; set; }
|
||||
[JsonPropertyName("url")]
|
||||
public required string Url { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public required string Name { get; set; }
|
||||
[JsonPropertyName("category")]
|
||||
public Dictionary<string, string>? Category { get; set; }
|
||||
[JsonPropertyName("isLive")]
|
||||
public required bool IsLive { get; set; }
|
||||
[JsonPropertyName("account")]
|
||||
public required PeerTubeAccountOrChannelModel Account { get; set; }
|
||||
[JsonPropertyName("channel")]
|
||||
public required PeerTubeAccountOrChannelModel Channel { get; set; }
|
||||
}
|
||||
|
||||
public class PeerTubeAccountOrChannelModel
|
||||
{
|
||||
[JsonPropertyName("displayName")]
|
||||
public required string DisplayName { get; set; }
|
||||
[JsonPropertyName("name")]
|
||||
public required string Name { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user