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;
011import java.util.ArrayList;
012import java.util.List;
013
014import org.dellroad.jibxbindings.twilio.Method;
015
016/**
017 * TwiML <code>&lt;Gather&gt;</code> verb.
018 */
019public class Gather implements Verb {
020
021    public static final int DEFAULT_TIMEOUT = 5;
022    public static final String DEFAULT_FINISH_ON_KEY = "#";
023
024    private URI action;
025    private Method method = Method.POST;
026    private int timeout = DEFAULT_TIMEOUT;
027    private String finishOnKey = DEFAULT_FINISH_ON_KEY;
028    private int numDigits = Integer.MAX_VALUE;;
029    private List<GatherVerb> verbs = new ArrayList<GatherVerb>();
030
031    public URI getAction() {
032        return this.action;
033    }
034    public void setAction(URI action) {
035        this.action = action;
036    }
037
038    public Method getMethod() {
039        return this.method;
040    }
041    public void setMethod(Method method) {
042        this.method = method;
043    }
044
045    public int getTimeout() {
046        return this.timeout;
047    }
048    public void setTimeout(int timeout) {
049        this.timeout = timeout;
050    }
051
052    public String getFinishOnKey() {
053        return this.finishOnKey;
054    }
055    public void setFinishOnKey(String finishOnKey) {
056        this.finishOnKey = finishOnKey;
057    }
058
059    public int getNumDigits() {
060        return this.numDigits;
061    }
062    public void setNumDigits(int numDigits) {
063        this.numDigits = numDigits;
064    }
065
066    public List<GatherVerb> getVerbs() {
067        return this.verbs;
068    }
069    public void setVerbs(List<GatherVerb> verbs) {
070        this.verbs = verbs;
071    }
072}
073