package se.kth.csc.payload.message;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import se.kth.csc.model.QueuePosition;
import se.kth.csc.payload.api.QueuePositionInQueueSnapshot;
import se.kth.csc.payload.api.Snapshotters;

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME)
public class QueuePositionCreatedInQueue {
    private final QueuePositionInQueueSnapshot position;
    private final String queueName;

    public QueuePositionCreatedInQueue(QueuePosition queuePosition, String queueName) {
        this.queueName = queueName;
        this.position = Snapshotters.QueuePositionInQueueSnapshotter.INSTANCE.apply(queuePosition);
    }

    public QueuePositionInQueueSnapshot getQueuePosition() {
        return position;
    }
    public String getQueueName() {
        return queueName;
    }
}

@@ -499,44 +499,8 @@
 ) %7B%0A
-        this.queueName = queueName;%0A
     
@@ -595,16 +595,52 @@
 ition);%0A
+        this.queueName = queueName;%0A
     %7D%0A%0A 

Change order of "position" and "queueName" to correspond to QueuePositionCreatedInAccount.