/**Copyright 2010 Research Studios Austria Forschungsgesellschaft mBH * * This file is part of easyrec. * * easyrec 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. * * easyrec 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 easyrec. If not, see <http://www.gnu.org/licenses/>. */ package org.easyrec.rest; import org.easyrec.model.core.web.Item; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * @author szavrel */ @XmlRootElement(name = "easyrec") //@XmlType(propOrder={"tenantId","action","userid","sessionid","ratingValue","item"}) public class ResponseItem { private String tenantId; private String action; private String userId; private String sessionId; private String ratingValue; private Item item; public ResponseItem() { } public ResponseItem(String tenantId, String action, String userId, String sessionId, String ratingValue, Item item) { this.tenantId = tenantId; this.action = action; this.userId = userId; this.sessionId = sessionId; this.ratingValue = ratingValue; this.item = item; } public String getAction() { return action; } public void setAction(String action) { this.action = action; } public Item getItem() { return item; } public void setItem(Item item) { this.item = item; } public String getSessionid() { return sessionId; } public void setSessionid(String sessionid) { this.sessionId = sessionid; } @XmlElement(name = "tenantid") public String getTenantId() { return tenantId; } public void setTenantId(String tenantId) { this.tenantId = tenantId; } @XmlElement(name = "userid") public String getUserid() { return userId; } public void setUserid(String userid) { this.userId = userid; } public String getRatingValue() { return ratingValue; } public void setRatingValue(String ratingValue) { this.ratingValue = ratingValue; } }