Skip to content

Commit

Permalink
feat: add new messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharking committed Oct 10, 2024
1 parent 82cc7f2 commit 55b7937
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
import io.twentysixty.sa.client.model.message.calls.CallEndRequestMessage;
import io.twentysixty.sa.client.model.message.calls.CallOfferRequestMessage;
import io.twentysixty.sa.client.model.message.calls.CallRejectRequestMessage;
import io.twentysixty.sa.client.model.message.mrtd.EMrtdDataRequestMessage;
import io.twentysixty.sa.client.model.message.mrtd.EMrtdDataSubmitMessage;
import io.twentysixty.sa.client.model.message.mrtd.MrzDataRequestMessage;
import io.twentysixty.sa.client.model.message.mrtd.MrzDataSubmitMessage;
import io.twentysixty.sa.client.util.InstantDeserializer;
Expand Down Expand Up @@ -47,7 +49,9 @@
@Type(value = CallOfferRequestMessage.class, name = "call-offer"),
@Type(value = CallRejectRequestMessage.class, name = "call-reject"),
@Type(value = MrzDataRequestMessage.class, name = "mrz-data-request"),
@Type(value = MrzDataSubmitMessage.class, name = "mrz-data-submit")
@Type(value = MrzDataSubmitMessage.class, name = "mrz-data-submit"),
@Type(value = EMrtdDataRequestMessage.class, name = "emrtd-data-request"),
@Type(value = EMrtdDataSubmitMessage.class, name = "emrtd-data-submit")
})
public abstract class BaseMessage implements Serializable {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package io.twentysixty.sa.client.model.message.mrtd;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.twentysixty.sa.client.model.message.BaseMessage;
import java.util.UUID;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class EMrtdDataRequestMessage extends BaseMessage {

private static final long serialVersionUID = -2840211856886673672L;

public static EMrtdDataRequestMessage build(UUID connectionId, UUID threadId) {
EMrtdDataRequestMessage mrzr = new EMrtdDataRequestMessage();
mrzr.setConnectionId(connectionId);
mrzr.setThreadId(threadId);
return mrzr;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package io.twentysixty.sa.client.model.message.mrtd;

import java.util.Map;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import io.twentysixty.sa.client.model.message.BaseMessage;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@JsonInclude(Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Getter
@Setter
@ToString
public class EMrtdDataSubmitMessage extends BaseMessage {

private static final long serialVersionUID = -2840411856886673672L;

private Map<String, Object> dataGroups;
}

0 comments on commit 55b7937

Please sign in to comment.