42 lines
858 B
Java
42 lines
858 B
Java
package com.ttstd.signaling.bean;
|
|
|
|
import com.google.gson.Gson;
|
|
import com.google.gson.JsonParser;
|
|
|
|
import java.io.Serializable;
|
|
|
|
public class SessionDescription implements Serializable {
|
|
String type;
|
|
String description;
|
|
|
|
public SessionDescription() {
|
|
}
|
|
|
|
public SessionDescription(String type, String description) {
|
|
this.type = type;
|
|
this.description = description;
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getDescription() {
|
|
return description;
|
|
}
|
|
|
|
public void setDescription(String description) {
|
|
this.description = description;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return JsonParser.parseString(new Gson().toJson(this)).getAsJsonObject().toString();
|
|
}
|
|
|
|
}
|