/// <summary> /// Get DocumentFieldDefinition Info /// </summary> /// <param name="documentFieldDefinition">tp! DocumentFieldDefinition</param> /// <returns>DocumentFieldDefinition Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.DocumentFieldDefinition documentFieldDefinition) { var info = documentFieldDefinition.GetDetails(ApiConnection.GetConnection()); Type t = info.GetType(); return(info); }
/// <summary> /// Get Address Info /// </summary> /// <param name="address">tp! Address</param> /// <returns>Address Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.Address address) { var info = address.GetDetails(ApiConnection.GetConnection()); Type t = info.GetType(); return(info); }
/// <summary> /// Get Draft Document Info /// </summary> /// <param name="draftDocument">tp! DraftDocument</param> /// <returns>DraftDocument Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.DraftDocument draftDocument) { var info = draftDocument.GetDetails(ApiConnection.GetConnection()); Type t = info.GetType(); return(info); }
/// <summary> /// Get MemberList Info /// </summary> /// <param name="memberList">tp! MemberList</param> /// <returns>MemberList Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.MemberList memberList) { var info = memberList.GetDetails(ApiConnection.GetConnection()); Type t = info.GetType(); return(info); }
/// <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); }
/// <summary> /// Get all tp! Projects /// </summary> /// <param name="appKey">AppKey</param> /// <param name="baseUri">BaseUri</param> /// <param name="username">Username</param> /// <param name="password">Password</param> /// <returns>All tp! Projects for this user</returns> public static IEnumerable <thinkproject.Project> GetProjects(string appKey, string baseUri, string username, string password) { bool connected = ApiConnection.Connect(appKey, baseUri, username, password); if (!connected) { throw new Exception(Properties.Resources.NoConnection); } return(thinkproject.Project.GetProjects(ApiConnection.GetConnection())); }
/// <summary> /// List tp! Drafts /// </summary> /// <param name="project">tp! Project</param> /// <returns>Dictionary of Drafts</returns> public static IEnumerable <thinkproject.Draft> GetDrafts(thinkproject.Project project) { return(thinkproject.Draft.GetDrafts(project, ApiConnection.GetConnection())); }
/// <summary> /// List tp! Companies /// </summary> /// <param name="project">tp! Project</param> /// <returns>Dictionary of Filters</returns> public static IEnumerable <thinkproject.Company> GetCompanies(thinkproject.Project project) { return(thinkproject.Company.GetCompanies(project, ApiConnection.GetConnection())); }
/// <summary> /// List tp! Members /// </summary> /// <param name="project">tp! Project</param> /// <returns>Dictionary of Filters</returns> public static IEnumerable <thinkproject.Member> GetMembers(thinkproject.Project project) { return(thinkproject.Member.GetMembers(project, ApiConnection.GetConnection())); }
/// <summary> /// List tp! DocumentFormDefinitions /// </summary> /// <param name="project">tp! Project</param> /// <returns>Dictionary of DocumentFormDefinitions</returns> public static IEnumerable <thinkproject.DocumentFormDefinition> GetDocumentFormDefinitions(thinkproject.Project project) { return(thinkproject.DocumentFormDefinition.GetDocumentFormDefinitions(project, ApiConnection.GetConnection())); }
/// <summary> /// Get Project Info /// </summary> /// <param name="project">tp! Project</param> /// <returns>Project Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.Project project) { var info = project.GetDetails(ApiConnection.GetConnection()); return(info); }
/// <summary> /// Get Member Info /// </summary> /// <param name="member">tp! Member</param> /// <returns>Member Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.Member member) { var info = member.GetDetails(ApiConnection.GetConnection()); return(info); }
/// <summary> /// Get Company Info /// </summary> /// <param name="company">tp! company</param> /// <returns>Company Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.Company company) { var info = company.GetDetails(ApiConnection.GetConnection()); return(info); }
/// <summary> /// List tp! Documents /// </summary> /// <param name="filter">tp! filter</param> /// <returns>Dictionary of Documents</returns> public static IEnumerable <thinkproject.Document> GetDocuments(thinkproject.Filter filter) { return(thinkproject.Document.GetDocuments(filter, ApiConnection.GetConnection())); }
/// <summary> /// Get Product Info /// </summary> /// <param name="project">tp! Project</param> /// <returns>Product Info</returns> public static IDictionary <string, object> GetProduct(thinkproject.Project project) { var info = thinkproject.Meta.GetProduct(ApiConnection.GetConnection()); return(info); }
/// <summary> /// List tp! Filters /// </summary> /// <param name="definition">tp! DocumentFormDefinition</param> /// <returns>Dictionary of Filters</returns> public static IEnumerable <thinkproject.Filter> GetFilters(thinkproject.DocumentFormDefinition definition) { return(thinkproject.Filter.GetFilters(definition, ApiConnection.GetConnection())); }
/// <summary> /// Get DocumentFormDefinition Info /// </summary> /// <param name="definition">tp! DocumentFormDefinition</param> /// <returns>Project Info</returns> public static IDictionary <string, object> GetInfo(thinkproject.DocumentFormDefinition definition) { var info = definition.GetDetails(ApiConnection.GetConnection()); return(info); }