package com.caliverse.admin.Indicators.entity;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Getter
@Setter
public class UserLoginDetailLogInfo extends LogInfoBase{
    private String logDay;
    private String accountId;
    private String userGuid;
    private String userNickname;
    private String tranId;
    private LocalDateTime loginTime;
    private LocalDateTime logoutTime;
    private String serverType;
    private String languageType;
    private Double playtime;

    public UserLoginDetailLogInfo(String logDay,
                                  String accountId,
                                  String userGuid,
                                  String userNickname,
                                  String tranId,
                                  LocalDateTime loginTime,
                                  LocalDateTime logoutTime,
                                  String serverType,
                                  String languageType,
                                  Double playtime
    ) {
        super(StatisticsType.USER_LOGIN);

        this.logDay = logDay;
        this.accountId = accountId;
        this.userGuid = userGuid;
        this.userNickname = userNickname;
        this.tranId = tranId;
        this.loginTime = loginTime;
        this.logoutTime = logoutTime;
        this.serverType = serverType;
        this.languageType = languageType;
        this.playtime = playtime;
    }

}
