/* * Copyright (c) 2011. Gridshore * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package nl.gridshore.nosapi.mapping; import org.codehaus.jackson.annotate.JsonProperty; import org.codehaus.jackson.map.annotate.JsonDeserialize; import org.joda.time.DateTime; /** * @author Jettro Coenradie */ public class GuideItem { private String id; private String type; @JsonProperty("channel_icon") private String channelIcon; @JsonProperty("channel_code") private String channelCode; @JsonProperty("channel_name") private String channelName; private DateTime startTime; private DateTime endTime; private String genre; private String title; private String description; public String getChannelCode() { return channelCode; } public void setChannelCode(String channelCode) { this.channelCode = channelCode; } public String getChannelIcon() { return channelIcon; } public void setChannelIcon(String channelIcon) { this.channelIcon = channelIcon; } public String getChannelName() { return channelName; } public void setChannelName(String channelName) { this.channelName = channelName; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public DateTime getEndTime() { return endTime; } @JsonDeserialize(using = JsonDateTimeDeserializer.class) @JsonProperty("endtime") public void setEndTime(DateTime endTime) { this.endTime = endTime; } public String getGenre() { return genre; } public void setGenre(String genre) { this.genre = genre; } public String getId() { return id; } public void setId(String id) { this.id = id; } public DateTime getStartTime() { return startTime; } @JsonDeserialize(using = JsonDateTimeDeserializer.class) @JsonProperty("starttime") public void setStartTime(DateTime startTime) { this.startTime = startTime; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } public String getType() { return type; } public void setType(String type) { this.type = type; } }