Compare commits
3 Commits
79f8c4fe68
...
1c4c1bd68a
Author | SHA1 | Date |
---|---|---|
Tristan B. Velloza Kildaire | 1c4c1bd68a | |
Tristan B. Velloza Kildaire | bc35ab7f0e | |
Tristan B. Velloza Kildaire | 77b3fc4124 |
|
@ -7,10 +7,11 @@ public class User
|
|||
{
|
||||
// TODO: Fields
|
||||
private string name, id, hostname, ip;
|
||||
private string realname, vhost;
|
||||
private string realname, vhost, servername, modes;
|
||||
|
||||
private long clientPort, serverPort;
|
||||
private DateTime connectedSince, idleSince;
|
||||
private long reputation;
|
||||
|
||||
|
||||
|
||||
|
@ -30,6 +31,9 @@ public class User
|
|||
JSONValue userBlock = jsonIn["user"];
|
||||
user.realname = userBlock["realname"].str();
|
||||
user.vhost = userBlock["vhost"].str();
|
||||
user.servername = userBlock["servername"].str();
|
||||
user.reputation = userBlock["reputation"].integer();
|
||||
user.modes = userBlock["modes"].str();
|
||||
|
||||
|
||||
|
||||
|
@ -61,5 +65,18 @@ public class User
|
|||
return vhost;
|
||||
}
|
||||
|
||||
|
||||
public string getServer()
|
||||
{
|
||||
return servername;
|
||||
}
|
||||
|
||||
public long getReputation()
|
||||
{
|
||||
return reputation;
|
||||
}
|
||||
|
||||
public string getModes()
|
||||
{
|
||||
return modes;
|
||||
}
|
||||
}
|
|
@ -12,3 +12,10 @@ html
|
|||
<div>
|
||||
<h2>#{user.getRealname()}</h2>
|
||||
<p><i>#{user.getNick()}@#{user.getVHost()}</i></p>
|
||||
|
||||
<b>Reputation</b>: #{user.getReputation()}
|
||||
<br>
|
||||
<b>Modes</b>: #{user.getModes()}
|
||||
<br>
|
||||
<b>Server</b>: #{user.getServer()}
|
||||
<br>
|
||||
|
|
Loading…
Reference in New Issue