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 /// /// A tokenized string string GenerateKey(Contract a_clientContract, Databasemap a_database); /// ///Returns the API if 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); } }