1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | import java.util.Date;
|
---|
5 | import java.util.List;
|
---|
6 |
|
---|
7 | import org.openstreetmap.josm.data.coor.LatLon;
|
---|
8 |
|
---|
9 | public class UserInfo {
|
---|
10 | /** the user id */
|
---|
11 | private int id;
|
---|
12 | /** the display name */
|
---|
13 | private String displayName;
|
---|
14 | /** the date this user was created */
|
---|
15 | private Date accountCreated;
|
---|
16 | /** the home location */
|
---|
17 | private LatLon home;
|
---|
18 | /** the zoom level for the home location */
|
---|
19 | private int homeZoom;
|
---|
20 | /** the profile description */
|
---|
21 | private String description;
|
---|
22 | /** the list of preferred languages */
|
---|
23 | private List<String> languages;
|
---|
24 | /** the number of unread messages */
|
---|
25 | private int unreadMessages;
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Constructs a new {@code UserInfo}.
|
---|
29 | */
|
---|
30 | public UserInfo() {
|
---|
31 | id = 0;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public int getId() {
|
---|
35 | return id;
|
---|
36 | }
|
---|
37 |
|
---|
38 | public void setId(int id) {
|
---|
39 | this.id = id;
|
---|
40 | }
|
---|
41 |
|
---|
42 | public String getDisplayName() {
|
---|
43 | return displayName;
|
---|
44 | }
|
---|
45 |
|
---|
46 | public void setDisplayName(String displayName) {
|
---|
47 | this.displayName = displayName;
|
---|
48 | }
|
---|
49 |
|
---|
50 | public Date getAccountCreated() {
|
---|
51 | return accountCreated;
|
---|
52 | }
|
---|
53 |
|
---|
54 | public void setAccountCreated(Date accountCreated) {
|
---|
55 | this.accountCreated = accountCreated;
|
---|
56 | }
|
---|
57 |
|
---|
58 | public LatLon getHome() {
|
---|
59 | return home;
|
---|
60 | }
|
---|
61 |
|
---|
62 | public void setHome(LatLon home) {
|
---|
63 | this.home = home;
|
---|
64 | }
|
---|
65 |
|
---|
66 | public String getDescription() {
|
---|
67 | return description;
|
---|
68 | }
|
---|
69 |
|
---|
70 | public void setDescription(String description) {
|
---|
71 | this.description = description;
|
---|
72 | }
|
---|
73 |
|
---|
74 | public List<String> getLanguages() {
|
---|
75 | return languages;
|
---|
76 | }
|
---|
77 |
|
---|
78 | public void setLanguages(List<String> languages) {
|
---|
79 | this.languages = languages;
|
---|
80 | }
|
---|
81 |
|
---|
82 | public int getHomeZoom() {
|
---|
83 | return homeZoom;
|
---|
84 | }
|
---|
85 |
|
---|
86 | public void setHomeZoom(int homeZoom) {
|
---|
87 | this.homeZoom = homeZoom;
|
---|
88 | }
|
---|
89 |
|
---|
90 | /**
|
---|
91 | * Replies the number of unread messages
|
---|
92 | * @return the number of unread messages
|
---|
93 | * @since 6349
|
---|
94 | */
|
---|
95 | public final int getUnreadMessages() {
|
---|
96 | return unreadMessages;
|
---|
97 | }
|
---|
98 |
|
---|
99 | /**
|
---|
100 | * Sets the number of unread messages
|
---|
101 | * @param unreadMessages the number of unread messages
|
---|
102 | * @since 6349
|
---|
103 | */
|
---|
104 | public final void setUnreadMessages(int unreadMessages) {
|
---|
105 | this.unreadMessages = unreadMessages;
|
---|
106 | }
|
---|
107 | }
|
---|