-
-
Notifications
You must be signed in to change notification settings - Fork 44
sharedlibrarycoreservices ClientService
RaidMax edited this page May 21, 2023
·
1 revision
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SharedLibraryCore.Services
SharedLibraryCore.Services.ClientService[[ClientService]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IEntityService_1[[IEntityService< T >]]
class SharedLibraryCore.Interfaces.IEntityService_1 interfaceStyle;
SharedLibraryCore.Interfaces.IResourceQueryHelper_2[[IResourceQueryHelper< QueryType,ResultType >]]
class SharedLibraryCore.Interfaces.IResourceQueryHelper_2 interfaceStyle;
end
SharedLibraryCore.Interfaces.IEntityService_1 --> SharedLibraryCore.Services.ClientService
SharedLibraryCore.Interfaces.IResourceQueryHelper_2 --> SharedLibraryCore.Services.ClientService
Returns | Name |
---|---|
Task <bool > |
CanBeAutoFlagged (int clientId)indicates if the given clientid can be autoflagged |
Task <EFClient > |
Create (EFClient entity) |
Task <EFClient > |
Delete (EFClient entity) |
Task <IList <EFClient >> |
Find (Func <EFClient , bool > e) |
Task <IList <PlayerInfo >> |
FindClientsByIdentifier (string identifier) |
Task <EFClient > |
Get (int entityId) |
Task <EFClient > |
GetClientForLogin (int clientId) |
Task <string > |
GetClientNameById (int clientId) |
Task <int > |
GetClientReportCount (int clientId)retrieves the number of times the given client id has been reported |
Task <int > |
GetOwnerCount ()retrieves the number of owners (client level is owner) |
Task <IList <EFClient >> |
GetOwners () |
Task <List <EFClient >> |
GetPrivilegedClients (bool includeName) |
Task <int > |
GetRecentClientCount ()Returns the number of clients seen today |
Task <IList <PlayerInfo >> |
GetRecentClients (PaginationRequest request)gets the 10 most recently added clients to IW4MAdmin |
Task <int > |
GetTotalClientsAsync () |
Task <EFClient > |
GetUnique (long entityAttribute, object altKey) |
Task <bool > |
HasOwnerAsync (CancellationToken token) |
Task <ResourceQueryHelperResult <FindClientResult >> |
QueryResource (FindClientRequest query)find clients matching the given query |
Task |
UnlinkClient (int clientId)Unlinks shared GUID account into its own separate account |
Task <EFClient > |
Update (EFClient temporalClient) |
Task |
UpdateAlias (EFClient temporalClient) |
Task |
UpdateLevel (Permission newPermission, EFClient temporalClient, EFClient origin) |
public ClientService(ILogger<ClientService> logger, IDatabaseContextFactory databaseContextFactory, ApplicationConfiguration appConfig, IGeoLocationService geoLocationService)
Type | Name | Description |
---|---|---|
ILogger <ClientService > |
logger | |
IDatabaseContextFactory |
databaseContextFactory | |
ApplicationConfiguration |
appConfig | |
IGeoLocationService |
geoLocationService |
public virtual async Task<EFClient> Create(EFClient entity)
Type | Name | Description |
---|---|---|
EFClient |
entity |
public virtual Task<EFClient> Delete(EFClient entity)
Type | Name | Description |
---|---|---|
EFClient |
entity |
public virtual Task<IList<EFClient>> Find(Func<EFClient, bool> e)
Type | Name | Description |
---|---|---|
Func <EFClient , bool > |
e |
public virtual async Task<EFClient> Get(int entityId)
Type | Name | Description |
---|---|---|
int |
entityId |
public virtual async Task<EFClient> GetUnique(long entityAttribute, object altKey)
Type | Name | Description |
---|---|---|
long |
entityAttribute | |
object |
altKey |
public virtual async Task<EFClient> Update(EFClient temporalClient)
Type | Name | Description |
---|---|---|
EFClient |
temporalClient |
public virtual async Task<ResourceQueryHelperResult<FindClientResult>> QueryResource(FindClientRequest query)
Type | Name | Description |
---|---|---|
FindClientRequest |
query | query filters |
find clients matching the given query
public virtual async Task UpdateLevel(Permission newPermission, EFClient temporalClient, EFClient origin)
Type | Name | Description |
---|---|---|
Permission |
newPermission | |
EFClient |
temporalClient | |
EFClient |
origin |
public async Task UpdateAlias(EFClient temporalClient)
Type | Name | Description |
---|---|---|
EFClient |
temporalClient |
public async Task<int> GetClientReportCount(int clientId)
Type | Name | Description |
---|---|---|
int |
clientId | client id to search for report counts of |
retrieves the number of times the given client id has been reported
public async Task<bool> CanBeAutoFlagged(int clientId)
Type | Name | Description |
---|---|---|
int |
clientId |
indicates if the given clientid can be autoflagged
public async Task UnlinkClient(int clientId)
Type | Name | Description |
---|---|---|
int |
clientId |
Unlinks shared GUID account into its own separate account
public async Task<IList<EFClient>> GetOwners()
public async Task<bool> HasOwnerAsync(CancellationToken token)
Type | Name | Description |
---|---|---|
CancellationToken |
token |
public virtual async Task<int> GetOwnerCount()
retrieves the number of owners (client level is owner)
public async Task<EFClient> GetClientForLogin(int clientId)
Type | Name | Description |
---|---|---|
int |
clientId |
public async Task<List<EFClient>> GetPrivilegedClients(bool includeName)
Type | Name | Description |
---|---|---|
bool |
includeName |
public async Task<IList<PlayerInfo>> FindClientsByIdentifier(string identifier)
Type | Name | Description |
---|---|---|
string |
identifier |
public async Task<int> GetTotalClientsAsync()
public async Task<int> GetRecentClientCount()
Returns the number of clients seen today
public async Task<IList<PlayerInfo>> GetRecentClients(PaginationRequest request)
Type | Name | Description |
---|---|---|
PaginationRequest |
request |
gets the 10 most recently added clients to IW4MAdmin
public async Task<string> GetClientNameById(int clientId)
Type | Name | Description |
---|---|---|
int |
clientId |
Generated with ModularDoc