package com.example.myapplication.model;

public class LoginEntity {
    private boolean isLogin;
    private String loginDeviceType;
    private Object loginId;  // Using Object as specified
    private String loginType;
    private long sessionTimeout;  // Changed to long for int64
    private String tag;
    private long tokenActiveTimeout;  // Changed to long for int64
    private String tokenName;
    private long tokenSessionTimeout;  // Changed to long for int64
    private long tokenTimeout;  // Changed to long for int64
    private String tokenValue;

    // Default constructor
    public LoginEntity() {
    }

    // Getters and Setters
    public boolean isLogin() {
        return isLogin;
    }

    public void setLogin(boolean login) {
        isLogin = login;
    }

    public String getLoginDeviceType() {
        return loginDeviceType;
    }

    public void setLoginDeviceType(String loginDeviceType) {
        this.loginDeviceType = loginDeviceType;
    }

    public Object getLoginId() {
        return loginId;
    }

    public void setLoginId(Object loginId) {
        this.loginId = loginId;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public long getSessionTimeout() {
        return sessionTimeout;
    }

    public void setSessionTimeout(long sessionTimeout) {
        this.sessionTimeout = sessionTimeout;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public long getTokenActiveTimeout() {
        return tokenActiveTimeout;
    }

    public void setTokenActiveTimeout(long tokenActiveTimeout) {
        this.tokenActiveTimeout = tokenActiveTimeout;
    }

    public String getTokenName() {
        return tokenName;
    }

    public void setTokenName(String tokenName) {
        this.tokenName = tokenName;
    }

    public long getTokenSessionTimeout() {
        return tokenSessionTimeout;
    }

    public void setTokenSessionTimeout(long tokenSessionTimeout) {
        this.tokenSessionTimeout = tokenSessionTimeout;
    }

    public long getTokenTimeout() {
        return tokenTimeout;
    }

    public void setTokenTimeout(long tokenTimeout) {
        this.tokenTimeout = tokenTimeout;
    }

    public String getTokenValue() {
        return tokenValue;
    }

    public void setTokenValue(String tokenValue) {
        this.tokenValue = tokenValue;
    }

    @Override
    public String toString() {
        return "Login{" +
                "isLogin=" + isLogin +
                ", loginDeviceType='" + loginDeviceType + '\'' +
                ", loginId=" + loginId +
                ", loginType='" + loginType + '\'' +
                ", sessionTimeout=" + sessionTimeout +
                ", tag='" + tag + '\'' +
                ", tokenActiveTimeout=" + tokenActiveTimeout +
                ", tokenName='" + tokenName + '\'' +
                ", tokenSessionTimeout=" + tokenSessionTimeout +
                ", tokenTimeout=" + tokenTimeout +
                ", tokenValue='" + tokenValue + '\'' +
                '}';
    }
}
