Fixed warnings.
This commit is contained in:
parent
ebbec35e62
commit
e01d2d0a14
@ -6,7 +6,7 @@
|
||||
<MicrosoftVersion>8.0.0</MicrosoftVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Label="Nocr">
|
||||
<PackageVersion Include="Nocr.TelegramListener.Async.Api.Contracts" />
|
||||
<PackageVersion Include="Nocr.TelegramListener.Async.Api.Contracts" Version="0.6.2" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||
|
||||
@ -14,12 +14,12 @@ public sealed class TextSubscriptionData
|
||||
/// <summary>
|
||||
/// Username чата
|
||||
/// </summary>
|
||||
public string ChatUsername { get; set; }
|
||||
public required string ChatUsername { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Шаблон совпадения
|
||||
/// </summary>
|
||||
public string Template { get; set; }
|
||||
public required string Template { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Активен ли матч
|
||||
|
||||
@ -12,12 +12,12 @@ public class CreateTextSubscriptionRequest
|
||||
/// <summary>
|
||||
/// Username чата, на который нужно подписаться
|
||||
/// </summary>
|
||||
public string ChatUsername { get; set; }
|
||||
public required string ChatUsername { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Шаблон совпадения
|
||||
/// </summary>
|
||||
public string Template { get; set; }
|
||||
public required string Template { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Тип совпадения
|
||||
|
||||
@ -19,7 +19,7 @@ public class TextSubscriptionMatched : IEvent
|
||||
/// <summary>
|
||||
/// Username чата
|
||||
/// </summary>
|
||||
public string ChatUsername { get; set; }
|
||||
public required string ChatUsername { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Идентификатор сообщения
|
||||
@ -34,7 +34,7 @@ public class TextSubscriptionMatched : IEvent
|
||||
/// <summary>
|
||||
/// Шаблон совпадения
|
||||
/// </summary>
|
||||
public string Template { get; set; }
|
||||
public required string Template { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя или username отправителя
|
||||
@ -44,7 +44,7 @@ public class TextSubscriptionMatched : IEvent
|
||||
/// <summary>
|
||||
/// Текст сообщения
|
||||
/// </summary>
|
||||
public string Text { get; set; }
|
||||
public required string Text { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Дата получения сообщения слушателем
|
||||
|
||||
@ -5,22 +5,22 @@ public sealed class RebusRabbitMqOptions
|
||||
/// <summary>
|
||||
/// Строка подключение
|
||||
/// </summary>
|
||||
public string ConnectionString { get; set; }
|
||||
public required string ConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя входящей очереди
|
||||
/// </summary>
|
||||
public string InputQueueName { get; set; }
|
||||
public required string InputQueueName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя direct exchange
|
||||
/// </summary>
|
||||
public string DirectExchangeName { get; set; }
|
||||
public required string DirectExchangeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Имя topics exchange
|
||||
/// </summary>
|
||||
public string TopicsExchangeName { get; set; }
|
||||
public required string TopicsExchangeName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Список подписок
|
||||
|
||||
Loading…
Reference in New Issue
Block a user