| 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 | |
|---|
| 25 | public UserInfo() { |
|---|
| 26 | id = 0; |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | public int getId() { |
|---|
| 30 | return id; |
|---|
| 31 | } |
|---|
| 32 | public void setId(int id) { |
|---|
| 33 | this.id = id; |
|---|
| 34 | } |
|---|
| 35 | public String getDisplayName() { |
|---|
| 36 | return displayName; |
|---|
| 37 | } |
|---|
| 38 | public void setDisplayName(String displayName) { |
|---|
| 39 | this.displayName = displayName; |
|---|
| 40 | } |
|---|
| 41 | public Date getAccountCreated() { |
|---|
| 42 | return accountCreated; |
|---|
| 43 | } |
|---|
| 44 | public void setAccountCreated(Date accountCreated) { |
|---|
| 45 | this.accountCreated = accountCreated; |
|---|
| 46 | } |
|---|
| 47 | public LatLon getHome() { |
|---|
| 48 | return home; |
|---|
| 49 | } |
|---|
| 50 | public void setHome(LatLon home) { |
|---|
| 51 | this.home = home; |
|---|
| 52 | } |
|---|
| 53 | public String getDescription() { |
|---|
| 54 | return description; |
|---|
| 55 | } |
|---|
| 56 | public void setDescription(String description) { |
|---|
| 57 | this.description = description; |
|---|
| 58 | } |
|---|
| 59 | public List<String> getLanguages() { |
|---|
| 60 | return languages; |
|---|
| 61 | } |
|---|
| 62 | public void setLanguages(List<String> languages) { |
|---|
| 63 | this.languages = languages; |
|---|
| 64 | } |
|---|
| 65 | |
|---|
| 66 | public int getHomeZoom() { |
|---|
| 67 | return homeZoom; |
|---|
| 68 | } |
|---|
| 69 | |
|---|
| 70 | public void setHomeZoom(int homeZoom) { |
|---|
| 71 | this.homeZoom = homeZoom; |
|---|
| 72 | } |
|---|
| 73 | } |
|---|