-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
78 additions
and
25 deletions.
There are no files selected for viewing
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
51 changes: 51 additions & 0 deletions
51
wrapper/src/main/java/me/vinceh121/jskolengo/entities/info/Announcement.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,51 @@ | ||
package me.vinceh121.jskolengo.entities.info; | ||
|
||
import com.github.jasminb.jsonapi.annotations.Type; | ||
|
||
@Type("announcement") | ||
public class Announcement extends News { | ||
private String level; | ||
|
||
public String getLevel() { | ||
return level; | ||
} | ||
|
||
public void setLevel(String level) { | ||
this.level = level; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Announcement [level=" | ||
+ level | ||
+ ", getAttachments()=" | ||
+ getAttachments() | ||
+ ", getPublicationDateTime()=" | ||
+ getPublicationDateTime() | ||
+ ", getTitle()=" | ||
+ getTitle() | ||
+ ", getShortContent()=" | ||
+ getShortContent() | ||
+ ", getContent()=" | ||
+ getContent() | ||
+ ", getUrl()=" | ||
+ getUrl() | ||
+ ", getLinkedInfoUrl()=" | ||
+ getLinkedInfoUrl() | ||
+ ", getLinkedWebSiteUrl()=" | ||
+ getLinkedWebSiteUrl() | ||
+ ", getSchool()=" | ||
+ getSchool() | ||
+ ", getAuthor()=" | ||
+ getAuthor() | ||
+ ", getIllustration()=" | ||
+ getIllustration() | ||
+ ", getId()=" | ||
+ getId() | ||
+ "]"; | ||
} | ||
|
||
public enum Level { // XXX fill up | ||
INFO; | ||
} | ||
} |