From 11059e54480499b3a173ca5e6db30de45cf15196 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 11 Oct 2010 19:34:29 +0200 Subject: [PATCH] Add profile stub. --- .../java/net/pterodactylus/sone/data/Profile.java | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/main/java/net/pterodactylus/sone/data/Profile.java 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; + } + +} -- 2.7.4