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 class
URIAction.AltUri
An 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 boolean
equals(java.lang.Object o)
URIAction.AltUri
getAltUri()
URI that opened on LINE desktop clients when the action is performed.java.lang.String
getLabel()
Label for the action.java.net.URI
getUri()
URI opened when the action is performed.int
hashCode()
java.lang.String
toString()
-
-
-
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,uri
is ignored on LINE for macOS and Windows.
-
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
-
-