001/** 002 * Copyright (c) 2025-2026, Michael Yang 杨福海 (fuhai999@gmail.com). 003 * <p> 004 * Licensed under the GNU Lesser General Public License (LGPL) ,Version 3.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * <p> 008 * http://www.gnu.org/licenses/lgpl-3.0.txt 009 * <p> 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package dev.tinyflow.core.searchengine; 017 018 019public abstract class BaseSearchEngine implements SearchEngine { 020 021 protected String apiUrl; 022 protected String apiKey; 023 protected String keyword; 024 protected String searchCount; 025 protected String otherProperties; 026 027 public String getApiUrl() { 028 return apiUrl; 029 } 030 031 public void setApiUrl(String apiUrl) { 032 this.apiUrl = apiUrl; 033 } 034 035 public String getApiKey() { 036 return apiKey; 037 } 038 039 public void setApiKey(String apiKey) { 040 this.apiKey = apiKey; 041 } 042 043 public String getKeyword() { 044 return keyword; 045 } 046 047 public void setKeyword(String keyword) { 048 this.keyword = keyword; 049 } 050 051 public String getSearchCount() { 052 return searchCount; 053 } 054 055 public void setSearchCount(String searchCount) { 056 this.searchCount = searchCount; 057 } 058 059 public String getOtherProperties() { 060 return otherProperties; 061 } 062 063 public void setOtherProperties(String otherProperties) { 064 this.otherProperties = otherProperties; 065 } 066 067}