com.planet_ink.coffee_mud.Common.interfaces
Class Poll.PollResult

java.lang.Object
  extended by com.planet_ink.coffee_mud.Common.interfaces.Poll.PollResult
Enclosing interface:
Poll

public static class Poll.PollResult
extends java.lang.Object

A class to represent a single vote by a single user in this poll.


Field Summary
 java.lang.String answer
          cardinal order number of the option chosen by this user in the poll
 java.lang.String ip
          the user name of the user who has voted
 java.lang.String user
          The user name of the user who has voted
 
Constructor Summary
Poll.PollResult(java.lang.String usr, java.lang.String ipaddr, java.lang.String ans)
          Create a poll result object denoting the vote of a particular user for a particular poll option.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

user

public java.lang.String user
The user name of the user who has voted


ip

public java.lang.String ip
the user name of the user who has voted


answer

public java.lang.String answer
cardinal order number of the option chosen by this user in the poll

Constructor Detail

Poll.PollResult

public Poll.PollResult(java.lang.String usr,
                       java.lang.String ipaddr,
                       java.lang.String ans)
Create a poll result object denoting the vote of a particular user for a particular poll option.

Parameters:
usr - user name of the user who has voted
ipaddr - user name of the user who has voted
ans - cardinal order number of the option chosen by this user in the poll