mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-01-07 11:48:08 -05:00
Added charset support to the server class
This commit is contained in:
parent
ca555fa4c3
commit
3e891ec1f9
@ -37,6 +37,7 @@ public class Server
|
||||
private String host;
|
||||
private int port;
|
||||
private String password;
|
||||
private String charset;
|
||||
private Identity identity;
|
||||
|
||||
private LinkedHashMap<String, Conversation> conversations = new LinkedHashMap<String, Conversation>();
|
||||
@ -173,6 +174,26 @@ public class Server
|
||||
this.port = port;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the charset to be used for all messages sent to the server
|
||||
*
|
||||
* @param charset The name of the charset
|
||||
*/
|
||||
public void setCharset(String charset)
|
||||
{
|
||||
this.charset = charset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the charset to be used with this server
|
||||
*
|
||||
* @return String charset The name of the charset
|
||||
*/
|
||||
public String getCharset()
|
||||
{
|
||||
return charset;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set connection status of server
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user