public interface ILanguageService
Methods View Source CreateAsync(ILanguage, Guid)
Creates a new ILanguage object
DeclarationTask<Attempt<ILanguage, LanguageOperationStatus>> CreateAsync(ILanguage language, Guid userKey)
Parameters Type Name Description ILanguage language
ILanguage to create
Guid userKeyKey of the user creating the language
Returns View Source DeleteAsync(String, Guid)Deletes a ILanguage by removing it and its usages from the db
DeclarationTask<Attempt<ILanguage, LanguageOperationStatus>> DeleteAsync(string isoCode, Guid userKey)
Parameters Type Name Description System.String isoCode
The ISO code of the ILanguage to delete
Guid userKeyKey of the user deleting the language
Returns View Source GetAllAsync()Gets all available languages
DeclarationTask<IEnumerable<ILanguage>> GetAllAsync()
Returns View Source GetAsync(String)
Gets a ILanguage by its iso code
DeclarationTask<ILanguage> GetAsync(string isoCode)
Parameters Type Name Description System.String isoCode
Iso Code of the language (ie. en-US)
Returns View Source GetDefaultIsoCodeAsync()Gets the default language ISO code.
DeclarationTask<string> GetDefaultIsoCodeAsync()
Returns Type Description Task<System.String>
The default language ISO code
View Source GetDefaultLanguageAsync()Gets the default ILanguage
DeclarationTask<ILanguage> GetDefaultLanguageAsync()
Returns View Source GetIsoCodesByIdsAsync(ICollection<Int32>)
Retrieves the isoCodes of configured languages by their Ids
DeclarationTask<string[]> GetIsoCodesByIdsAsync(ICollection<int> ids)
Parameters Type Name Description ICollection<System.Int32> ids
The ids of the configured ILanguages
Returns Type Description Task<System.String[]>The ISO codes of the ILanguages
View Source GetMultipleAsync(IEnumerable<String>)Gets all languages with the given iso codes
DeclarationTask<IEnumerable<ILanguage>> GetMultipleAsync(IEnumerable<string> isoCodes)
Parameters Type Name Description IEnumerable<System.String> isoCodes Returns View Source UpdateAsync(ILanguage, Guid)
Updates an existing ILanguage object
DeclarationTask<Attempt<ILanguage, LanguageOperationStatus>> UpdateAsync(ILanguage language, Guid userKey)
Parameters Type Name Description ILanguage language
ILanguage to update
Guid userKeyKey of the user saving the language
ReturnsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4