2015-09-04 02:15:03 +02:00
|
|
|
package org.schabi.newpipe;
|
|
|
|
|
2015-11-04 11:41:17 +05:30
|
|
|
import java.util.ArrayList;
|
2015-09-04 02:15:03 +02:00
|
|
|
import java.util.Vector;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by Christian Schabesberger on 10.08.15.
|
|
|
|
*
|
|
|
|
* Copyright (C) Christian Schabesberger 2015 <chris.schabesberger@mailbox.org>
|
|
|
|
* SearchEngine.java is part of NewPipe.
|
|
|
|
*
|
|
|
|
* NewPipe is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* NewPipe 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 General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with NewPipe. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public interface SearchEngine {
|
|
|
|
|
|
|
|
|
|
|
|
class Result {
|
|
|
|
public String errorMessage = "";
|
|
|
|
public String suggestion = "";
|
|
|
|
public Vector<VideoInfoItem> resultList = new Vector<>();
|
|
|
|
}
|
|
|
|
|
2015-11-04 11:41:17 +05:30
|
|
|
ArrayList<String> suggestionList(String query);
|
2015-11-05 13:03:47 +05:30
|
|
|
|
2015-11-04 12:42:17 +00:00
|
|
|
//Result search(String query, int page);
|
|
|
|
Result search(String query, int page, String contentCountry);
|
2015-09-04 02:15:03 +02:00
|
|
|
}
|