クラス BeaconContent
java.lang.Object
com.linecorp.bot.model.event.beacon.BeaconContent
public final class BeaconContent
extends java.lang.Object
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 BeaconContent(java.lang.String hwid, java.lang.String type, java.lang.String deviceMessage)
Create newBeaconContent
. -
メソッドの概要
修飾子とタイプ メソッド 説明 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()
クラスから継承されたメソッド java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
コンストラクタの詳細
-
BeaconContent
public BeaconContent(java.lang.String hwid, java.lang.String type, java.lang.String deviceMessage)Create newBeaconContent
.
-
-
メソッドの詳細
-
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)- 関連項目:
getDeviceMessage()
-
toString
public java.lang.String toString()- オーバーライド:
toString
クラス内java.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)- オーバーライド:
equals
クラス内java.lang.Object
-
hashCode
public int hashCode()- オーバーライド:
hashCode
クラス内java.lang.Object
-