mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Refactored to fix compiler warnings
This commit is contained in:
@@ -2,17 +2,21 @@ namespace KfChatDotNetWsClient.Models.Events;
|
||||
|
||||
public class MessageModel
|
||||
{
|
||||
public UserModel Author { get; set; }
|
||||
public required UserModel Author { get; set; }
|
||||
/// <summary>
|
||||
/// HTML formatted message
|
||||
/// </summary>
|
||||
public string Message { get; set; }
|
||||
public int MessageId { get; set; }
|
||||
public required string Message { get; set; }
|
||||
public required int MessageId { get; set; }
|
||||
public DateTimeOffset? MessageEditDate { get; set; }
|
||||
public DateTimeOffset MessageDate { get; set; }
|
||||
public required DateTimeOffset MessageDate { get; set; }
|
||||
/// <summary>
|
||||
/// Unformatted message with original BB code
|
||||
/// Unformatted message with original BB code but retaining HTML encoding
|
||||
/// </summary>
|
||||
public string MessageRaw { get; set; }
|
||||
public int RoomId { get; set; }
|
||||
public required string MessageRaw { get; set; }
|
||||
public required int RoomId { get; set; }
|
||||
/// <summary>
|
||||
/// Unformatted message with original BB code and HTML entities decoded
|
||||
/// </summary>
|
||||
public required string MessageRawHtmlDecoded { get; set; }
|
||||
}
|
||||
@@ -6,8 +6,8 @@ public class UserModel
|
||||
/// <summary>
|
||||
/// Forum display name. Note that it'll be HTML encoded
|
||||
/// </summary>
|
||||
public string Username { get; set; }
|
||||
public Uri AvatarUrl { get; set; }
|
||||
public required string Username { get; set; }
|
||||
public Uri? AvatarUrl { get; set; }
|
||||
// Unset if it's related to a chat message
|
||||
public DateTimeOffset? LastActivity { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user