| | | 1 | | namespace TeleFlow.Telegram.Internal.Handlers; |
| | | 2 | | |
| | | 3 | | internal sealed class TelegramRouteSelection |
| | | 4 | | { |
| | | 5 | | public TelegramRouteSelection( |
| | | 6 | | TelegramHandlerDescriptor handler, |
| | | 7 | | TelegramRouteDescriptor route, |
| | | 8 | | IReadOnlyDictionary<string, object?> routeValues, |
| | | 9 | | object? callbackPayload) |
| | | 10 | | { |
| | 322 | 11 | | ArgumentNullException.ThrowIfNull(handler); |
| | 322 | 12 | | ArgumentNullException.ThrowIfNull(route); |
| | 322 | 13 | | ArgumentNullException.ThrowIfNull(routeValues); |
| | | 14 | | |
| | | 15 | | Handler = handler; |
| | | 16 | | Route = route; |
| | | 17 | | RouteValues = routeValues; |
| | | 18 | | CallbackPayload = callbackPayload; |
| | 322 | 19 | | } |
| | | 20 | | |
| | | 21 | | public TelegramHandlerDescriptor Handler { get; } |
| | | 22 | | |
| | | 23 | | public TelegramRouteDescriptor Route { get; } |
| | | 24 | | |
| | | 25 | | public IReadOnlyDictionary<string, object?> RouteValues { get; } |
| | | 26 | | |
| | | 27 | | public object? CallbackPayload { get; } |
| | | 28 | | } |