Class QuestionMessage


  • public class QuestionMessage
    extends WrapperMessage
    The basic question message wrapper.
    • Constructor Detail

      • QuestionMessage

        public QuestionMessage​(int replyId,
                               Message message)
        Create a new QuestionMessage of a given type.
        Parameters:
        replyId - The reply id.
        message - The Message to encapsulate.
      • QuestionMessage

        public QuestionMessage​(Game game,
                               FreeColXMLReader xr)
                        throws javax.xml.stream.XMLStreamException,
                               FreeColException
        Create a new QuestionMessage from a stream.
        Parameters:
        game - The Game to read within.
        xr - The FreeColXMLReader to read from.
        Throws:
        javax.xml.stream.XMLStreamException - if the stream is corrupt.
        FreeColException - if the internal message can not be read.