/*
 * Copyright 2016 LINE Corporation
 *
 * LINE Corporation licenses this file to you under the Apache License,
 * version 2.0 (the "License"); you may not use this file except in compliance
 * with the License. You may obtain a copy of the License at:
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

package com.example.bot.spring.echo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.linecorp.bot.model.event.Event;
import com.linecorp.bot.model.event.MessageEvent;
import com.linecorp.bot.model.event.message.TextMessageContent;
import com.linecorp.bot.model.message.TextMessage;
import com.linecorp.bot.spring.boot.annotation.EventMapping;
import com.linecorp.bot.spring.boot.annotation.LineMessageHandler;

@SpringBootApplication
@LineMessageHandler
public class EchoApplication {
    public static void main(String[] args) {
        SpringApplication.run(EchoApplication.class, args);
    }

    @EventMapping
    public TextMessage handleTextMessageEvent(MessageEvent<TextMessageContent> event) {
        System.out.println("event: " + event);
        return new TextMessage(event.getMessage().getText());
    }

    @EventMapping
    public void handleDefaultMessageEvent(Event event) {
        System.out.println("event: " + event);
    }
    
}

@@ -786,16 +786,791 @@
 ation;%0A%0A
+import com.linecorp.bot.client.LineMessagingService;%0Aimport com.linecorp.bot.model.ReplyMessage;%0Aimport com.linecorp.bot.model.event.BeaconEvent;%0Aimport com.linecorp.bot.model.event.Event;%0Aimport com.linecorp.bot.model.event.MessageEvent;%0Aimport com.linecorp.bot.model.event.beacon.BeaconContent;%0Aimport com.linecorp.bot.model.event.message.MessageContent;%0Aimport com.linecorp.bot.model.event.message.TextMessageContent;%0Aimport com.linecorp.bot.model.message.TextMessage;%0Aimport com.linecorp.bot.model.response.BotApiResponse;%0Aimport com.linecorp.bot.spring.boot.annotation.LineBotMessages;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.autoconfigure.EnableAutoConfiguration;%0Aimport org.springframework.web.bind.annotation.*;%0A
 import c
@@ -2439,10 +2439,237 @@
  %7D%0A    %0A
+    @EventMapping%0A    public Message handleBeaconMessageEvent(BeaconEvent event) %7B%0A    System.out.println(event.getBeacon().getHwid()); //HWID%E3%82%92%E6%A8%99%E6%BA%96%E5%87%BA%E5%8A%9B%0A    return new TextMessage(%22LINE Beancon%E3%81%8B%E3%82%89%E9%80%9A%E7%9F%A5%E3%81%A0%E3%82%88%EF%BC%81%E7%A0%82%E9%87%91%E3%81%95%E3%82%93%E3%80%81%E3%81%82%E3%82%8A%E3%81%8C%E3%81%A8%E3%81%86%E3%81%94%E3%81%96%E3%81%84%E3%81%BE%E3%81%97%E3%81%9F%EF%BC%81%22);%0A    %7D%0A    %0A
 %7D%0A

Update EchoApplication.java