001/*
002 * Copyright 2010-2013 Ning, Inc.
003 *
004 * Ning licenses this file to you under the Apache License, version 2.0
005 * (the "License"); you may not use this file except in compliance with the
006 * License.  You may obtain a copy of the License at:
007 *
008 *    http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
013 * License for the specific language governing permissions and limitations
014 * under the License.
015 */
016
017package com.ning.billing.recurly.model;
018
019import javax.xml.bind.annotation.XmlRootElement;
020import javax.xml.bind.annotation.XmlTransient;
021
022import com.fasterxml.jackson.annotation.JsonIgnore;
023import com.fasterxml.jackson.annotation.JsonSetter;
024
025@XmlRootElement(name = "errors")
026public class RecurlyErrors extends RecurlyObjects<RecurlyError> {
027
028    @XmlTransient
029    private static final String PROPERTY_NAME = "error";
030
031    @JsonSetter(value = PROPERTY_NAME)
032    @Override
033    public void setRecurlyObject(final RecurlyError value) {
034        super.setRecurlyObject(value);
035    }
036
037    @JsonIgnore
038    public RecurlyErrors getStart() {
039        return getStart(RecurlyErrors.class);
040    }
041
042    @JsonIgnore
043    public RecurlyErrors getPrev() {
044        return getPrev(RecurlyErrors.class);
045    }
046
047    @JsonIgnore
048    public RecurlyErrors getNext() {
049        return getNext(RecurlyErrors.class);
050    }
051}