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 012import org.dellroad.jibxbindings.twilio.Method; 013 014/** 015 * TwiML <code><Sms></code> verb. 016 */ 017public class Sms implements Verb { 018 019 private String to; 020 private String from; 021 private URI action; 022 private Method method = Method.POST; 023 private URI statusCallback; 024 private String text; 025 026 public String getTo() { 027 return this.to; 028 } 029 public void setTo(String to) { 030 this.to = to; 031 } 032 033 public String getFrom() { 034 return this.from; 035 } 036 public void setFrom(String from) { 037 this.from = from; 038 } 039 040 public URI getAction() { 041 return this.action; 042 } 043 public void setAction(URI action) { 044 this.action = action; 045 } 046 047 public Method getMethod() { 048 return this.method; 049 } 050 public void setMethod(Method method) { 051 this.method = method; 052 } 053 054 public URI getStatusCallback() { 055 return this.statusCallback; 056 } 057 public void setStatusCallback(URI statusCallback) { 058 this.statusCallback = statusCallback; 059 } 060 061 public String getText() { 062 return this.text; 063 } 064 public void setText(String text) { 065 this.text = text; 066 } 067} 068