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