View Javadoc
1   package info.mikethomas.fahweb.model;
2   
3   /*
4    * #%L
5    * This file is part of FAHWeb.
6    * %%
7    * Copyright (C) 2012 - 2017 Michael Thomas <mikepthomas@outlook.com>
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the
12   * License, or (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  /**
26   * <p>User class.</p>
27   *
28   * @author Michael Thomas (mikepthomas@outlook.com)
29   * @version $Id: $Id
30   */
31  public class User {
32  
33      private int uniqueId;
34      private String name;
35      private long newCredit;
36      private long sum;
37      private int team;
38  
39      /**
40       * <p>Constructor for User.</p>
41       */
42      public User() {
43          super();
44      }
45  
46      /**
47       * <p>Constructor for User.</p>
48       *
49       * @param name a {@link java.lang.String} object.
50       * @param newCredit a long.
51       * @param sum a int.
52       * @param team a int.
53       */
54      public User(String name, long newCredit, long sum, int team) {
55          this.name = name;
56          this.newCredit = newCredit;
57          this.sum = sum;
58          this.team = team;
59      }
60  
61      /**
62       * Get the value of uniqueId
63       *
64       * @return the value of uniqueId
65       */
66      public int getUniqueId() {
67          return uniqueId;
68      }
69  
70      /**
71       * Set the value of uniqueId
72       *
73       * @param uniqueId new value of uniqueId
74       */
75      public void setUniqueId(int uniqueId) {
76          this.uniqueId = uniqueId;
77      }
78  
79      /**
80       * Get the value of name
81       *
82       * @return the value of name
83       */
84      public String getName() {
85          return name;
86      }
87  
88      /**
89       * Set the value of name
90       *
91       * @param name new value of name
92       */
93      public void setName(String name) {
94          this.name = name;
95      }
96  
97      /**
98       * Get the value of newCredit
99       *
100      * @return the value of newCredit
101      */
102     public long getNewCredit() {
103         return newCredit;
104     }
105 
106     /**
107      * Set the value of newCredit
108      *
109      * @param newCredit new value of newCredit
110      */
111     public void setNewCredit(long newCredit) {
112         this.newCredit = newCredit;
113     }
114 
115     /**
116      * Get the value of sum
117      *
118      * @return the value of sum
119      */
120     public long getSum() {
121         return sum;
122     }
123 
124     /**
125      * Set the value of sum
126      *
127      * @param sum new value of sum
128      */
129     public void setSum(long sum) {
130         this.sum = sum;
131     }
132 
133     /**
134      * Get the value of team
135      *
136      * @return the value of team
137      */
138     public int getTeam() {
139         return team;
140     }
141 
142     /**
143      * Set the value of team
144      *
145      * @param team new value of team
146      */
147     public void setTeam(int team) {
148         this.team = team;
149     }
150 }