-
- All Implemented Interfaces:
-
java.io.Serializable
public class EventRecord implements Serializable
Legacy event record representation. See: https://github.com/apptentive/apptentive-android/blob/master/apptentive/src/main/java/com/apptentive/android/sdk/storage/EventRecord.java NOTE: THIS CLASS CAN'T BE RENAMED, MODIFIED, OR MOVED TO ANOTHER PACKAGE - OTHERWISE, JAVA SERIALIZABLE MECHANISM BREAKS!!!
-
-
Field Summary
Fields Modifier and Type Field Description private doublelastprivate longtotalprivate Map<Integer, Long>versionCodesprivate Map<String, Long>versionNames
-
Constructor Summary
Constructors Constructor Description EventRecord()
-
Method Summary
Modifier and Type Method Description doublegetLast()voidsetLast(double last)longgetTotal()voidsetTotal(long total)Map<Integer, Long>getVersionCodes()voidsetVersionCodes(Map<Integer, Long> versionCodes)Map<String, Long>getVersionNames()voidsetVersionNames(Map<String, Long> versionNames)voidupdate(double timestamp, String versionName, Integer versionCode)Initializes an event record or updates it with a subsequent event. LonggetCountForVersionName(String versionName)LonggetCountForVersionCode(Integer versionCode)StringtoString()-
-
Method Detail
-
getLast
double getLast()
-
setLast
void setLast(double last)
-
getTotal
long getTotal()
-
setTotal
void setTotal(long total)
-
getVersionCodes
Map<Integer, Long> getVersionCodes()
-
setVersionCodes
void setVersionCodes(Map<Integer, Long> versionCodes)
-
getVersionNames
Map<String, Long> getVersionNames()
-
setVersionNames
void setVersionNames(Map<String, Long> versionNames)
-
update
void update(double timestamp, String versionName, Integer versionCode)
Initializes an event record or updates it with a subsequent event.
- Parameters:
timestamp- The timestamp in seconds at which and Event occurred.versionName- The Android versionName of the app when the event occurred.versionCode- The Android versionCode of the app when the event occurred.
-
getCountForVersionName
Long getCountForVersionName(String versionName)
-
getCountForVersionCode
Long getCountForVersionCode(Integer versionCode)
-
-
-
-