Class PassportElementErrorUnspecified
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.passport.dataerror.PassportElementErrorUnspecified
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable,PassportElementError
public class PassportElementErrorUnspecified extends Object implements PassportElementError
- Version:
- 4.1 Represents an issue in an unspecified place. The error is considered resolved when new data is added.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PassportElementErrorUnspecified()PassportElementErrorUnspecified(String type, String elementHash, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementHash()StringgetMessage()StringgetSource()StringgetType()PassportElementErrorUnspecifiedsetElementHash(String elementHash)PassportElementErrorUnspecifiedsetMessage(String message)PassportElementErrorUnspecifiedsetType(String type)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getType
public String getType()
-
setType
public PassportElementErrorUnspecified setType(String type)
-
getSource
public String getSource()
-
getElementHash
public String getElementHash()
-
setElementHash
public PassportElementErrorUnspecified setElementHash(String elementHash)
-
getMessage
public String getMessage()
-
setMessage
public PassportElementErrorUnspecified 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
-
-