ch.loway.oss.ari4java.generated.ari_8_0_0.models.Channel_impl_ari_8_0_0 Maven / Gradle / Ivy
package ch.loway.oss.ari4java.generated.ari_8_0_0.models;
// ----------------------------------------------------
// THIS CLASS WAS GENERATED AUTOMATICALLY
// PLEASE DO NOT EDIT
// Generated on: Sat Aug 14 16:51:35 SAST 2021
// ----------------------------------------------------
import ch.loway.oss.ari4java.generated.models.*;
import ch.loway.oss.ari4java.generated.models.Module;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* A specific communication connection between Asterisk and an Endpoint. Defined in file:
* channels.json Generated by: Model
*/
public class Channel_impl_ari_8_0_0 implements Channel, java.io.Serializable {
private static final long serialVersionUID = 1L;
private String accountcode;
public String getAccountcode() {
return accountcode;
}
@JsonDeserialize(as = String.class)
public void setAccountcode(String val) {
accountcode = val;
}
private CallerID caller;
public CallerID getCaller() {
return caller;
}
@JsonDeserialize(as = CallerID_impl_ari_8_0_0.class)
public void setCaller(CallerID val) {
caller = val;
}
private Object channelvars;
public Object getChannelvars() {
return channelvars;
}
@JsonDeserialize(using = com.fasterxml.jackson.databind.deser.std.UntypedObjectDeserializer.class)
public void setChannelvars(Object val) {
channelvars = val;
}
private CallerID connected;
public CallerID getConnected() {
return connected;
}
@JsonDeserialize(as = CallerID_impl_ari_8_0_0.class)
public void setConnected(CallerID val) {
connected = val;
}
private Date creationtime;
public Date getCreationtime() {
return new Date(creationtime.getTime());
}
@JsonDeserialize(as = Date.class)
public void setCreationtime(Date val) {
creationtime = new Date(val.getTime());
}
private DialplanCEP dialplan;
public DialplanCEP getDialplan() {
return dialplan;
}
@JsonDeserialize(as = DialplanCEP_impl_ari_8_0_0.class)
public void setDialplan(DialplanCEP val) {
dialplan = val;
}
private String id;
public String getId() {
return id;
}
@JsonDeserialize(as = String.class)
public void setId(String val) {
id = val;
}
private String language;
public String getLanguage() {
return language;
}
@JsonDeserialize(as = String.class)
public void setLanguage(String val) {
language = val;
}
private String name;
public String getName() {
return name;
}
@JsonDeserialize(as = String.class)
public void setName(String val) {
name = val;
}
private String state;
public String getState() {
return state;
}
@JsonDeserialize(as = String.class)
public void setState(String val) {
state = val;
}
/* No missing signatures from interface */
public String toString() {
return "Channel[id=" + id + ", name=" + name + "]";
}
}