クラス 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 new BeaconContent.
  • メソッドの概要

    修飾子とタイプ メソッド 説明
    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 new BeaconContent.
  • メソッドの詳細

    • 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(), LINE Simple Beacon specification (en), LINE Simple Beacon specification (ja)
    • 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