TranslateResource class

Constructors

TranslateResource(APIHttpClient httpClient)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
httpClient → APIHttpClient
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGlossary({required String term, required String translation, String? description, required String language, MinecraftMod? mod, String? token}) Future<Glossary>
Add a glossary. Parameters
addModSourceInfo({required String namespace, MinecraftMod? mod, List<SourceText>? patchouliAddons, String? token}) Future<ModSourceInfo>
Add a mod source info. Parameters
addSourceFile({required ModSourceInfo modSourceInfo, required Storage storage, required String path, required SourceFileType type, required List<String> gameVersions, List<String>? patchouliI18nKeys, String? token}) Future<SourceFile>
Add a source file. Parameters
addSourceText({required String source, required List<String> gameVersions, required String key, required SourceTextType type, String? token}) Future<SourceText>
Add a source text. Parameters
addTranslation({required SourceText sourceText, required Locale language, required String content, String? token}) Future<Translation>
Add a translation. Parameters
addVote(Translation translation, TranslationVoteType type, {String? token}) Future<TranslationVote>
Add a vote to a translation. Parameters
cancelVote(TranslationVote vote, {String? token}) Future<void>
Cancel a vote. Parameters
deleteGlossary(Glossary glossary, {String? token}) Future<void>
Delete a glossary. Parameters
deleteModSourceInfo(ModSourceInfo modSourceInfo, {String? token}) Future<void>
Delete a mod source info. Parameters
deleteSourceFile(SourceFile sourceFile, {String? token}) Future<void>
Delete a source file. Parameters
deleteSourceText(SourceText sourceText, {String? token}) Future<void>
Delete a source text. Parameters
deleteTranslation(Translation translation, {String? token}) Future<void>
Delete a translation. Parameters
editGlossary(Glossary glossary, {String? term, String? translation, String? description, MinecraftMod? mod, String? token, bool global = false}) Future<Glossary>
Edit a glossary. Parameters
editModSourceInfo(ModSourceInfo modSourceInfo, {String? namespace, MinecraftMod? mod, List<SourceText>? patchouliAddons, String? token}) Future<ModSourceInfo>
Edit a mod source info. Parameters
editSourceFile(SourceFile sourceFile, {ModSourceInfo? modSourceInfo, Storage? storage, String? path, SourceFileType? type, List<String>? gameVersions, List<String>? patchouliI18nKeys, String? token}) Future<SourceFile>
Edit a source file. Parameters
editSourceText(SourceText sourceText, {String? source, List<String>? gameVersions, String? key, String? token}) Future<SourceText>
Edit a source text. Parameters
editVote(TranslationVote vote, {required TranslationVoteType type, String? token}) Future<TranslationVote>
Edit a vote. Parameters
exportTranslations({required List<String> namespaces, required Locale language, required TranslationExportFormat format, required String version}) Future<Map<String, String>>
Export translations. Parameters
getGlobalStatus() Future<TranslateStatus>
Get global translate status.
getGlossary(String uuid) Future<Glossary>
Get a glossary by uuid.
getGlossaryHighlight(String text, String language) Future<Map<String, Glossary>>
Get glossary highlight by text. Parameters
getModSourceInfo(String uuid) Future<ModSourceInfo>
Get a mod source info by uuid.
getModSourceInfoStatus(ModSourceInfo info) Future<TranslateStatus>
Get a translate status by mod source info.
getReport({required DateTime start, required DateTime end, required TranslateReportSortType sort, int? limit, int? skip}) Future<TranslateReport>
Get translate report. Parameters
getSourceFile(String uuid) Future<SourceFile>
Get a source file by uuid.
getSourceText(String uuid) Future<SourceText>
Get a source text by uuid.
getTranslation(String uuid) Future<Translation>
Get a translation by uuid.
getTranslatorInfo(String uuid) Future<TranslatorInfo>
Get a translator info by uuid.
getTranslatorInfoByUser(User user) Future<TranslatorInfo>
Get a translator info by user.
getVote(String uuid) Future<TranslationVote>
Get a vote by uuid.
listGlossary({String? language, MinecraftMod? mod, String? filter, int limit = 50, int skip = 0}) Future<ListModelResponse<Glossary>>
List all glossaries. Parameters
listModSourceInfo({String? name, String? namespace, MinecraftMod? mod, int limit = 50, int skip = 0}) Future<ListModelResponse<ModSourceInfo>>
List all mod source infos. Parameters
listSourceFile({ModSourceInfo? modSourceInfo, int limit = 50, int skip = 0}) Future<ListModelResponse<SourceFile>>
List all source files. Parameters
listSourceText({String? source, String? key, int limit = 50, int skip = 0}) Future<ListModelResponse<SourceText>>
List all source texts. Parameters
listTranslation({SourceText? sourceText, Locale? language, User? translator, int limit = 50, int skip = 0}) Future<ListModelResponse<Translation>>
List all translations. Parameters
listVote({Translation? translation, int limit = 50, int skip = 0}) Future<ListModelResponse<TranslationVote>>
List all votes by translation. Parameters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadSourceFile(File file, {required ModSourceInfo modSourceInfo, required String path, required SourceFileType type, required List<String> gameVersions, List<String>? patchouliI18nKeys, String? token}) Future<SourceFile>
Upload a source file to add. Parameters

Operators

operator ==(Object other) bool
The equality operator.
inherited