Add contracts annotations

This commit is contained in:
Sergey Nazarov 2024-03-28 09:00:54 +03:00
parent 752dae2057
commit c5d43e0769
2 changed files with 16 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<MicrosoftVersion>8.0.0</MicrosoftVersion>
</PropertyGroup>
<ItemGroup Label="Nocr">
<PackageVersion Include="Nocr.TextMatcher.Async.Api.Contracts" Version="0.4.19" />
<PackageVersion Include="Nocr.TextMatcher.Async.Api.Contracts" Version="0.4.22" />
</ItemGroup>
<ItemGroup Label="Telegram">
<PackageVersion Include="WTelegramClient" Version="3.7.1" />

View File

@ -4,13 +4,28 @@ public sealed class MessageReceived : IEvent
{
public Guid Id { get; } = Guid.NewGuid();
/// <summary>
/// Текст сообщения
/// </summary>
public string Text { get; set; } = default!;
/// <summary>
/// Идентификатор отправителя
/// </summary>
public long FromId { get; set; }
/// <summary>
/// Имя или username отправителя
/// </summary>
public string? From { get; set; }
/// <summary>
/// Username чата отправителя
/// </summary>
public string ChatUsername { get; set; } = default!;
/// <summary>
/// Дата получения сообщения слушателем
/// </summary>
public DateTimeOffset OccuredDateTime { get; set; }
}