| /******************************************************************************* |
| * Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 |
| * which accompanies this distribution. |
| * |
| * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html |
| * and the Eclipse Distribution License is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| ******************************************************************************/ |
| package eclipselink.example.moxy.twitter.model; |
| |
| import java.util.List; |
| |
| import javax.xml.bind.annotation.XmlElement; |
| |
| public class SearchResults { |
| |
| private String query; |
| private float completedIn; |
| List<Result> results; |
| |
| public String getQuery() { |
| return query; |
| } |
| |
| public void setQuery(String query) { |
| this.query = query; |
| } |
| |
| @XmlElement(name = "completed_in") |
| public float getCompletedIn() { |
| return completedIn; |
| } |
| |
| public void setCompletedIn(float completedIn) { |
| this.completedIn = completedIn; |
| } |
| |
| public List<Result> getResults() { |
| return results; |
| } |
| |
| public void setResults(List<Result> results) { |
| this.results = results; |
| } |
| |
| } |