001 002/* 003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.twilio.twiml; 009 010import java.net.URI; 011 012/** 013 * TwiML <code><Play></code> verb. 014 */ 015public class Play implements GatherVerb { 016 017 public static final int DEFAULT_LOOP = 1; 018 019 private int loop = DEFAULT_LOOP; 020 private URI uri; 021 022 public Play() { 023 } 024 025 public Play(URI uri) { 026 this.setURI(uri); 027 } 028 029 public Play(URI uri, int loop) { 030 this(uri); 031 this.setLoop(loop); 032 } 033 034 public int getLoop() { 035 return this.loop; 036 } 037 public void setLoop(int loop) { 038 this.loop = loop; 039 } 040 041 public URI getURI() { 042 return this.uri; 043 } 044 public void setURI(URI uri) { 045 this.uri = uri; 046 } 047} 048