-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathUpdateInfo.java
More file actions
78 lines (68 loc) · 1.74 KB
/
UpdateInfo.java
File metadata and controls
78 lines (68 loc) · 1.74 KB
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
package io.sentry;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/** Information about an available app update. */
@ApiStatus.Experimental
public final class UpdateInfo {
private final @NotNull String id;
private final @NotNull String buildVersion;
private final int buildNumber;
private final @NotNull String downloadUrl;
private final @NotNull String appName;
private final @Nullable String createdDate;
public UpdateInfo(
final @NotNull String id,
final @NotNull String buildVersion,
final int buildNumber,
final @NotNull String downloadUrl,
final @NotNull String appName,
final @Nullable String createdDate) {
this.id = id;
this.buildVersion = buildVersion;
this.buildNumber = buildNumber;
this.downloadUrl = downloadUrl;
this.appName = appName;
this.createdDate = createdDate;
}
public @NotNull String getId() {
return id;
}
public @NotNull String getBuildVersion() {
return buildVersion;
}
public int getBuildNumber() {
return buildNumber;
}
public @NotNull String getDownloadUrl() {
return downloadUrl;
}
public @NotNull String getAppName() {
return appName;
}
public @Nullable String getCreatedDate() {
return createdDate;
}
@Override
public String toString() {
return "UpdateInfo{"
+ "id='"
+ id
+ '\''
+ ", buildVersion='"
+ buildVersion
+ '\''
+ ", buildNumber="
+ buildNumber
+ ", downloadUrl='"
+ downloadUrl
+ '\''
+ ", appName='"
+ appName
+ '\''
+ ", createdDate='"
+ createdDate
+ '\''
+ '}';
}
}