From: David ‘Bombe’ Roden Date: Mon, 11 Oct 2010 17:34:29 +0000 (+0200) Subject: Add profile stub. X-Git-Tag: 0.1-RC1~552 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=11059e54480499b3a173ca5e6db30de45cf15196;p=Sone.git Add profile stub. --- 11059e54480499b3a173ca5e6db30de45cf15196 diff --git a/src/main/java/net/pterodactylus/sone/data/Profile.java b/src/main/java/net/pterodactylus/sone/data/Profile.java new file mode 100644 index 0000000..b1040b3 --- /dev/null +++ b/src/main/java/net/pterodactylus/sone/data/Profile.java @@ -0,0 +1,49 @@ +/* + * FreenetSone - Profile.java - Copyright © 2010 David Roden + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.pterodactylus.sone.data; + +/** + * A profile stores personal information about a {@link User}. + * + * @author David ‘Bombe’ Roden + */ +public class Profile { + + /** The name of the user this profile belongs to. */ + private final String username; + + /** + * Creates a new profile. + * + * @param username + * The name of the user this profile belongs to + */ + public Profile(String username) { + this.username = username; + } + + /** + * Returns the name of the user this profile belongs to. + * + * @return The name of the user this profile belongs to + */ + public String username() { + return username; + } + +}