blob: cbc79c7b601813ef85fdec870f0c08264ce64830 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
package com.mapbox.mapboxsdk.module.telemetry;
import android.annotation.SuppressLint;
import android.os.Parcel;
import com.mapbox.android.telemetry.Event;
/**
* Event will be sent while offline download end.
*/
@SuppressLint("ParcelCreator")
public class OfflineDownloadEndEvent extends Event {
private final String event = "map.offlineDownload.end";
private final String created;
private final Double minZoom;
private final Double maxZoom;
private final String shapeForOfflineRegion;
private String styleURL;
private Long sizeOfResourcesCompleted;
private Long numberOfTilesCompleted;
private String state;
void setStyleURL(String styleURL) {
this.styleURL = styleURL;
}
void setSizeOfResourcesCompleted(Long sizeOfResourcesCompleted) {
this.sizeOfResourcesCompleted = sizeOfResourcesCompleted;
}
void setNumberOfTilesCompleted(Long numberOfTilesCompleted) {
this.numberOfTilesCompleted = numberOfTilesCompleted;
}
void setState(String state) {
this.state = state;
}
OfflineDownloadEndEvent(PhoneState phoneState, String shapeForOfflineRegion, Double minZoom, Double maxZoom) {
this.created = phoneState.getCreated();
this.shapeForOfflineRegion = shapeForOfflineRegion;
this.minZoom = minZoom;
this.maxZoom = maxZoom;
}
String getCreated() {
return created;
}
Double getMinZoom() {
return minZoom;
}
Double getMaxZoom() {
return maxZoom;
}
String getShapeForOfflineRegion() {
return shapeForOfflineRegion;
}
String getStyleURL() {
return styleURL;
}
Long getSizeOfResourcesCompleted() {
return sizeOfResourcesCompleted;
}
Long getNumberOfTilesCompleted() {
return numberOfTilesCompleted;
}
String getState() {
return state;
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
}
}
|