mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 12:32:03 -04:00
Big update introducing ghetto command interface, settings, database and howl.gg bet feed scraping
This commit is contained in:
@@ -101,7 +101,8 @@ public class ChatClient
|
||||
private void WsDisconnection(DisconnectionInfo disconnectionInfo)
|
||||
{
|
||||
_logger.Error($"Client disconnected from the chat (or never successfully connected). Type is {disconnectionInfo.Type}");
|
||||
_logger.Error(JsonSerializer.Serialize(disconnectionInfo));
|
||||
_logger.Error($"Close Status => {disconnectionInfo.CloseStatus}; Close Status Description => {disconnectionInfo.CloseStatusDescription}");
|
||||
_logger.Error(disconnectionInfo.Exception);
|
||||
OnWsDisconnection?.Invoke(this, disconnectionInfo);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="NLog" Version="5.2.8" />
|
||||
<PackageReference Include="Websocket.Client" Version="5.1.1" />
|
||||
<PackageReference Include="Websocket.Client" Version="5.1.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -3,10 +3,16 @@ namespace KfChatDotNetWsClient.Models.Events;
|
||||
public class MessageModel
|
||||
{
|
||||
public UserModel Author { get; set; }
|
||||
/// <summary>
|
||||
/// HTML formatted message
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
public int MessageId { get; set; }
|
||||
public DateTimeOffset? MessageEditDate { get; set; }
|
||||
public DateTimeOffset MessageDate { get; set; }
|
||||
/// <summary>
|
||||
/// Unformatted message with original BB code
|
||||
/// </summary>
|
||||
public string MessageRaw { get; set; }
|
||||
public int RoomId { get; set; }
|
||||
}
|
||||
@@ -3,6 +3,9 @@ namespace KfChatDotNetWsClient.Models.Events;
|
||||
public class UserModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// Forum display name. Note that it'll be HTML encoded
|
||||
/// </summary>
|
||||
public string Username { get; set; }
|
||||
public Uri AvatarUrl { get; set; }
|
||||
// Unset if it's related to a chat message
|
||||
|
||||
Reference in New Issue
Block a user