mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 15:00:14 -05:00
First implementation of the Identity class
This commit is contained in:
parent
3abd38e913
commit
7c48f907d9
93
src/org/yaaic/model/Identity.java
Normal file
93
src/org/yaaic/model/Identity.java
Normal file
@ -0,0 +1,93 @@
|
||||
/*
|
||||
Yaaic - Yet Another Android IRC Client
|
||||
|
||||
Copyright 2009 Sebastian Kaspari
|
||||
|
||||
This file is part of Yaaic.
|
||||
|
||||
Yaaic 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.
|
||||
|
||||
Yaaic 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 Yaaic. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package org.yaaic.model;
|
||||
|
||||
/**
|
||||
* An identity containing a nickname, an ident and a real name
|
||||
*
|
||||
* @author Sebastian Kaspari <sebastian@yaaic.org>
|
||||
*/
|
||||
public class Identity
|
||||
{
|
||||
private String nickname;
|
||||
private String ident;
|
||||
private String realname;
|
||||
|
||||
/**
|
||||
* Set the nickname of this identity
|
||||
*
|
||||
* @param nickname The nickname to be set
|
||||
*/
|
||||
public void setNickname(String nickname)
|
||||
{
|
||||
this.nickname = nickname;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the nickname of this identity
|
||||
*
|
||||
* @return The nickname
|
||||
*/
|
||||
public String getNickname()
|
||||
{
|
||||
return nickname;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the ident of this identity
|
||||
*
|
||||
* @param ident The ident to be set
|
||||
*/
|
||||
public void setIdent(String ident)
|
||||
{
|
||||
this.ident = ident;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the ident of this identity
|
||||
*
|
||||
* @return The identity
|
||||
*/
|
||||
public String getIdent()
|
||||
{
|
||||
return ident;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the real name of this identity
|
||||
*
|
||||
* @param realname The real name to be set
|
||||
*/
|
||||
public void setRealName(String realname)
|
||||
{
|
||||
this.realname = realname;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the real name of this identity
|
||||
*
|
||||
* @return The realname
|
||||
*/
|
||||
public String getRealName()
|
||||
{
|
||||
return realname;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user