Interface Report
- All Known Implementing Classes:
ReportImpl
public interface Report
A class that represents a report
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ReportItem reportItem) Add an report item to the reportgetFrom()Gets the date the data of the report starts fromintgetLimit()Gets the maximum number of report items of the report (used for paging)intGets the number of the report item to start with in the list of all report items (used for paging)longGets the sum of the number of played seconds of all report itemsgetTo()Gets the date the data of the report is referring tointgetTotal()Gets the total of report itemsintgetViews()Gets the sum of views of all report itemsvoidSets the the date the data of the report starts fromvoidsetLimit(int limit) Sets the maximum number of report items of the report (used for paging)voidsetOffset(int offset) Sets the number of the report item to start with in the list of all report items (used for paging)voidsetPlayed(long played) Sets the sum of the number of played seconds of all report itemsvoidSets the date the data of the report is referring tovoidsetTotal(int total) Sets the total of report itemsvoidsetViews(int views) Sets the sum of views of all report items
-
Method Details
-
setFrom
Sets the the date the data of the report starts from- Parameters:
from-
-
setTo
Sets the date the data of the report is referring to- Parameters:
to-
-
setViews
void setViews(int views) Sets the sum of views of all report items- Parameters:
views-
-
setPlayed
void setPlayed(long played) Sets the sum of the number of played seconds of all report items- Parameters:
played-
-
setTotal
void setTotal(int total) Sets the total of report items- Parameters:
total-
-
setLimit
void setLimit(int limit) Sets the maximum number of report items of the report (used for paging)- Parameters:
limit-
-
setOffset
void setOffset(int offset) Sets the number of the report item to start with in the list of all report items (used for paging)- Parameters:
offset-
-
add
Add an report item to the report- Parameters:
reportItem-
-
getFrom
Calendar getFrom()Gets the date the data of the report starts from- Returns:
-
getTo
Calendar getTo()Gets the date the data of the report is referring to- Returns:
-
getViews
int getViews()Gets the sum of views of all report items- Returns:
-
getPlayed
long getPlayed()Gets the sum of the number of played seconds of all report items- Returns:
-
getTotal
int getTotal()Gets the total of report items- Returns:
-
getLimit
int getLimit()Gets the maximum number of report items of the report (used for paging)- Returns:
-
getOffset
int getOffset()Gets the number of the report item to start with in the list of all report items (used for paging)- Returns:
-