mirror of
https://github.com/danog/php-libtgvoip.git
synced 2024-11-30 04:19:26 +01:00
Simplification
This commit is contained in:
parent
fc03f8547b
commit
f5820a7780
5
main.cpp
5
main.cpp
@ -37,7 +37,7 @@ void VoIP::__construct(Php::Parameters ¶ms)
|
||||
self["internalStorage"] = empty;
|
||||
|
||||
self["internalStorage"]["creator"] = params[0];
|
||||
self["internalStorage"]["otherID"] = params[1];
|
||||
otherID = (int) params[1];
|
||||
self["internalStorage"]["callID"] = params[2];
|
||||
self["madeline"] = params[3];
|
||||
callState = (int) params[4];
|
||||
@ -198,8 +198,7 @@ Php::Value VoIP::isCreator()
|
||||
}
|
||||
Php::Value VoIP::getOtherID()
|
||||
{
|
||||
Php::Value self(this);
|
||||
return self["internalStorage"]["otherID"];
|
||||
return otherID;
|
||||
}
|
||||
Php::Value VoIP::setMadeline(Php::Parameters ¶ms)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user