Fix ALL the logging!
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Client.java
1 /*
2  * Sone - Client.java - Copyright © 2010 David Roden
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 package net.pterodactylus.sone.data;
19
20 /**
21  * Container for the client information of a {@link Sone}.
22  *
23  * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
24  */
25 public class Client {
26
27         /** The name of the client. */
28         private final String name;
29
30         /** The version of the client. */
31         private final String version;
32
33         /**
34          * Creates a new client information container.
35          *
36          * @param name
37          *            The name of the client
38          * @param version
39          *            The version of the client
40          */
41         public Client(String name, String version) {
42                 this.name = name;
43                 this.version = version;
44         }
45
46         //
47         // ACCESSORS
48         //
49
50         /**
51          * Returns the name of the client.
52          *
53          * @return The name of the client
54          */
55         public String getName() {
56                 return name;
57         }
58
59         /**
60          * Returns the version of the client.
61          *
62          * @return The version of the client
63          */
64         public String getVersion() {
65                 return version;
66         }
67
68 }