Доработка работы с несколькими адаптерами
This commit is contained in:
@@ -52,12 +52,12 @@ public sealed class PageContext
|
||||
/// <summary>
|
||||
/// Получить текущий тип адаптера.
|
||||
/// </summary>
|
||||
public string CurrentAdapterType => Update.AdapterType;
|
||||
public string CurrentAdapterType => Update.Adapter.Type;
|
||||
|
||||
/// <summary>
|
||||
/// Получить текущий ID адаптера.
|
||||
/// </summary>
|
||||
public string CurrentAdapterId => Update.AdapterId;
|
||||
public string CurrentAdapterId => Update.Adapter.Id;
|
||||
|
||||
/// <summary>
|
||||
/// Получить все адаптеры.
|
||||
|
||||
@@ -8,11 +8,8 @@ namespace BotPages.Core.Context;
|
||||
/// </summary>
|
||||
public sealed class UpdateContext
|
||||
{
|
||||
/// <summary>Идентификатор адаптера, от которого пришло обновление.</summary>
|
||||
public required string AdapterId { get; init; }
|
||||
|
||||
/// <summary>Тип адаптера (определяется адаптером).</summary>
|
||||
public required string AdapterType { get; init; }
|
||||
/// <summary>Адаптер, от которого пришло обновление.</summary>
|
||||
public required IMessengerAdapter Adapter { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Данные пользователя, от которого пришло обновление.
|
||||
|
||||
Reference in New Issue
Block a user