Up dependencies
This commit is contained in:
parent
261d62c83f
commit
792a633544
@ -9,7 +9,7 @@
|
||||
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Label="Serilog">
|
||||
<PackageVersion Include="Nocr.TelegramListener.Async.Api.Contracts" Version="0.4.2" />
|
||||
<PackageVersion Include="Nocr.TelegramListener.Async.Api.Contracts" Version="0.4.15" />
|
||||
<PackageVersion Include="RestEase" Version="1.6.4" />
|
||||
<PackageVersion Include="Serilog" Version="3.1.1" />
|
||||
<PackageVersion Include="Serilog.AspNetCore" Version="8.0.1" />
|
||||
|
||||
@ -41,6 +41,11 @@ public sealed class MessageReceivedHandler : IHandleMessages<MessageReceived>
|
||||
{
|
||||
MatchId = match.Id,
|
||||
MatchUserId = match.UserId,
|
||||
ChatUsername = match.ChatUsername,
|
||||
Rule = (int)match.Rule,
|
||||
Template = match.Template,
|
||||
Text = message.Text,
|
||||
FromUsername = message.FromUsername,
|
||||
OccuredDateTime = message.OccuredDateTime,
|
||||
PublishedDateTime = _dateProvider.UtcNow
|
||||
};
|
||||
|
||||
@ -57,7 +57,7 @@ public sealed class TextMatch
|
||||
|
||||
public void Disable()
|
||||
{
|
||||
if (Active == false)
|
||||
if (!Active)
|
||||
{
|
||||
throw new InvalidOperationException("Failed to disable inactive match");
|
||||
}
|
||||
@ -67,7 +67,7 @@ public sealed class TextMatch
|
||||
|
||||
public void Activate()
|
||||
{
|
||||
if (Active == true)
|
||||
if (Active)
|
||||
{
|
||||
throw new InvalidOperationException("Failed to activate inactive match");
|
||||
}
|
||||
|
||||
@ -8,6 +8,16 @@ public class TextMatchMatched : IEvent
|
||||
|
||||
public long MatchUserId { get; set; }
|
||||
|
||||
public string ChatUsername { get; set; }
|
||||
|
||||
public int Rule { get; set; }
|
||||
|
||||
public string Template { get; set; }
|
||||
|
||||
public string? FromUsername { get; set; }
|
||||
|
||||
public string Text { get; set; }
|
||||
|
||||
public DateTimeOffset OccuredDateTime { get; set; }
|
||||
|
||||
public DateTimeOffset PublishedDateTime { get; set; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user