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.util.ArrayList;
011import java.util.Arrays;
012import java.util.Collection;
013import java.util.List;
014
015/**
016 * TwiML <code>&lt;Response&gt;</code> element.
017 */
018public class Response {
019
020    private List<Verb> verbs = new ArrayList<Verb>();
021
022    public Response() {
023    }
024
025    public Response(Collection<? extends Verb> verbs) {
026        this.verbs.addAll(verbs);
027    }
028
029    public Response(Verb... verbs) {
030        this(Arrays.asList(verbs));
031    }
032
033    /**
034     * Get the {@link Verb}s contained in this response.
035     */
036    public List<Verb> getVerbs() {
037        return this.verbs;
038    }
039    public void setVerbs(List<Verb> verbs) {
040        this.verbs = verbs;
041    }
042}
043