Skip to content
Snippets Groups Projects
Commit cf4d02a7 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch '2.x'

parents fabd07a7 9d439cbc
Branches
No related merge requests found
......@@ -28,61 +28,61 @@ import java.util.Date;
@ApiModel(value = "motd", description = "the message of the day entity")
public class Motd {
private String motdkey; //ID
private Date startdate;
private Date enddate;
private String title;
private String text;
private String motdkey; //ID
private Date startdate;
private Date enddate;
private String title;
private String text;
private String audience;
private String sessionId;
private String sessionkey;
private String _id;
private String _rev;
@ApiModelProperty(required = true, value = "the identification string")
public String getMotdkey() {
return motdkey;
}
@ApiModelProperty(required = true, value = "the identification string")
public String getMotdkey() {
return motdkey;
}
public void setMotdkey(final String key) {
motdkey = key;
}
public void setMotdkey(final String key) {
motdkey = key;
}
@ApiModelProperty(required = true, value = "startdate for showing this message (timestamp format)")
public Date getStartdate() {
return startdate;
}
public Date getStartdate() {
return startdate;
}
public void setStartdate(final Date timestamp) {
startdate = timestamp;
}
public void setStartdate(final Date timestamp) {
startdate = timestamp;
}
@ApiModelProperty(required = true, value = "enddate for showing this message (timestamp format)")
public Date getEnddate() {
return enddate;
}
@ApiModelProperty(required = true, value = "enddate for showing this message (timestamp format)")
public Date getEnddate() {
return enddate;
}
public void setEnddate(final Date timestamp) {
enddate = timestamp;
}
public void setEnddate(final Date timestamp) {
enddate = timestamp;
}
@ApiModelProperty(required = true, value = "tite of the message")
public String getTitle() {
return title;
}
@ApiModelProperty(required = true, value = "tite of the message")
public String getTitle() {
return title;
}
public void setTitle(final String ttitle) {
title = ttitle;
}
public void setTitle(final String ttitle) {
title = ttitle;
}
@ApiModelProperty(required = true, value = "text of the message")
public String getText() {
return text;
}
@ApiModelProperty(required = true, value = "text of the message")
public String getText() {
return text;
}
public void setText(final String ttext) {
text = ttext;
}
public void setText(final String ttext) {
text = ttext;
}
@ApiModelProperty(required = true, value = "defines the target audience for this motd (one of the following: 'student', 'tutor', 'loggedIn', 'all')")
public String getAudience() {
......@@ -110,14 +110,14 @@ public class Motd {
sessionkey = a;
}
@ApiModelProperty(required = true, value = "the couchDB ID")
@ApiModelProperty(required = true, value = "the couchDB ID")
public String get_id() {
return _id;
}
public void set_id(final String id) {
_id = id;
}
public void set_id(final String id) {
_id = id;
}
public void set_rev(final String rev) {
_rev = rev;
......
......@@ -26,7 +26,7 @@ import io.swagger.annotations.ApiModelProperty;
@ApiModel(value = "motdlist", description = "the motdlist to save the messages a user has confirmed to be read")
public class MotdList {
private String motdkeys;
private String motdkeys;
private String username;
private String _id;
private String _rev;
......@@ -40,23 +40,23 @@ public class MotdList {
motdkeys = motds;
}
@ApiModelProperty(required = true, value = "the username")
public String getUsername() {
return username;
}
@ApiModelProperty(required = true, value = "the username")
public String getUsername() {
return username;
}
public void setUsername(final String u) {
public void setUsername(final String u) {
username = u;
}
@ApiModelProperty(required = true, value = "the couchDB ID")
@ApiModelProperty(required = true, value = "the couchDB ID")
public String get_id() {
return _id;
}
public void set_id(final String id) {
_id = id;
}
public void set_id(final String id) {
_id = id;
}
public void set_rev(final String rev) {
_rev = rev;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment