001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.data.osm; 003 004import java.util.Date; 005import java.util.List; 006 007import org.openstreetmap.josm.data.coor.LatLon; 008 009public class UserInfo { 010 /** the user id */ 011 private int id; 012 /** the display name */ 013 private String displayName; 014 /** the date this user was created */ 015 private Date accountCreated; 016 /** the home location */ 017 private LatLon home; 018 /** the zoom level for the home location */ 019 private int homeZoom; 020 /** the profile description */ 021 private String description; 022 /** the list of preferred languages */ 023 private List<String> languages; 024 /** the number of unread messages */ 025 private int unreadMessages; 026 027 /** 028 * Constructs a new {@code UserInfo}. 029 */ 030 public UserInfo() { 031 id = 0; 032 } 033 034 public int getId() { 035 return id; 036 } 037 public void setId(int id) { 038 this.id = id; 039 } 040 public String getDisplayName() { 041 return displayName; 042 } 043 public void setDisplayName(String displayName) { 044 this.displayName = displayName; 045 } 046 public Date getAccountCreated() { 047 return accountCreated; 048 } 049 public void setAccountCreated(Date accountCreated) { 050 this.accountCreated = accountCreated; 051 } 052 public LatLon getHome() { 053 return home; 054 } 055 public void setHome(LatLon home) { 056 this.home = home; 057 } 058 public String getDescription() { 059 return description; 060 } 061 public void setDescription(String description) { 062 this.description = description; 063 } 064 public List<String> getLanguages() { 065 return languages; 066 } 067 public void setLanguages(List<String> languages) { 068 this.languages = languages; 069 } 070 071 public int getHomeZoom() { 072 return homeZoom; 073 } 074 075 public void setHomeZoom(int homeZoom) { 076 this.homeZoom = homeZoom; 077 } 078 079 /** 080 * Replies the number of unread messages 081 * @return the number of unread messages 082 * @since 6349 083 */ 084 public final int getUnreadMessages() { 085 return unreadMessages; 086 } 087 088 /** 089 * Sets the number of unread messages 090 * @param unreadMessages the number of unread messages 091 * @since 6349 092 */ 093 public final void setUnreadMessages(int unreadMessages) { 094 this.unreadMessages = unreadMessages; 095 } 096}