Skip to content

Commit

Permalink
Merge remote-tracking branch 'literacyapp-org/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo Grimstad committed May 27, 2017
2 parents 104b0a6 + 417e91f commit b7715ba
Showing 1 changed file with 85 additions and 0 deletions.
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;
}
}

0 comments on commit b7715ba

Please sign in to comment.