This repository has been archived on 2022-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
LinkDitch/2-Application/src/main/java/link/LinkDto.java

22 lines
397 B
Java
Raw Normal View History

2022-05-16 21:09:45 +02:00
package link;
import category.Category;
import tag.Tag;
import user.Username;
import java.util.Set;
public record LinkDto(Username creator, LinkUrl url, Set<Category> categories, Set<Tag> tags) {
2022-05-27 14:00:25 +02:00
@Override
public String toString() {
return
2022-05-27 14:16:02 +02:00
url ./link-ditch catgegory get
./link-ditch catgegory get
" by " + creator +
2022-05-27 14:00:25 +02:00
" categories: " + categories +
" tags:" + tags;
}
2022-05-16 21:09:45 +02:00
}