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 boolean
equals(java.lang.Object o)
java.util.List<RichMenuArea>
getAreas()
Array ofRichMenuArea
objects which define the coordinates and size of tappable areas.java.lang.String
getChatBarText()
Text displayed in the chat bar.java.lang.String
getName()
Name of the rich menu.java.lang.String
getRichMenuId()
Rich menu ID.RichMenuSize
getSize()
RichMenuSize
object which contains the width and height of the rich menu displayed in the chat.int
hashCode()
boolean
isSelected()
true to display the rich menu by default.java.lang.String
toString()
-
-
-
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()
RichMenuSize
object 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:
getSize
in interfaceRichMenuCommonProperties
-
isSelected
public boolean isSelected()
true to display the rich menu by default. Otherwise, false.- Specified by:
isSelected
in 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:
getName
in interfaceRichMenuCommonProperties
-
getChatBarText
public java.lang.String getChatBarText()
Text displayed in the chat bar.Maximum of 14 characters.
- Specified by:
getChatBarText
in interfaceRichMenuCommonProperties
-
getAreas
public java.util.List<RichMenuArea> getAreas()
Array ofRichMenuArea
objects which define the coordinates and size of tappable areas.Maximum of 20 area objects.
- Specified by:
getAreas
in interfaceRichMenuCommonProperties
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-