001 002/* 003 * Copyright (C) 2011 Archie L. Cobbs. All rights reserved. 004 * 005 * $Id$ 006 */ 007 008package org.dellroad.jibxbindings.twilio.restapi; 009 010import java.util.Date; 011 012/** 013 * Represents a <code><SMSMessage></code>. 014 */ 015public class SMSMessage extends SidAccountResource implements TwilioResponseContent { 016 017 private Date dateSent; 018 private String to; 019 private String from; 020 private String body; 021 private SMSStatus status; 022 private SMSDirection direction; 023 private double price; 024 private String priceUnit; 025 private int errorCode; 026 private String errorMessage; 027 private APIVersion apiVersion; 028 029 public Date getDateSent() { 030 return this.dateSent; 031 } 032 public void setDateSent(Date dateSent) { 033 this.dateSent = dateSent; 034 } 035 036 public String getTo() { 037 return this.to; 038 } 039 public void setTo(String to) { 040 this.to = to; 041 } 042 043 public String getFrom() { 044 return this.from; 045 } 046 public void setFrom(String from) { 047 this.from = from; 048 } 049 050 public String getBody() { 051 return this.body; 052 } 053 public void setBody(String body) { 054 this.body = body; 055 } 056 057 public SMSStatus getStatus() { 058 return this.status; 059 } 060 public void setStatus(SMSStatus status) { 061 this.status = status; 062 } 063 064 public SMSDirection getDirection() { 065 return this.direction; 066 } 067 public void setDirection(SMSDirection direction) { 068 this.direction = direction; 069 } 070 071 public double getPrice() { 072 return this.price; 073 } 074 public void setPrice(double price) { 075 this.price = price; 076 } 077 078 public String getPriceUnit() { 079 return this.priceUnit; 080 } 081 public void setPriceUnit(String priceUnit) { 082 this.priceUnit = priceUnit; 083 } 084 085 public int getErrorCode() { 086 return this.errorCode; 087 } 088 public void setErrorCode(int errorCode) { 089 this.errorCode = errorCode; 090 } 091 092 public String getErrorMessage() { 093 return this.errorMessage; 094 } 095 public void setErrorMessage(String errorMessage) { 096 this.errorMessage = errorMessage; 097 } 098 099 /** 100 * The version of the Twilio API used to process the SMS message. 101 */ 102 public APIVersion getAPIVersion() { 103 return this.apiVersion; 104 } 105 public void setAPIVersion(APIVersion apiVersion) { 106 this.apiVersion = apiVersion; 107 } 108} 109