Esempio n. 1
0
 /// <summary>
 /// Determines whether [has call XML] [the specified call id].
 /// </summary>
 /// <param name="callId">The call id.</param>
 /// <param name="instance">The instance.</param>
 /// <returns>
 ///     <c>true</c> if [has call XML] [the specified call id]; otherwise, <c>false</c>.
 /// </returns>
 static public bool HasCallXml(string callId, string instance)
 {
     try
     {
         var record = new CallXmlRecord {
             CallId = callId, Instance = instance
         };
         return(record.Execute());
     }
     catch (Exception ex)
     {
         GeneralUtility.LogError(ex.Message, "CallXmlRecord.GetCallXml");
         return(false);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Updates the call XML.
        /// </summary>
        /// <param name="callId">The call id.</param>
        /// <param name="callXml">The call XML.</param>
        /// <param name="instance">The instance.</param>
        /// <returns></returns>
        static public bool UpdateCallXml(string callId, string callXml, string instance)
        {
            var results = false;

            try
            {
                var record = new CallXmlRecord {
                    CallId = callId, CallXml = callXml, Instance = instance
                };
                results = record.Update();
            }
            catch (Exception ex)
            {
                GeneralUtility.LogError(ex.Message, "CallXmlRecord.InsertCallXml");
            }
            return(results);
        }
Esempio n. 3
0
 /// <summary>
 /// Gets the call XML.
 /// </summary>
 /// <param name="callId">The call id.</param>
 /// <param name="instance">The instance.</param>
 /// <returns></returns>
 static public string GetCallXml(string callId, string instance)
 {
     try
     {
         var record = new CallXmlRecord {
             CallId = callId, Instance = instance
         };
         if (record.Execute())
         {
             return(record.CallXml);
         }
     }
     catch (Exception ex)
     {
         GeneralUtility.LogError(ex.Message, "CallXmlRecord.GetCallXml");
     }
     return("");
 }