001package com.plivo.api.xml; 002 003import javax.xml.bind.annotation.XmlAttribute; 004import javax.xml.bind.annotation.XmlRootElement; 005 006@XmlRootElement(name = "Hangup") 007public class Hangup extends PlivoXml implements ResponseNestable { 008 009 @XmlAttribute 010 private String reason; 011 012 @XmlAttribute 013 private Integer schedule; 014 015 public String reason() { 016 return this.reason; 017 } 018 019 public Integer schedule() { 020 return this.schedule; 021 } 022 023 public Hangup reason(final String reason) { 024 this.reason = reason; 025 return this; 026 } 027 028 public Hangup schedule(final Integer schedule) { 029 this.schedule = schedule; 030 return this; 031 } 032}