- more refactoring and renaming models *Result to *EventArgs

This commit is contained in:
FlorianDahn
2020-03-23 13:06:52 +07:00
parent 8e6de4a0e1
commit aa38492bde
2 changed files with 4 additions and 4 deletions
@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TelegramBotBase.Sessions;
namespace TelegramBotBase.Base
{
public class MessageIncomeEventArgs : EventArgs
{
public long DeviceId { get; set; }
public DeviceSession Device { get; set; }
public MessageResult Message { get; set; }
public MessageIncomeEventArgs(long DeviceId, DeviceSession Device, MessageResult message)
{
this.DeviceId = DeviceId;
this.Device = Device;
this.Message = message;
}
}
}
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TelegramBotBase.Sessions;
namespace TelegramBotBase.Base
{
public class SessionBeginEventArgs : EventArgs
{
public long DeviceId { get; set; }
public DeviceSession Device { get; set; }
public SessionBeginEventArgs(long DeviceId, DeviceSession Device)
{
this.DeviceId = DeviceId;
this.Device = Device;
}
}
}