001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.plugins.streetside.model; 003 004import java.io.Serializable; 005 006import javax.swing.ImageIcon; 007 008public class UserProfile extends KeyIndexedObject implements Serializable { 009 010 private static final long serialVersionUID = 7993340649510343946L; 011 012 private final String username; 013 private final ImageIcon avatar; 014 015 public UserProfile(String key, String username, ImageIcon avatar) { 016 super(key); 017 this.avatar = avatar; 018 this.username = username; 019 } 020 021 public String getUsername() { 022 return username; 023 } 024 025 public ImageIcon getAvatar() { 026 return avatar; 027 } 028}