Class PassportElementErrorTranslationFile
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorTranslationFile
-
- All Implemented Interfaces:
Serializable
,BotApiObject
,InputBotApiObject
,Validable
,PassportElementError
public class PassportElementErrorTranslationFile extends Object implements PassportElementError
- Version:
- 4.1 Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PassportElementErrorTranslationFile()
PassportElementErrorTranslationFile(String type, String fileHash, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFileHash()
String
getMessage()
String
getSource()
String
getType()
PassportElementErrorTranslationFile
setFileHash(String fileHash)
PassportElementErrorTranslationFile
setMessage(String message)
PassportElementErrorTranslationFile
setType(String type)
String
toString()
void
validate()
Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
setType
public PassportElementErrorTranslationFile setType(String type)
-
getSource
public String getSource()
-
getFileHash
public String getFileHash()
-
setFileHash
public PassportElementErrorTranslationFile setFileHash(String fileHash)
-
getMessage
public String getMessage()
-
setMessage
public PassportElementErrorTranslationFile setMessage(String message)
-
validate
public void validate() throws TelegramApiValidationException
Description copied from interface:Validable
Validates that mandatory fields are filled and optional objects- Specified by:
validate
in interfaceValidable
- Throws:
TelegramApiValidationException
- If any mandatory field is empty
-
-