package com.emonster.taroaichat.web.rest.vm;

import com.emonster.taroaichat.domain.User;
import com.emonster.taroaichat.domain.UserProfile;

/**
 * Result object for phone authentication containing tokens and user profile info
 */
public class PhoneAuthenticationVM {

    private final String accessToken;
    private final String refreshToken;
    private final User user;
    private final UserProfile userProfile;
    private final boolean isNewUser;

    public PhoneAuthenticationVM(
        String accessToken,
        String refreshToken,
        User user,
        UserProfile userProfile,
        boolean isNewUser
    ) {
        this.accessToken = accessToken;
        this.refreshToken = refreshToken;
        this.user = user;
        this.userProfile = userProfile;
        this.isNewUser = isNewUser;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public User getUser() {
        return user;
    }

    public UserProfile getUserProfile() {
        return userProfile;
    }

    public boolean isNewUser() {
        return isNewUser;
    }
}
