/*************************************************************************
* Copyright 2014 Infield Design
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @author Gaetan Marmasse <gaetan@infielddesign.com>
*
*************************************************************************/
package com.infield.googlesearch.model;
import java.util.LinkedList;
public class ResultList {
private String formattedSearchTime;
private double searchTime;
private String formattedTotalResults;
private long totalResults;
private long totalPages;
private long pagesToShow;
private long startPage;
private long endPage;
private long currentTab;
private LinkedList<ResultItem> resultItems;
/**
* Gets the result items
* @return List<ResultItem> the list of result items
*/
public LinkedList<ResultItem> getResultItems() {
return resultItems;
}
/**
* Sets the result Item list
* @param resultItems
*/
public ResultList setResultItems(LinkedList<ResultItem> resultItems) {
this.resultItems = resultItems;
return this;
}
/**
* Gets the formatted search time
* @return
*/
public String getFormattedSearchTime() {
return formattedSearchTime;
}
/**
* Sets the formatted search time
* @param formattedSearchTime
*/
public ResultList setFormattedSearchTime(String formattedSearchTime){
this.formattedSearchTime = formattedSearchTime;
return this;
}
/**
* Gets the search time
* @return
*/
public double getSearchTime(){
return searchTime;
}
/**
* Sets the search Time
* @param searchTime
*/
public ResultList setSearchTime(double searchTime){
this.searchTime = searchTime;
return this;
}
/**
* Gets the formatted search result count
* @return
*/
public String getFormattedTotalResults(){
return formattedTotalResults;
}
/**
* Sets the formatted total result count
* @param formattedTotalResults
*/
public ResultList setFormattedTotalResults(String formattedTotalResults){
this.formattedTotalResults = formattedTotalResults;
return this;
}
/**
* Gest the total number of results
* @return
*/
public long getTotalResults(){
return totalResults;
}
/**
* Sets the total result count
* @param totalResults
*/
public ResultList setTotalResults(long totalResults){
this.totalResults = totalResults;
return this;
}
/**
* @return the totalPages
*/
public long getTotalPages() {
return totalPages;
}
/**
* @param totalPages the totalPages to set
*/
public ResultList setTotalPages(long totalPages) {
this.totalPages = totalPages;
return this;
}
/**
* @return the startPage
*/
public long getStartPage() {
return startPage;
}
/**
* @param startPage the startPage to set
*/
public ResultList setStartPage(long startPage) {
this.startPage = startPage;
return this;
}
/**
* @return the endPage
*/
public long getEndPage() {
return endPage;
}
/**
* @param endPage the endPage to set
*/
public ResultList setEndPage(long endPage) {
this.endPage = endPage;
return this;
}
/**
* @return the currentTab
*/
public long getCurrentTab() {
return currentTab;
}
/**
* @param currentTab the currentTab to set
*/
public ResultList setCurrentTab(long currentTab) {
this.currentTab = currentTab;
return this;
}
/**
* @return the pagesToShow
*/
public long getPagesToShow() {
return pagesToShow;
}
public ResultList setPagesToShow(long pagesToShow) {
this.pagesToShow = pagesToShow;
return this;
}
}