ClientService Public class
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
Loading
Source code
public ClientService(ILogger<ClientService> logger, IDatabaseContextFactory databaseContextFactory, ApplicationConfiguration appConfig, IGeoLocationService geoLocationService)
Source code
public virtual async Task<EFClient> Create(EFClient entity)
Source code
public virtual Task<EFClient> Delete(EFClient entity)
Source code
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 |
|
Source code
public virtual async Task<ResourceQueryHelperResult<FindClientResult>> QueryResource(FindClientRequest query)
find clients matching the given query
Source code
public virtual async Task UpdateLevel(Permission newPermission, EFClient temporalClient, EFClient origin)
Type |
Name |
Description |
Permission |
newPermission |
|
EFClient |
temporalClient |
|
EFClient |
origin |
|
Source code
public async Task UpdateAlias(EFClient temporalClient)
Type |
Name |
Description |
EFClient |
temporalClient |
|
Source code
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
Source code
public async Task<bool> CanBeAutoFlagged(int clientId)
Type |
Name |
Description |
int |
clientId |
|
indicates if the given clientid can be autoflagged
Source code
public async Task UnlinkClient(int clientId)
Type |
Name |
Description |
int |
clientId |
|
Unlinks shared GUID account into its own separate account
Source code
public async Task<IList<EFClient>> GetOwners()
Source code
public async Task<bool> HasOwnerAsync(CancellationToken token)
Type |
Name |
Description |
CancellationToken |
token |
|
Source code
public virtual async Task<int> GetOwnerCount()
retrieves the number of owners
(client level is owner)
Source code
public async Task<EFClient> GetClientForLogin(int clientId)
Type |
Name |
Description |
int |
clientId |
|
Source code
public async Task<List<EFClient>> GetPrivilegedClients(bool includeName)
Type |
Name |
Description |
bool |
includeName |
|
Source code
public async Task<IList<PlayerInfo>> FindClientsByIdentifier(string identifier)
Type |
Name |
Description |
string |
identifier |
|
Source code
public async Task<int> GetTotalClientsAsync()
Source code
public async Task<int> GetRecentClientCount()
Returns the number of clients seen today
Source code
public async Task<IList<PlayerInfo>> GetRecentClients(PaginationRequest request)
gets the 10 most recently added clients to IW4MAdmin
Source code
public async Task<string> GetClientNameById(int clientId)
Type |
Name |
Description |
int |
clientId |
|
Generated with ModularDoc