-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'literacyapp-org/master'
- Loading branch information
Showing
1 changed file
with
85 additions
and
0 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
app/src/main/java/org/literacyapp/analytics/model/BootCompletedEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package org.literacyapp.analytics.model; | ||
|
||
import org.greenrobot.greendao.annotation.Convert; | ||
import org.greenrobot.greendao.annotation.Entity; | ||
import org.greenrobot.greendao.annotation.Id; | ||
import org.greenrobot.greendao.annotation.NotNull; | ||
import org.literacyapp.analytics.dao.converter.CalendarConverter; | ||
|
||
import java.util.Calendar; | ||
import org.greenrobot.greendao.annotation.Generated; | ||
|
||
@Entity | ||
public class ApplicationOpenedEvent { | ||
|
||
@Id(autoincrement = true) | ||
private Long id; | ||
|
||
// TODO: replace with Device? | ||
@NotNull | ||
private String deviceId; | ||
|
||
@NotNull | ||
@Convert(converter = CalendarConverter.class, columnType = Long.class) | ||
private Calendar time; | ||
|
||
@NotNull | ||
private String packageName; | ||
|
||
// TODO: replace with Student? | ||
private String studentId; | ||
|
||
@Generated(hash = 976610335) | ||
public ApplicationOpenedEvent(Long id, @NotNull String deviceId, | ||
@NotNull Calendar time, @NotNull String packageName, String studentId) { | ||
this.id = id; | ||
this.deviceId = deviceId; | ||
this.time = time; | ||
this.packageName = packageName; | ||
this.studentId = studentId; | ||
} | ||
|
||
@Generated(hash = 1804882542) | ||
public ApplicationOpenedEvent() { | ||
} | ||
|
||
public Long getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public String getDeviceId() { | ||
return this.deviceId; | ||
} | ||
|
||
public void setDeviceId(String deviceId) { | ||
this.deviceId = deviceId; | ||
} | ||
|
||
public Calendar getTime() { | ||
return this.time; | ||
} | ||
|
||
public void setTime(Calendar time) { | ||
this.time = time; | ||
} | ||
|
||
public String getPackageName() { | ||
return this.packageName; | ||
} | ||
|
||
public void setPackageName(String packageName) { | ||
this.packageName = packageName; | ||
} | ||
|
||
public String getStudentId() { | ||
return this.studentId; | ||
} | ||
|
||
public void setStudentId(String studentId) { | ||
this.studentId = studentId; | ||
} | ||
} |