Class ReplyMessage


  • public class ReplyMessage
    extends WrapperMessage
    The basic reply message wrapper.
    • Constructor Detail

      • ReplyMessage

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

        public ReplyMessage​(Game game,
                            FreeColXMLReader xr)
                     throws javax.xml.stream.XMLStreamException,
                            FreeColException
        Create a new ReplyMessage 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.