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