react-native-twilio-voice-sdk-upgrade
Version:
React Native wrapper for Twilio Programmable Voice SDK
26 lines (25 loc) • 569 B
JavaScript
class AbstractCall {
constructor() {
this.updateFromNativeCallObject = (call) => {
if (call.sid !== undefined) {
this._sid = call.sid;
}
if (call.from !== undefined) {
this._from = call.from;
}
if (call.to !== undefined) {
this._to = call.to;
}
};
}
get to() {
return this._to;
}
get from() {
return this._from;
}
get sid() {
return this._sid;
}
}
export default AbstractCall;