mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
define new event types
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
using SharedLibraryCore.Interfaces;
|
||||
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientExecuteCommandEvent : ClientStateEvent
|
||||
{
|
||||
public IManagerCommand Command { get; init; }
|
||||
public string CommandText { get; init; }
|
||||
}
|
10
SharedLibraryCore/Events/Management/ClientPenaltyEvent.cs
Normal file
10
SharedLibraryCore/Events/Management/ClientPenaltyEvent.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using Data.Models;
|
||||
using Data.Models.Client;
|
||||
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientPenaltyEvent : ManagementEvent
|
||||
{
|
||||
public EFClient Client { get; init; }
|
||||
public EFPenalty Penalty { get; init; }
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientPenaltyRevokeEvent : ClientPenaltyEvent
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
using Data.Models.Client;
|
||||
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientPermissionChangeEvent : ClientStateEvent
|
||||
{
|
||||
public EFClient.Permission OldPermission { get; init; }
|
||||
public EFClient.Permission NewPermission { get; init; }
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientStateAuthorizeEvent : ClientStateEvent
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientStateDisposeEvent : ClientStateEvent
|
||||
{
|
||||
|
||||
}
|
8
SharedLibraryCore/Events/Management/ClientStateEvent.cs
Normal file
8
SharedLibraryCore/Events/Management/ClientStateEvent.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using EFClient = SharedLibraryCore.Database.Models.EFClient;
|
||||
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public abstract class ClientStateEvent : ManagementEvent
|
||||
{
|
||||
public EFClient Client { get; init; }
|
||||
}
|
@ -0,0 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ClientStateInitializeEvent : ClientStateEvent
|
||||
{
|
||||
|
||||
}
|
14
SharedLibraryCore/Events/Management/LoginEvent.cs
Normal file
14
SharedLibraryCore/Events/Management/LoginEvent.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class LoginEvent : ManagementEvent
|
||||
{
|
||||
public enum LoginSourceType
|
||||
{
|
||||
Ingame,
|
||||
Webfront
|
||||
}
|
||||
|
||||
public string EntityId { get; init; }
|
||||
public string Identifier { get; init; }
|
||||
public LoginSourceType LoginSource { get; init; }
|
||||
}
|
6
SharedLibraryCore/Events/Management/LogoutEvent.cs
Normal file
6
SharedLibraryCore/Events/Management/LogoutEvent.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class LogoutEvent : LoginEvent
|
||||
{
|
||||
|
||||
}
|
6
SharedLibraryCore/Events/Management/ManagementEvent.cs
Normal file
6
SharedLibraryCore/Events/Management/ManagementEvent.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class ManagementEvent : CoreEvent
|
||||
{
|
||||
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
using System;
|
||||
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class NotifyAfterDelayCompleteEvent : ManagementEvent
|
||||
{
|
||||
public Delegate Action { get; init; }
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace SharedLibraryCore.Events.Management;
|
||||
|
||||
public class NotifyAfterDelayRequestEvent : ManagementEvent
|
||||
{
|
||||
public int DelayMs { get; init; }
|
||||
public Action Action { get; init; }
|
||||
}
|
Reference in New Issue
Block a user