Example #1
0
        /// <summary>
        /// Get Communication Info
        /// </summary>
        /// <param name="communication">tp! Communication</param>
        /// <returns>Communication Info</returns>
        public static IDictionary <string, object> GetInfo(thinkproject.Communication communication)
        {
            var  info = communication.GetDetails(ApiConnection.GetConnection());
            Type t    = info.GetType();

            return(info);
        }
Example #2
0
 /// <summary>
 /// Get Communication API Url
 /// </summary>
 /// <param name="communication">tp! Communication</param>
 /// <returns>Url</returns>
 public static string GetUrl(thinkproject.Communication communication)
 {
     return(communication.Url);
 }
Example #3
0
 /// <summary>
 /// Get Communication Name
 /// </summary>
 /// <param name="communication">tp! Communication</param>
 /// <returns>Name</returns>
 public static string GetName(thinkproject.Communication communication)
 {
     return(communication.Title);
 }
Example #4
0
 /// <summary>
 /// Get DocumentFile API Url
 /// </summary>
 /// <param name="documentFile">tp! DocumentFile</param>
 /// <returns>Url</returns>
 public static string GetUrl(thinkproject.Communication documentFile)
 {
     return(documentFile.Url);
 }