Shared.Message Class
Message object using to allow easy communication between the client and the server by using Serialization. Message consists of a type defined below and a ArrayList of the items.

Access: Public
Base Classes: Object
  Members Description  
    ERROR Miscellaneous error, not currently used for anything

 
    BAD_ELECTION Bad election name given (closed or nonexistent)

 
    BAD_CANDIDATE Bad candidate name given for vote request

 
    QUERY_CANDIDATES Give me the list of candidates for the named election

 
    LIST_CANDIDATES Here is the list of candidates

 
    SEND_VOTE Here is my vote for election + candidate

 
    ACK_VOTE We got your vote

 
    type    
    items    
    Message Constructor

 
    Message Constructor with the fields given