コード例 #1
0
ファイル: AcceptCall.cs プロジェクト: egramtel/tdsharp
 /// <summary>
 /// Accepts an incoming call
 /// </summary>
 public static Task <Ok> AcceptCallAsync(
     this Client client, int callId = default, CallProtocol protocol = default)
 {
     return(client.ExecuteAsync(new AcceptCall
     {
         CallId = callId, Protocol = protocol
     }));
 }
コード例 #2
0
 /// <summary>
 /// Creates a new call
 /// </summary>
 public static Task <CallId> CreateCallAsync(
     this Client client, long userId = default, CallProtocol protocol = default, bool isVideo = default)
 {
     return(client.ExecuteAsync(new CreateCall
     {
         UserId = userId, Protocol = protocol, IsVideo = isVideo
     }));
 }
コード例 #3
0
 /// <summary>
 /// Creates a new call
 /// </summary>
 public static Task <CallId> CreateCallAsync(this Client client,
                                             int userId            = default(int),
                                             CallProtocol protocol = default(CallProtocol))
 {
     return(client.ExecuteAsync(new CreateCall
     {
         UserId = userId,
         Protocol = protocol,
     }));
 }
コード例 #4
0
        public static eConf.eProtocol GetEconfProtocol(CallProtocol _protocol)
        {
            eConf.eProtocol protocol = eConf.eProtocol.ePROTOCOL_SIP;
            switch (_protocol)
            {
            case CallProtocol.Sip: protocol = eConf.eProtocol.ePROTOCOL_SIP; break;
            }

            return(protocol);
        }