XmlRpcSession
public class XmlRpcSession : LinphoneObject
The XmlRpcSession
object used to send XML-RPC requests and handle their
responses.
-
Creates a
XmlRpcRequest
from aXmlRpcSession
.Declaration
Swift
public func createRequest(returnType: XmlRpcArgType, method: String) throws -> XmlRpcRequest
Parameters
returnType
the return type of the request as a LinphoneXmlRpcArgType
method
the function name to call
Return Value
a
XmlRpcRequest
object -
Stop and unref an XML rpc session. Pending requests will be aborted.
Declaration
Swift
public func release()
-
Send an XML-RPC request.
Declaration
Swift
public func sendRequest(request: XmlRpcRequest)
Parameters
request
The
XmlRpcRequest
to be sent.