source: josm/trunk/src/org/openstreetmap/josm/data/osm/UserInfo.java@ 7501

Last change on this file since 7501 was 6349, checked in by Don-vip, 10 years ago

fix #9234 - For identified users, notifies periodically (every 5 minutes by default) of new OSM messages he/she has received. All of this is configurable in server access preferences.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4import java.util.Date;
5import java.util.List;
6
7import org.openstreetmap.josm.data.coor.LatLon;
8
9public 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 public void setId(int id) {
38 this.id = id;
39 }
40 public String getDisplayName() {
41 return displayName;
42 }
43 public void setDisplayName(String displayName) {
44 this.displayName = displayName;
45 }
46 public Date getAccountCreated() {
47 return accountCreated;
48 }
49 public void setAccountCreated(Date accountCreated) {
50 this.accountCreated = accountCreated;
51 }
52 public LatLon getHome() {
53 return home;
54 }
55 public void setHome(LatLon home) {
56 this.home = home;
57 }
58 public String getDescription() {
59 return description;
60 }
61 public void setDescription(String description) {
62 this.description = description;
63 }
64 public List<String> getLanguages() {
65 return languages;
66 }
67 public void setLanguages(List<String> languages) {
68 this.languages = languages;
69 }
70
71 public int getHomeZoom() {
72 return homeZoom;
73 }
74
75 public void setHomeZoom(int homeZoom) {
76 this.homeZoom = homeZoom;
77 }
78
79 /**
80 * Replies the number of unread messages
81 * @return the number of unread messages
82 * @since 6349
83 */
84 public final int getUnreadMessages() {
85 return unreadMessages;
86 }
87
88 /**
89 * Sets the number of unread messages
90 * @param unreadMessages the number of unread messages
91 * @since 6349
92 */
93 public final void setUnreadMessages(int unreadMessages) {
94 this.unreadMessages = unreadMessages;
95 }
96}
Note: See TracBrowser for help on using the repository browser.