-
- All Implemented Interfaces:
public final class VersionHistory
-
-
Constructor Summary
Constructors Constructor Description VersionHistory(List<VersionHistoryItem> items, TimeSource timeSource)
-
Method Summary
Modifier and Type Method Description final VersionHistoryupdateVersionHistory(Double timestamp, Long versionCode, String versionName)final DateTimegetTimeAtInstallTotal()final DateTimegetTimeAtInstallForVersionCode(Long versionCode)Returns the timestamp at the first install of the current versionCode of this app that Apptentive was aware of. final DateTimegetTimeAtInstallForVersionName(String versionName)Returns the timestamp at the first install of the current versionName of this app that Apptentive was aware of. final BooleanisUpdateForVersionCode()Returns true if the current versionCode is not the first version or build that we have seen. final BooleanisUpdateForVersionName()Returns true if the current versionName is not the first version or build that we have seen. final VersionHistoryItemgetLastVersionSeen()Return last seen VersionHistoryItem if any -
-
Constructor Detail
-
VersionHistory
VersionHistory(List<VersionHistoryItem> items, TimeSource timeSource)
-
-
Method Detail
-
updateVersionHistory
final VersionHistory updateVersionHistory(Double timestamp, Long versionCode, String versionName)
-
getTimeAtInstallTotal
final DateTime getTimeAtInstallTotal()
-
getTimeAtInstallForVersionCode
final DateTime getTimeAtInstallForVersionCode(Long versionCode)
Returns the timestamp at the first install of the current versionCode of this app that Apptentive was aware of.
-
getTimeAtInstallForVersionName
final DateTime getTimeAtInstallForVersionName(String versionName)
Returns the timestamp at the first install of the current versionName of this app that Apptentive was aware of.
-
isUpdateForVersionCode
final Boolean isUpdateForVersionCode()
Returns true if the current versionCode is not the first version or build that we have seen. Basically, it just looks for two or more versionCodes.
-
isUpdateForVersionName
final Boolean isUpdateForVersionName()
Returns true if the current versionName is not the first version or build that we have seen. Basically, it just looks for two or more versionNames.
-
getLastVersionSeen
final VersionHistoryItem getLastVersionSeen()
Return last seen VersionHistoryItem if any
-
-
-
-