Interface IPointService
Assembly: Coree.NETASP.dll
Syntax
public interface IPointService
Methods
|
Edit this page
View Source
AddOrUpdateEntry(string, int, string)
Assigns points to a specific IP address.
Declaration
Task AddOrUpdateEntry(string key, int points, string reason)
Parameters
Type |
Name |
Description |
string |
key |
|
int |
points |
The number of points to assign.
|
string |
reason |
The reason for assigning points.
|
Returns
|
Edit this page
View Source
DeleteEntry(string)
Declaration
Task DeleteEntry(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
|
Edit this page
View Source
GetEntry(string)
Gets all point entries for a specific IP address.
Declaration
Task<Entry?> GetEntry(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns
Type |
Description |
Task<Entry> |
An Entry object containing point entries.
|
|
Edit this page
View Source
LoadData()
Loads the point data from disk.
Declaration
|
Edit this page
View Source
SaveData()
Saves the point data to disk.
Declaration
Returns
|
Edit this page
View Source
ShrinkEntrys(string)
Declaration
Task ShrinkEntrys(string key)
Parameters
Type |
Name |
Description |
string |
key |
|
Returns