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.net.URI;
011import java.util.Date;
012
013import org.dellroad.jibxbindings.twilio.Method;
014
015/**
016 * Represents a <code>&lt;Notification&gt;</code>.
017 */
018public class Notification extends SidAccountResource implements TwilioResponseContent {
019
020    public static final int LOG_ERROR = 0;
021    public static final int LOG_WARNING = 1;
022
023    private String callSid;
024    private APIVersion apiVersion;
025    private int log;
026    private int errorCode;
027    private URI moreInfo;
028    private String messageText;
029    private Date messageDate;
030    private URI requestURL;
031    private Method requestMethod;
032    private String requestVariables;
033    private String responseHeaders;
034    private String responseBody;
035
036    public String getCallSid() {
037        return this.callSid;
038    }
039    public void setCallSid(String callSid) {
040        this.callSid = callSid;
041    }
042
043    public APIVersion getAPIVersion() {
044        return this.apiVersion;
045    }
046    public void setAPIVersion(APIVersion apiVersion) {
047        this.apiVersion = apiVersion;
048    }
049
050    public int getLog() {
051        return this.log;
052    }
053    public void setLog(int log) {
054        this.log = log;
055    }
056
057    public int getErrorCode() {
058        return this.errorCode;
059    }
060    public void setErrorCode(int errorCode) {
061        this.errorCode = errorCode;
062    }
063
064    public URI getMoreInfo() {
065        return this.moreInfo;
066    }
067    public void setMoreInfo(URI moreInfo) {
068        this.moreInfo = moreInfo;
069    }
070
071    public String getMessageText() {
072        return this.messageText;
073    }
074    public void setMessageText(String messageText) {
075        this.messageText = messageText;
076    }
077
078    public Date getMessageDate() {
079        return this.messageDate;
080    }
081    public void setMessageDate(Date messageDate) {
082        this.messageDate = messageDate;
083    }
084
085    public URI getRequestURL() {
086        return this.requestURL;
087    }
088    public void setRequestURL(URI requestURL) {
089        this.requestURL = requestURL;
090    }
091
092    public Method getRequestMethod() {
093        return this.requestMethod;
094    }
095    public void setRequestMethod(Method requestMethod) {
096        this.requestMethod = requestMethod;
097    }
098
099    public String getRequestVariables() {
100        return this.requestVariables;
101    }
102    public void setRequestVariables(String requestVariables) {
103        this.requestVariables = requestVariables;
104    }
105
106    public String getResponseHeaders() {
107        return this.responseHeaders;
108    }
109    public void setResponseHeaders(String responseHeaders) {
110        this.responseHeaders = responseHeaders;
111    }
112
113    public String getResponseBody() {
114        return this.responseBody;
115    }
116    public void setResponseBody(String responseBody) {
117        this.responseBody = responseBody;
118    }
119}
120