Class 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 new BeaconContent.
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BeaconContent

        public BeaconContent​(java.lang.String hwid,
                             java.lang.String type,
                             java.lang.String deviceMessage)
        Create new BeaconContent.
    • 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.

        See Also:
        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)
        See Also:
        getDeviceMessage()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class 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)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object