コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: Address.cs プロジェクト: thinkprojectgroup/tpsharp
        /// <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);
        }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
        /// <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);
        }
コード例 #5
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);
        }
コード例 #6
0
ファイル: Project.cs プロジェクト: thinkprojectgroup/tpsharp
        /// <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()));
        }
コード例 #7
0
ファイル: Project.cs プロジェクト: thinkprojectgroup/tpsharp
 /// <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()));
 }
コード例 #8
0
ファイル: Project.cs プロジェクト: thinkprojectgroup/tpsharp
 /// <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()));
 }
コード例 #9
0
ファイル: Project.cs プロジェクト: thinkprojectgroup/tpsharp
 /// <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()));
 }
コード例 #10
0
ファイル: Project.cs プロジェクト: thinkprojectgroup/tpsharp
 /// <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()));
 }
コード例 #11
0
ファイル: Project.cs プロジェクト: thinkprojectgroup/tpsharp
        /// <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);
        }
コード例 #12
0
        /// <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);
        }
コード例 #13
0
        /// <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);
        }
コード例 #14
0
ファイル: Filter.cs プロジェクト: thinkprojectgroup/tpsharp
 /// <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()));
 }
コード例 #15
0
        /// <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);
        }
コード例 #16
0
 /// <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()));
 }
コード例 #17
0
        /// <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);
        }