using Cloud_Manager.Models.ClientContractModels; using Cloud_Manager.Models.Enums; namespace Cloud_Manager.Models.Interfaces { public interface IKeyService { /// /// Validates specified API /// /// AuthEnums.Valid if key is a valid and unexpired token AuthEnums ValidateKey(string a_Key); /// /// Generates an API Key based on the specified client /// Task GenerateKey(Contract a_clientContract); /// ///Returns the database Id if the API Key is valid to return the related database id /// /// int? GetDatabaseIdFromKey(string a_Key); /// /// Gets the branch associated with the specified API if valid /// /// /// string GetBaseBranch(string a_Key); } }