|
|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
package seng302.Networking.Utils;
|
|
|
|
|
|
|
|
|
|
import org.xml.sax.InputSource;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Created by fwy13 on 25/04/17.
|
|
|
|
|
*/
|
|
|
|
|
@ -10,13 +12,13 @@ public class XMLMessage extends AC35Data{
|
|
|
|
|
private int xmlMsgSubType;
|
|
|
|
|
private int sequenceNumber;
|
|
|
|
|
private int xmlMsgLength;
|
|
|
|
|
private String xmlMessage;
|
|
|
|
|
private InputSource xmlMessage;
|
|
|
|
|
|
|
|
|
|
public static int XMLTypeRegatta = 5;
|
|
|
|
|
public static int XMLTypeRace = 6;
|
|
|
|
|
public static int XMLTypeBoat = 7;
|
|
|
|
|
|
|
|
|
|
public XMLMessage(int ackNumber, long timeStamp, int xmlMsgSubType, int sequenceNumber, int xmlMsgLength, String xmlMessage){
|
|
|
|
|
public XMLMessage(int ackNumber, long timeStamp, int xmlMsgSubType, int sequenceNumber, int xmlMsgLength, InputSource xmlMessage){
|
|
|
|
|
super(MessageType.XMLMESSAGE);
|
|
|
|
|
this.ackNumber = ackNumber;
|
|
|
|
|
this.timeStamp = timeStamp;
|
|
|
|
|
|