Package com.linecorp.bot.model.richmenu
Class RichMenuResponse
- java.lang.Object
-
- com.linecorp.bot.model.richmenu.RichMenuResponse
-
- All Implemented Interfaces:
RichMenuCommonProperties
public final class RichMenuResponse extends java.lang.Object implements RichMenuCommonProperties
-
-
Constructor Summary
Constructors Constructor Description RichMenuResponse(java.lang.String richMenuId, RichMenuSize size, boolean selected, java.lang.String name, java.lang.String chatBarText, java.util.List<RichMenuArea> areas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<RichMenuArea>getAreas()Array ofRichMenuAreaobjects which define the coordinates and size of tappable areas.java.lang.StringgetChatBarText()Text displayed in the chat bar.java.lang.StringgetName()Name of the rich menu.java.lang.StringgetRichMenuId()Rich menu ID.RichMenuSizegetSize()RichMenuSizeobject which contains the width and height of the rich menu displayed in the chat.inthashCode()booleanisSelected()true to display the rich menu by default.java.lang.StringtoString()
-
-
-
Constructor Detail
-
RichMenuResponse
public RichMenuResponse(java.lang.String richMenuId, RichMenuSize size, boolean selected, java.lang.String name, java.lang.String chatBarText, java.util.List<RichMenuArea> areas)
-
-
Method Detail
-
getRichMenuId
public java.lang.String getRichMenuId()
Rich menu ID.
-
getSize
public RichMenuSize getSize()
RichMenuSizeobject which contains the width and height of the rich menu displayed in the chat.Rich menu images must be one of the following sizes: 2500x1686, 2500x843.
- Specified by:
getSizein interfaceRichMenuCommonProperties
-
isSelected
public boolean isSelected()
true to display the rich menu by default. Otherwise, false.- Specified by:
isSelectedin interfaceRichMenuCommonProperties
-
getName
public java.lang.String getName()
Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users.Maximum of 300 characters.
- Specified by:
getNamein interfaceRichMenuCommonProperties
-
getChatBarText
public java.lang.String getChatBarText()
Text displayed in the chat bar.Maximum of 14 characters.
- Specified by:
getChatBarTextin interfaceRichMenuCommonProperties
-
getAreas
public java.util.List<RichMenuArea> getAreas()
Array ofRichMenuAreaobjects which define the coordinates and size of tappable areas.Maximum of 20 area objects.
- Specified by:
getAreasin interfaceRichMenuCommonProperties
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-