]> git.basschouten.com Git - openhab-addons.git/blob
e482ae81cc48372188c49c5015e79139d9c1e674
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.gpstracker.internal.message.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * TransitionMessage message POJO
19  *
20  * @author Gabor Bicskei - Initial contribution
21  */
22 public class TransitionMessage extends LocationMessage {
23
24     /**
25      * Event that triggered the transition (iOS,Android/string/required)
26      * enter The tracker entered the defined geographical region or BLE Beacon range (iOS)
27      * leave The tracker left the defined geographical region or BLE Beacon range (iOS)
28      */
29     @SerializedName("event")
30     String event;
31
32     /**
33      * Name of the waypoint (iOS,Android/string/optional)
34      */
35     @SerializedName("desc")
36     String regionName;
37
38     public String getRegionName() {
39         return regionName;
40     }
41
42     public String getEvent() {
43         return event;
44     }
45 }