mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-11 05:38:00 -05:00
Server: methods to attach an identity to a server
This commit is contained in:
parent
d82db7aa38
commit
7ec5499541
@ -36,6 +36,7 @@ public class Server
|
||||
private String title;
|
||||
private String host;
|
||||
private int port;
|
||||
private Identity identity;
|
||||
|
||||
private HashMap<String, Conversation> conversations = new HashMap<String, Conversation>();
|
||||
|
||||
@ -51,6 +52,26 @@ public class Server
|
||||
this.selected = ServerInfo.DEFAULT_NAME;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the identity for this server
|
||||
*
|
||||
* @param identity The identity for this server
|
||||
*/
|
||||
public void setIdentity(Identity identity)
|
||||
{
|
||||
this.identity = identity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the identity for this server
|
||||
*
|
||||
* @return identity
|
||||
*/
|
||||
public Identity getIdentity()
|
||||
{
|
||||
return identity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get unique id of server
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user