package com.mosquito.project.domain;

import java.io.Serializable;

public class LeaderboardEntry implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long userId;
    private String userName;
    private String avatar;      // 用户头像URL
    private int totalInvites;   // 邀请总数
    private int score;

    public LeaderboardEntry(Long userId, String userName, int score) {
        this.userId = userId;
        this.userName = userName;
        this.score = score;
    }

    public LeaderboardEntry(Long userId, String userName, String avatar, int totalInvites, int score) {
        this.userId = userId;
        this.userName = userName;
        this.avatar = avatar;
        this.totalInvites = totalInvites;
        this.score = score;
    }

    // Getters and Setters
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getTotalInvites() {
        return totalInvites;
    }

    public void setTotalInvites(int totalInvites) {
        this.totalInvites = totalInvites;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
