Class BeaconContent
- java.lang.Object
-
- com.linecorp.bot.model.event.beacon.BeaconContent
-
public final class BeaconContent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BeaconContent(java.lang.String hwid, java.lang.String type, java.lang.String deviceMessage)Create newBeaconContent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)byte[]getDeviceMessage()Device message of beacon that was detected in byte[] format.java.lang.StringgetDeviceMessageAsHex()Device message of beacon that was detected in lower-case, hex String format.java.lang.StringgetHwid()Hardware ID of the beacon that was detected.java.lang.StringgetType()Type of beacon event.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
BeaconContent
public BeaconContent(java.lang.String hwid, java.lang.String type, java.lang.String deviceMessage)Create newBeaconContent.
-
-
Method Detail
-
getDeviceMessage
public byte[] getDeviceMessage()
Device message of beacon that was detected in byte[] format. (Optional).The “device message” consists of data generated by the beacon to send notifications to bots.
The beacon.dm property is only included in webhooks from devices that support the “device message” property. If device message is not included in webhooks, value is
null.You can use beacon.dm with the LINE Simple Beacon specification.
-
getDeviceMessageAsHex
public java.lang.String getDeviceMessageAsHex()
Device message of beacon that was detected in lower-case, hex String format. (Optional)- See Also:
getDeviceMessage()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getHwid
public java.lang.String getHwid()
Hardware ID of the beacon that was detected.
-
getType
public java.lang.String getType()
Type of beacon event.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-