42 lines
965 B
C#
42 lines
965 B
C#
using System;
|
|
using Telegram.Bot.Types;
|
|
using TelegramBotBase.Sessions;
|
|
|
|
namespace TelegramBotBase.Args
|
|
{
|
|
public class UnhandledCallEventArgs : EventArgs
|
|
{
|
|
public string Command { get; set; }
|
|
|
|
public long DeviceId { get; set; }
|
|
|
|
public DeviceSession Device {get;set;}
|
|
|
|
public string RawData { get; set; }
|
|
|
|
public int MessageId { get; set; }
|
|
|
|
public Message Message { get; set; }
|
|
|
|
public bool Handled { get; set; }
|
|
|
|
|
|
public UnhandledCallEventArgs()
|
|
{
|
|
Handled = false;
|
|
|
|
}
|
|
|
|
public UnhandledCallEventArgs(string command,string rawData, long deviceId, int messageId, Message message, DeviceSession device) : this()
|
|
{
|
|
this.Command = command;
|
|
this.RawData = rawData;
|
|
this.DeviceId = deviceId;
|
|
this.MessageId = messageId;
|
|
Message = message;
|
|
this.Device = device;
|
|
}
|
|
|
|
}
|
|
}
|