@@ -0,0 +1,2368 @@
+package at.fhj.swd14.pse.like;%0D%0A%0D%0Aimport java.io.Serializable;%0D%0Aimport java.time.Instant;%0D%0A%0D%0Aimport at.fhj.swd14.pse.comment.CommentDto;%0D%0Aimport at.fhj.swd14.pse.message.MessageDto;%0D%0Aimport at.fhj.swd14.pse.user.UserDto;%0D%0A/**%0D%0A * Data transfer object for an like.%0D%0A * @author Thomas%0D%0A *%0D%0A */%0D%0Apublic class LikeDto implements Serializable %7B%0D%0A%0D%0A%09private static final long serialVersionUID = 1L;%0D%0A%09%0D%0A%09private Long id;%0D%0A%09private Instant created;%0D%0A    private Instant modified;%0D%0A    private UserDto liker;%0D%0A    private CommentDto likedComment;%0D%0A    private MessageDto likedMessage;%0D%0A    /**%0D%0A     * Construct a new like for a message.%0D%0A     * @param id The id of the like.%0D%0A     * @param liker The user, who likes the message.%0D%0A     * @param message The message, which is liked.%0D%0A     */%0D%0A    public LikeDto(Long id,UserDto liker,MessageDto message) %7B%0D%0A    %09this.id = id;%0D%0A    %09this.liker = liker;%0D%0A    %09this.likedMessage = message;%0D%0A    %09this.likedComment = null;%0D%0A    %7D%0D%0A    /**%0D%0A     * Construct a new like for a comment.%0D%0A     * @param id The id of the like.%0D%0A     * @param liker The user, who likes the comment.%0D%0A     * @param comment The comment, which is liked.%0D%0A     */%0D%0A    public LikeDto(Long id,UserDto liker,CommentDto comment) %7B%0D%0A    %09this.id = id;%0D%0A    %09this.liker = liker;%0D%0A    %09this.likedMessage = null;%0D%0A    %09this.likedComment = comment;%0D%0A    %7D%0D%0A    %0D%0A    public UserDto getLiker() %7B%0D%0A%09%09return liker;%0D%0A%09%7D%0D%0A    %0D%0A    public void setLiker(UserDto user) %7B%0D%0A    %09this.liker = user;   %09%0D%0A    %7D%0D%0A    %0D%0A    public Long getId() %7B%0D%0A    %09return this.id;%0D%0A    %7D%0D%0A    %0D%0A    public void setId(Long id) %7B%0D%0A    %09this.id = id;%0D%0A    %7D%0D%0A    %0D%0A    public Instant getTimeCreated() %7B%0D%0A    %09return this.created;%0D%0A    %7D%0D%0A    %0D%0A    public void setTimeCreated(Instant created) %7B%0D%0A    %09this.created = created;%0D%0A    %7D%0D%0A    %0D%0A    public Instant getTimeModified() %7B%0D%0A    %09return this.modified;%0D%0A    %7D%0D%0A    %0D%0A    public void setTimeModified(Instant modified) %7B%0D%0A    %09this.modified = modified;%0D%0A    %7D%0D%0A    %0D%0A    public CommentDto getLikedComment() %7B%0D%0A    %09return this.likedComment;%0D%0A    %7D%0D%0A    %0D%0A    public void setLikedComment(CommentDto comment) %7B%0D%0A    %09this.likedComment = comment;%0D%0A    %7D%0D%0A    %0D%0A    public MessageDto getLikedMessage() %7B%0D%0A    %09return this.likedMessage;%0D%0A    %7D%0D%0A    %0D%0A    public void setLikedMessage(MessageDto message) %7B%0D%0A    %09this.likedMessage = message;%0D%0A    %7D%0D%0A%7D%0D%0A

package at.fhj.swd14.pse.like in backend-interface added; LikeDto added.