blob: cb58f8c1a2fa1448e26ca3a7705fc4fe300e98da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package com.mapbox.mapboxsdk.module.telemetry;
import android.support.annotation.FloatRange;
import com.mapbox.mapboxsdk.constants.MapboxConstants;
public class MapState {
private double latitude;
private double longitude;
private double zoom;
private String gesture;
MapState(double latitude, double longitude, @FloatRange(from = MapboxConstants.MINIMUM_ZOOM,
to = MapboxConstants.MAXIMUM_ZOOM) double zoom) {
this.latitude = latitude;
this.longitude = longitude;
this.zoom = zoom;
}
void setGesture(String gesture) {
this.gesture = gesture;
}
String getGesture() {
return gesture;
}
double getLatitude() {
return latitude;
}
double getLongitude() {
return longitude;
}
double getZoom() {
return zoom;
}
}
|