65 lines
1.4 KiB
Java
65 lines
1.4 KiB
Java
package eu.eudat.builders.model.models;
|
|
|
|
import eu.eudat.builders.Builder;
|
|
import eu.eudat.builders.helpers.BuilderApplier;
|
|
import eu.eudat.models.dashboard.recent.RecentActivityData;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* Created by ikalyvas on 3/14/2018.
|
|
*/
|
|
public class RecentActivityDataBuilder extends Builder<RecentActivityData> {
|
|
|
|
private String label;
|
|
private String id;
|
|
private Date timestamp;
|
|
private Integer type;
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
public RecentActivityDataBuilder label(String label) {
|
|
this.label = label;
|
|
return this;
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public RecentActivityDataBuilder id(String id) {
|
|
this.id = id;
|
|
return this;
|
|
}
|
|
|
|
public Date getTimestamp() {
|
|
return timestamp;
|
|
}
|
|
|
|
public RecentActivityDataBuilder timestamp(Date timestamp) {
|
|
this.timestamp = timestamp;
|
|
return this;
|
|
}
|
|
|
|
public Integer getType() {
|
|
return type;
|
|
}
|
|
|
|
public RecentActivityDataBuilder type(Integer type) {
|
|
this.type = type;
|
|
return this;
|
|
}
|
|
|
|
@Override
|
|
public RecentActivityData build() {
|
|
RecentActivityData recentActivityData = new RecentActivityData();
|
|
recentActivityData.setLabel(label);
|
|
recentActivityData.setTimestamp(timestamp);
|
|
recentActivityData.setId(id);
|
|
recentActivityData.setType(type);
|
|
return recentActivityData;
|
|
}
|
|
}
|