Package com.linecorp.bot.model.action
Class URIAction
- java.lang.Object
-
- com.linecorp.bot.model.action.URIAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classURIAction.AltUriAn optional uris that will be opened on LINE desktop clients.
-
Constructor Summary
Constructors Constructor Description URIAction(java.lang.String label, java.net.URI uri, URIAction.AltUri altUri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)URIAction.AltUrigetAltUri()URI that opened on LINE desktop clients when the action is performed.java.lang.StringgetLabel()Label for the action.java.net.URIgetUri()URI opened when the action is performed.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
URIAction
public URIAction(java.lang.String label, java.net.URI uri, URIAction.AltUri altUri)
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Label for the action.Max: 20 characters
-
getUri
public java.net.URI getUri()
URI opened when the action is performed.Available values are: http, https, tel
-
getAltUri
public URIAction.AltUri getAltUri()
URI that opened on LINE desktop clients when the action is performed. If this property is set,uriis ignored on LINE for macOS and Windows.
-
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
-
-