package com.mosquito.project.dto;

import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
public class ActivityStatsResponse implements Serializable {

    private static final long serialVersionUID = 1L;

    private long totalParticipants;
    private long totalShares;
    private List<DailyStats> dailyStats;

    public ActivityStatsResponse(long totalParticipants, long totalShares, List<DailyStats> dailyStats) {
        this.totalParticipants = totalParticipants;
        this.totalShares = totalShares;
        this.dailyStats = dailyStats;
    }

    public long getTotalParticipants() {
        return totalParticipants;
    }

    public void setTotalParticipants(long totalParticipants) {
        this.totalParticipants = totalParticipants;
    }

    public long getTotalShares() {
        return totalShares;
    }

    public void setTotalShares(long totalShares) {
        this.totalShares = totalShares;
    }

    public List<DailyStats> getDailyStats() {
        return dailyStats;
    }

    public void setDailyStats(List<DailyStats> dailyStats) {
        this.dailyStats = dailyStats;
    }

    @NoArgsConstructor
    public static class DailyStats implements Serializable {

        private static final long serialVersionUID = 1L;
        private String date;
        private int participants;
        private int shares;

        public DailyStats(String date, int participants, int shares) {
            this.date = date;
            this.participants = participants;
            this.shares = shares;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public int getParticipants() {
            return participants;
        }

        public void setParticipants(int participants) {
            this.participants = participants;
        }

        public int getShares() {
            return shares;
        }

        public void setShares(int shares) {
            this.shares = shares;
        }
    }
}
