aswi2022code-of-duty-gitlab/backend/src/main/java/cz/zcu/kiv/backendapi/catalog/CatalogItemDto.java @ ce5bfed1
1 |
package cz.zcu.kiv.backendapi.catalog; |
---|---|
2 |
|
3 |
import com.fasterxml.jackson.annotation.JsonProperty; |
4 |
import lombok.AllArgsConstructor; |
5 |
import lombok.Data; |
6 |
import lombok.NoArgsConstructor; |
7 |
|
8 |
import java.util.Collections; |
9 |
import java.util.Set; |
10 |
import java.util.UUID; |
11 |
|
12 |
/**
|
13 |
* Class representing catalog item DTO
|
14 |
*/
|
15 |
@Data
|
16 |
@AllArgsConstructor
|
17 |
@NoArgsConstructor
|
18 |
public class CatalogItemDto { |
19 |
/**
|
20 |
* Id
|
21 |
*/
|
22 |
@JsonProperty(access = JsonProperty.Access.READ_ONLY) |
23 |
private UUID id; |
24 |
|
25 |
/**
|
26 |
* Name of catalog item
|
27 |
*/
|
28 |
private String name = ""; |
29 |
|
30 |
/**
|
31 |
* Alternative names
|
32 |
*/
|
33 |
private Set<String> alternativeNames = Collections.emptySet(); |
34 |
|
35 |
/**
|
36 |
* Written forms
|
37 |
*/
|
38 |
private Set<String> writtenForms = Collections.emptySet(); |
39 |
|
40 |
/**
|
41 |
* Types
|
42 |
*/
|
43 |
private Set<String> types = Collections.emptySet(); |
44 |
|
45 |
/**
|
46 |
* Countries
|
47 |
*/
|
48 |
private Set<String> countries = Collections.emptySet(); |
49 |
|
50 |
/**
|
51 |
* Bibliography
|
52 |
*/
|
53 |
private Set<String> bibliography = Collections.emptySet(); |
54 |
|
55 |
/**
|
56 |
* Longitude
|
57 |
*/
|
58 |
private Double longitude; |
59 |
|
60 |
/**
|
61 |
* Latitude
|
62 |
*/
|
63 |
private Double latitude; |
64 |
|
65 |
/**
|
66 |
* Certainty
|
67 |
*/
|
68 |
private Integer certainty; |
69 |
|
70 |
/**
|
71 |
* Description
|
72 |
*/
|
73 |
private String description = ""; |
74 |
|
75 |
}
|