package com.caliverse.admin.domain.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AuthenticateResponse {
    private int status;

    private String result;

    @JsonProperty("data")
    private AuthValue authValue;

    @Data
    @Builder
    @NoArgsConstructor
    public static class AuthValue{

        private String message;
        @JsonProperty("access_token")
        private String accessToken;
        @JsonProperty("refresh_token")
        private String refreshToken;

        public AuthValue(String accessToken, String refreshToken, String message) {
            this.accessToken = accessToken;
            this.refreshToken = refreshToken;
            this.message = message;
        }
    }

}
