public int ClearCallHistroy(CallHistoryType _callType)
 {
     try
     {
         LogManager.SystemLog.Debug(string.Format("Start UC_SDK_ClearCallHistroy"));
         int iRet = UCInterface.UC_SDK_ClearCallHistroy((int)_callType);
         if (iRet != 0)
         {
             LogManager.SystemLog.Error(string.Format("Start UC_SDK_ClearCallHistroy error {0}", iRet));
             return iRet;
         }
         LogManager.SystemLog.Debug(string.Format("End UC_SDK_ClearCallHistroy"));
         return iRet;
     }
     catch (System.Exception ex)
     {
         LogManager.SystemLog.Error(ex.ToString());
         return -1;
     }
 }
 public int InsertCallHistory(CallHistoryType _CallType, string _url, string _name, int _duration)
 {
     try
     {
         LogManager.SystemLog.Debug(string.Format("Start UC_SDK_InsertCallHistory"));
         int iRet = UCInterface.UC_SDK_InsertCallHistory((int)_CallType, _url, _name, _duration);
         if (iRet != 0)
         {
             LogManager.SystemLog.Error(string.Format("Start UC_SDK_InsertCallHistory error {0}", iRet));
             return iRet;
         }
         LogManager.SystemLog.Debug(string.Format("End UC_SDK_InsertCallHistory"));
         return iRet;
     }
     catch (System.Exception ex)
     {
         LogManager.SystemLog.Error(ex.ToString());
         return -1;
     }
 }
 public int QueryCallHistory(CallHistoryType _callType, int _fromIndex, int _toIndex, byte[] _result, int _size)
 {
     try
     {
         LogManager.SystemLog.Debug(string.Format("Start UC_SDK_QueryCallHistory"));
         int iRet = UCInterface.UC_SDK_QueryCallHistory(_callType, _fromIndex, _toIndex, _result, _size);
         if (iRet != 0)
         {
             LogManager.SystemLog.Error(string.Format("Start UC_SDK_QueryCallHistory error {0}", iRet));
             return(iRet);
         }
         LogManager.SystemLog.Debug(string.Format("End UC_SDK_QueryCallHistory"));
         return(iRet);
     }
     catch (System.Exception ex)
     {
         LogManager.SystemLog.Error(ex.ToString());
         return(-1);
     }
 }
 public int InsertCallHistory(CallHistoryType _CallType, string _url, string _name, int _duration)
 {
     try
     {
         LogManager.SystemLog.Debug(string.Format("Start UC_SDK_InsertCallHistory"));
         int iRet = UCInterface.UC_SDK_InsertCallHistory((int)_CallType, _url, _name, _duration);
         if (iRet != 0)
         {
             LogManager.SystemLog.Error(string.Format("Start UC_SDK_InsertCallHistory error {0}", iRet));
             return(iRet);
         }
         LogManager.SystemLog.Debug(string.Format("End UC_SDK_InsertCallHistory"));
         return(iRet);
     }
     catch (System.Exception ex)
     {
         LogManager.SystemLog.Error(ex.ToString());
         return(-1);
     }
 }
 public int ClearCallHistroy(CallHistoryType _callType)
 {
     try
     {
         LogManager.SystemLog.Debug(string.Format("Start UC_SDK_ClearCallHistroy"));
         int iRet = UCInterface.UC_SDK_ClearCallHistroy((int)_callType);
         if (iRet != 0)
         {
             LogManager.SystemLog.Error(string.Format("Start UC_SDK_ClearCallHistroy error {0}", iRet));
             return(iRet);
         }
         LogManager.SystemLog.Debug(string.Format("End UC_SDK_ClearCallHistroy"));
         return(iRet);
     }
     catch (System.Exception ex)
     {
         LogManager.SystemLog.Error(ex.ToString());
         return(-1);
     }
 }
 public int QueryCallHistory(CallHistoryType _callType, int _fromIndex, int _toIndex, byte[] _result, int _size)
 {
     try
     {
         LogManager.SystemLog.Debug(string.Format("Start UC_SDK_QueryCallHistory"));
         int iRet = UCInterface.UC_SDK_QueryCallHistory(_callType, _fromIndex, _toIndex, _result, _size);
         if (iRet != 0)
         {
             LogManager.SystemLog.Error(string.Format("Start UC_SDK_QueryCallHistory error {0}", iRet));
             return iRet;
         }
         LogManager.SystemLog.Debug(string.Format("End UC_SDK_QueryCallHistory"));
         return iRet;
     }
     catch (System.Exception ex)
     {
         LogManager.SystemLog.Error(ex.ToString());
         return -1;
     }
 }
Example #7
0
 public extern static int UC_SDK_QueryCallHistory(CallHistoryType _callType, int _fromIndex, int _toIndex, byte[] _result, int _size);//查询单人呼叫历史记录