Class PassportElementErrorFile
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorFile
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,PassportElementError
public class PassportElementErrorFile extends Object implements PassportElementError
- Version:
- 4.0.0 Represents an error in a file. The error is considered resolved when the file changes.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PassportElementErrorFile()PassportElementErrorFile(String type, String fileHash, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileHash()StringgetMessage()StringgetSource()StringgetType()PassportElementErrorFilesetFileHash(String fileHash)PassportElementErrorFilesetMessage(String message)PassportElementErrorFilesetType(String type)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
setType
public PassportElementErrorFile setType(String type)
-
getSource
public String getSource()
-
getFileHash
public String getFileHash()
-
setFileHash
public PassportElementErrorFile setFileHash(String fileHash)
-
getMessage
public String getMessage()
-
setMessage
public PassportElementErrorFile setMessage(String message)
-
validate
public void validate() throws TelegramApiValidationExceptionDescription copied from interface:ValidableValidates that mandatory fields are filled and optional objects- Specified by:
validatein interfaceValidable- Throws:
TelegramApiValidationException- If any mandatory field is empty
-
-