| /******************************************************************************* |
| * 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.Date; |
| |
| import javax.xml.bind.annotation.XmlElement; |
| import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
| |
| public class Result { |
| |
| private Date createdAt; |
| private String fromUser; |
| private String text; |
| |
| @XmlElement(name = "created_at") |
| @XmlJavaTypeAdapter(DateAdapter.class) |
| public Date getCreatedAt() { |
| return createdAt; |
| } |
| |
| public void setCreatedAt(Date createdAt) { |
| this.createdAt = createdAt; |
| } |
| |
| @XmlElement(name = "from_user") |
| public String getFromUser() { |
| return fromUser; |
| } |
| |
| public void setFromUser(String fromUser) { |
| this.fromUser = fromUser; |
| } |
| |
| public String getText() { |
| return text; |
| } |
| |
| public void setText(String text) { |
| this.text = text; |
| } |
| |
| } |