package ecse414.fall2015.group21.game.shared.data;

/**
 *
 */
public abstract class TimeSyncFulfillPacket implements Packet {
    public final long time;

    protected TimeSyncFulfillPacket(long time) {
        this.time = time;
    }

    @Override
    public Type getType() {
        return Type.TIME_SYNC_FULFILL;
    }

    @Override
    public byte[] asRaw() {
        return new byte[0];
    }

    public static class UDP extends TimeSyncFulfillPacket implements Packet.UDP {
        public final int requestNumber;

        public UDP(long time, int requestNumber) {
            super(time);
            this.requestNumber = requestNumber;
        }

        @Override
        public byte[] asRaw() {
            return super.asRaw();
        }
    }

    public static class TCP extends TimeSyncRequestPacket implements Packet.TCP {
        public TCP() {
        }
    }
}

@@ -803,15 +803,15 @@
 Sync
-Request
+Fulfill
 Pack
@@ -856,19 +856,53 @@
 lic TCP(
-) %7B
+long time) %7B%0A            super(time);
 %0A       

Fix small mistake with TimeSyncFulfillPacket