Class MaskPosition
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.stickers.MaskPosition
-
- All Implemented Interfaces:
Serializable,BotApiObject,InputBotApiObject,Validable
public class MaskPosition extends Object implements InputBotApiObject, Validable
- Version:
- 3.2 This object describes the position on faces where a mask should be placed by default.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MaskPosition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPoint()FloatgetScale()FloatgetxShift()FloatgetyShift()voidsetPoint(String point)voidsetScale(Float scale)voidsetxShift(Float xShift)voidsetyShift(Float yShift)StringtoString()voidvalidate()Validates that mandatory fields are filled and optional objects
-
-
-
Method Detail
-
getPoint
public String getPoint()
-
getxShift
public Float getxShift()
-
getyShift
public Float getyShift()
-
getScale
public Float getScale()
-
setPoint
public void setPoint(String point)
-
setxShift
public void setxShift(Float xShift)
-
setyShift
public void setyShift(Float yShift)
-
setScale
public void setScale(Float scale)
-
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
-
-