93 lines
2.1 KiB
Java
93 lines
2.1 KiB
Java
/**
|
|
* Copyright (C) 2017-2018 Christian Pierre MOMON <cmomon@april.org>
|
|
*
|
|
* This file is part of (April) Hebdobot.
|
|
*
|
|
* Hebdobot is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Hebdobot is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
|
|
*/
|
|
package org.april.hebdobot.bot.stats;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
/**
|
|
* The Class ReviewStat.
|
|
*/
|
|
public class ReviewData
|
|
{
|
|
private LocalDateTime date;
|
|
private int userCount;
|
|
private Long duration;
|
|
|
|
/**
|
|
* Instantiates a new stat.
|
|
*
|
|
* @param date
|
|
* the date
|
|
* @param userCount
|
|
* the user count
|
|
* @param duration
|
|
* the duration
|
|
*/
|
|
public ReviewData(final LocalDateTime date, final int userCount, final Long duration)
|
|
{
|
|
this.date = date;
|
|
this.userCount = userCount;
|
|
this.duration = duration;
|
|
}
|
|
|
|
public LocalDateTime getDate()
|
|
{
|
|
return this.date;
|
|
}
|
|
|
|
public Long getDuration()
|
|
{
|
|
return this.duration;
|
|
}
|
|
|
|
public int getUserCount()
|
|
{
|
|
return this.userCount;
|
|
}
|
|
|
|
public void setDate(final LocalDateTime date)
|
|
{
|
|
this.date = date;
|
|
}
|
|
|
|
public void setDuration(final Long duration)
|
|
{
|
|
this.duration = duration;
|
|
}
|
|
|
|
public void setUserCount(final int userCount)
|
|
{
|
|
this.userCount = userCount;
|
|
}
|
|
|
|
/* (non-Javadoc)
|
|
* @see java.lang.Object#toString()
|
|
*/
|
|
@Override
|
|
public String toString()
|
|
{
|
|
String result;
|
|
|
|
result = String.format("%s\t%d\t%d", this.date.toString(), this.userCount, this.duration);
|
|
|
|
//
|
|
return result;
|
|
}
|
|
}
|