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
012import org.dellroad.jibxbindings.twilio.twiml.CallStatus;
013
014/**
015 * Represents a <code>&lt;Call&gt;</code>.
016 */
017public class Call extends SidAccountResource implements TwilioResponseContent {
018
019    private String parentCallSid;
020    private String to;
021    private String toFormatted;
022    private String from;
023    private String fromFormatted;
024    private String phoneNumberSid;
025    private CallStatus status;
026    private Date startTime;
027    private Date endTime;
028    private int duration;
029    private double price;
030    private String priceUnit;
031    private CallDirection direction;
032    private AnswerType answeredBy;
033    private String forwardedFrom;
034    private String callerName;
035    private APIVersion apiVersion;
036
037    public String getParentCallSid() {
038        return this.parentCallSid;
039    }
040    public void setParentCallSid(String parentCallSid) {
041        this.parentCallSid = parentCallSid;
042    }
043
044    public String getTo() {
045        return this.to;
046    }
047    public void setTo(String to) {
048        this.to = to;
049    }
050
051    public String getToFormatted() {
052        return this.toFormatted;
053    }
054    public void setToFormatted(String toFormatted) {
055        this.toFormatted = toFormatted;
056    }
057
058    public String getFrom() {
059        return this.from;
060    }
061    public void setFrom(String from) {
062        this.from = from;
063    }
064
065    public String getFromFormatted() {
066        return this.fromFormatted;
067    }
068    public void setFromFormatted(String fromFormatted) {
069        this.fromFormatted = fromFormatted;
070    }
071
072    public String getPhoneNumberSid() {
073        return this.phoneNumberSid;
074    }
075    public void setPhoneNumberSid(String phoneNumberSid) {
076        this.phoneNumberSid = phoneNumberSid;
077    }
078
079    public CallStatus getStatus() {
080        return this.status;
081    }
082    public void setStatus(CallStatus status) {
083        this.status = status;
084    }
085
086    public Date getStartTime() {
087        return this.startTime;
088    }
089    public void setStartTime(Date startTime) {
090        this.startTime = startTime;
091    }
092
093    public Date getEndTime() {
094        return this.endTime;
095    }
096    public void setEndTime(Date endTime) {
097        this.endTime = endTime;
098    }
099
100    public int getDuration() {
101        return this.duration;
102    }
103    public void setDuration(int duration) {
104        this.duration = duration;
105    }
106
107    public double getPrice() {
108        return this.price;
109    }
110    public void setPrice(double price) {
111        this.price = price;
112    }
113
114    public String getPriceUnit() {
115        return this.priceUnit;
116    }
117    public void setPriceUnit(String priceUnit) {
118        this.priceUnit = priceUnit;
119    }
120
121    public CallDirection getDirection() {
122        return this.direction;
123    }
124    public void setDirection(CallDirection direction) {
125        this.direction = direction;
126    }
127
128    public AnswerType getAnsweredBy() {
129        return this.answeredBy;
130    }
131    public void setAnsweredBy(AnswerType answeredBy) {
132        this.answeredBy = answeredBy;
133    }
134
135    public String getForwardedFrom() {
136        return this.forwardedFrom;
137    }
138    public void setForwardedFrom(String forwardedFrom) {
139        this.forwardedFrom = forwardedFrom;
140    }
141
142    public String getCallerName() {
143        return this.callerName;
144    }
145    public void setCallerName(String callerName) {
146        this.callerName = callerName;
147    }
148
149    public APIVersion getAPIVersion() {
150        return this.apiVersion;
151    }
152    public void setAPIVersion(APIVersion apiVersion) {
153        this.apiVersion = apiVersion;
154    }
155}
156