Interface IKitAccessService
public interface IKitAccessService
Methods
GetAccessAsync(CSteamID, uint, CancellationToken)
Get the access type a player has for a kit.
Task<KitAccessType?> GetAccessAsync(CSteamID steam64, uint primaryKey, CancellationToken token = default)
Parameters
steam64CSteamIDThe player's Steam64 ID.
primaryKeyuintThe primary key of the kit.
tokenCancellationToken
Returns
- Task<KitAccessType?>
The type of access if they have access, otherwise null.
GetOwnedKitKeysAsync(CSteamID, CancellationToken)
Get a list of the primary keys of all kits a player owns.
Task<IList<uint>> GetOwnedKitKeysAsync(CSteamID steam64, CancellationToken token = default)
Parameters
steam64CSteamIDThe player's Steam64 ID.
tokenCancellationToken
Returns
HasAccessAsync(CSteamID, uint, CancellationToken)
Check if a player has access to a kit.
Task<bool> HasAccessAsync(CSteamID steam64, uint primaryKey, CancellationToken token = default)
Parameters
steam64CSteamIDThe player's Steam64 ID.
primaryKeyuintThe primary key of the kit.
tokenCancellationToken
Returns
UpdateAccessAsync(CSteamID, uint, KitAccessType?, CSteamID, CancellationToken)
Set the access type a player has for a kit.
Task<bool> UpdateAccessAsync(CSteamID steam64, uint primaryKey, KitAccessType? access, CSteamID instigator, CancellationToken token = default)
Parameters
steam64CSteamIDThe player's Steam64 ID.
primaryKeyuintThe primary key of the kit.
accessKitAccessType?The access to give the player. If this is null, the player's access will be removed
instigatorCSteamIDtokenCancellationToken
Returns
UpdateAccessBulkAsync(CSteamID, uint[], KitAccessType?, CSteamID, CancellationToken)
Set the access type a player has for multiple kits at once.
Task<bool[]> UpdateAccessBulkAsync(CSteamID steam64, uint[] primaryKeys, KitAccessType? access, CSteamID instigator, CancellationToken token = default)
Parameters
steam64CSteamIDThe player's Steam64 ID.
primaryKeysuint[]List of primary keys to apply changes to.
accessKitAccessType?The access to give the player. If this is null, the player's access will be removed
instigatorCSteamIDtokenCancellationToken