package server.logic.ws_protocol.JSON.handlers.auth.entyties;

import server.logic.ws_protocol.JSON.entyties.Net_Response;

import java.util.ArrayList;
import java.util.List;

public class Net_ListEspPairingRequests_Response extends Net_Response {
    private List<PairingRequestItem> requests = new ArrayList<>();

    public List<PairingRequestItem> getRequests() {
        return requests;
    }

    public void setRequests(List<PairingRequestItem> requests) {
        this.requests = requests;
    }

    public static class PairingRequestItem {
        private String pairingId;
        private String state;
        private String requesterSessionKey;
        private int requesterSessionType;
        private String requesterClientPlatform;
        private int payloadType;
        private String shortCode;
        private String fingerprintB58;
        private long createdAtMs;
        private long expiresAtMs;
        private boolean deliveredToHomeserver;

        public String getPairingId() {
            return pairingId;
        }

        public void setPairingId(String pairingId) {
            this.pairingId = pairingId;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getRequesterSessionKey() {
            return requesterSessionKey;
        }

        public void setRequesterSessionKey(String requesterSessionKey) {
            this.requesterSessionKey = requesterSessionKey;
        }

        public int getRequesterSessionType() {
            return requesterSessionType;
        }

        public void setRequesterSessionType(int requesterSessionType) {
            this.requesterSessionType = requesterSessionType;
        }

        public String getRequesterClientPlatform() {
            return requesterClientPlatform;
        }

        public void setRequesterClientPlatform(String requesterClientPlatform) {
            this.requesterClientPlatform = requesterClientPlatform;
        }

        public int getPayloadType() {
            return payloadType;
        }

        public void setPayloadType(int payloadType) {
            this.payloadType = payloadType;
        }

        public String getShortCode() {
            return shortCode;
        }

        public void setShortCode(String shortCode) {
            this.shortCode = shortCode;
        }

        public String getFingerprintB58() {
            return fingerprintB58;
        }

        public void setFingerprintB58(String fingerprintB58) {
            this.fingerprintB58 = fingerprintB58;
        }

        public long getCreatedAtMs() {
            return createdAtMs;
        }

        public void setCreatedAtMs(long createdAtMs) {
            this.createdAtMs = createdAtMs;
        }

        public long getExpiresAtMs() {
            return expiresAtMs;
        }

        public void setExpiresAtMs(long expiresAtMs) {
            this.expiresAtMs = expiresAtMs;
        }

        public boolean isDeliveredToHomeserver() {
            return deliveredToHomeserver;
        }

        public void setDeliveredToHomeserver(boolean deliveredToHomeserver) {
            this.deliveredToHomeserver = deliveredToHomeserver;
        }
    }
}
