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 boolean
equals(java.lang.Object o)
byte[]
getDeviceMessage()
Device message of beacon that was detected in byte[] format.java.lang.String
getDeviceMessageAsHex()
Device message of beacon that was detected in lower-case, hex String format.java.lang.String
getHwid()
Hardware ID of the beacon that was detected.java.lang.String
getType()
Type of beacon event.int
hashCode()
java.lang.String
toString()
-
-
-
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:
toString
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-