Esempio n. 1
0
        public Person GetMe()
        {
            DefaultHandler <Person> handler = new DefaultHandler <Person>($"{this.URL}/me", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);
            List <Person>           result  = handler.Get("*");

            return(result.Count.Equals(1) ? result[0] : null);
        }
Esempio n. 2
0
        public List <Address> GetAddresses(Organization organization, params string[] attributeNames)
        {
            DefaultHandler <Address> handler = new DefaultHandler <Address>($"{this.URL}/{organization.ID}/addresses", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };

            return(handler.Get(attributeNames));
        }
Esempio n. 3
0
        public List <ProjectTaskAssignment> GetAssignments(ProjectTask projectTask, params string[] attributeNames)
        {
            DefaultHandler <ProjectTaskAssignment> handler = new DefaultHandler <ProjectTaskAssignment>($"{this.URL}/{projectTask.ID}/assignments", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };

            return(handler.Get(attributeNames));
        }
Esempio n. 4
0
        public List <ProjectTaskTemplateReference> GetProjectTaskTemplates(ProjectTemplate projectTemplate, params string[] attributeNames)
        {
            DefaultHandler <ProjectTaskTemplateReference> handler = new DefaultHandler <ProjectTaskTemplateReference>($"{this.URL}/{projectTemplate.ID}/task_templates", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };

            return(handler.Get(attributeNames));
        }
        public List <TaskTemplateApproval> GetApprovals(TaskTemplate taskTemplate, params string[] attributeNames)
        {
            DefaultHandler <TaskTemplateApproval> handler = new DefaultHandler <TaskTemplateApproval>($"{this.URL}/{taskTemplate.ID}/approvals", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };

            return(handler.Get(attributeNames));
        }
Esempio n. 6
0
        public List <Contact> GetContacts(Person person)
        {
            DefaultHandler <Contact> handler = new DefaultHandler <Contact>($"{this.URL}/{person.ID}/contacts", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };

            return(handler.Get());
        }
Esempio n. 7
0
        public List <Note> GetNotes(ProjectTask projectTask, params string[] attributeNames)
        {
            DefaultHandler <Note> handler = new DefaultHandler <Note>($"{this.URL}/{projectTask.ID}/notes", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.CreatedAt
            };

            return(handler.Get(attributeNames));
        }
Esempio n. 8
0
        public List <Permission> GetAccountPermissions(Person person)
        {
            DefaultHandler <Permission> handler = new DefaultHandler <Permission>($"{this.URL}/{person.ID}/permissions", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder    = SortOrder.None,
                AlwaysAsList = true
            };

            return(handler.Get());
        }
Esempio n. 9
0
        public Permission GetAccountPermission(Person person, Account account)
        {
            DefaultHandler <Permission> handler = new DefaultHandler <Permission>($"{this.URL}/{person.ID}/permissions/{account.ID}", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests)
            {
                SortOrder = SortOrder.None
            };
            List <Permission> result = handler.Get();

            return(result.Count.Equals(1) ? result[0] : null);
        }
Esempio n. 10
0
        public List <Task> GetTasks(Change change, params string[] attributeNames)
        {
            DefaultHandler <Task> handler = new DefaultHandler <Task>($"{this.URL}/{change.ID}/tasks", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 11
0
        public List <Request> GetRequests(Problem problem, params string[] attributeNames)
        {
            DefaultHandler <Request> handler = new DefaultHandler <Request>($"{this.URL}/{problem.ID}/requests", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
        public List <KnowledgeArticleTranslation> GetTranslations(KnowledgeArticle knowledgeArticle, params string[] attributeNames)
        {
            DefaultHandler <KnowledgeArticleTranslation> handler = new DefaultHandler <KnowledgeArticleTranslation>($"{this.URL}/{knowledgeArticle.ID}/translations", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 13
0
        public List <Organization> GetOrganizations(TimeAllocation timeAllocation, params string[] attributeNames)
        {
            DefaultHandler <Organization> handler = new DefaultHandler <Organization>($"{this.URL}/{timeAllocation.ID}/organizations", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 14
0
        public List <RequestTemplate> GetRequestTemplates(Service service, params string[] attributeNames)
        {
            DefaultHandler <RequestTemplate> handler = new DefaultHandler <RequestTemplate>($"{this.URL}/{service.ID}/request_templates", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 15
0
        public List <Calendar> GetCalendars(Holiday holiday, params string[] attributeNames)
        {
            DefaultHandler <Calendar> handler = new DefaultHandler <Calendar>($"{this.URL}/{holiday.ID}/calendars", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 16
0
        public List <ServiceLevelAgreement> GetServiceLevelAgreementCoverages(Person person, params string[] attributeNames)
        {
            DefaultHandler <ServiceLevelAgreement> handler = new DefaultHandler <ServiceLevelAgreement>($"{this.URL}/{person.ID}/sla_coverages", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 17
0
        public List <BroadcastTranslation> GetTranslations(Broadcast broadcast, params string[] attributeNames)
        {
            DefaultHandler <BroadcastTranslation> handler = new DefaultHandler <BroadcastTranslation>($"{this.URL}/{broadcast.ID}/translations", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 18
0
        public List <Change> GetChanges(Release release, params string[] attributeNames)
        {
            DefaultHandler <Change> handler = new DefaultHandler <Change>($"{this.URL}/{release.ID}/changes", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 19
0
        public List <ServiceLevelAgreement> GetSLAs(ServiceInstance serviceInstance, params string[] attributeNames)
        {
            DefaultHandler <ServiceLevelAgreement> handler = new DefaultHandler <ServiceLevelAgreement>($"{this.URL}/{serviceInstance.ID}/slas", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 20
0
        public List <UIExtensionVersion> GetVersions(UIExtension uIExtension, params string[] attributeNames)
        {
            DefaultHandler <UIExtensionVersion> handler = new DefaultHandler <UIExtensionVersion>($"{this.URL}/{uIExtension.ID}/versions", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 21
0
        public List <EffortClass> GetEffortClasses(TimesheetSetting timesheetSetting, params string[] attributeNames)
        {
            DefaultHandler <EffortClass> handler = new DefaultHandler <EffortClass>($"{this.URL}/{timesheetSetting.ID}/effort_classes", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 22
0
        public List <Person> GetPeople(Site site, params string[] attributeNames)
        {
            DefaultHandler <Person> handler = new DefaultHandler <Person>($"{this.URL}/{site.ID}/people", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 23
0
        public List <ConfigurationItem> GetConfigurationItems(Person person, params string[] attributeNames)
        {
            DefaultHandler <ConfigurationItem> handler = new DefaultHandler <ConfigurationItem>($"{this.URL}/{person.ID}/cis", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 24
0
        public List <Team> GetTeams(Calendar calendar, params string[] attributeNames)
        {
            DefaultHandler <Team> handler = new DefaultHandler <Team>($"{this.URL}/{calendar.ID}/teams", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 25
0
        public List <Contact> GetContacts(Organization organization, params string[] attributeNames)
        {
            DefaultHandler <Contact> handler = new DefaultHandler <Contact>($"{this.URL}/{organization.ID}/contacts", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 26
0
        public List <Person> GetMembers(Team team, params string[] attributeNames)
        {
            DefaultHandler <Person> handler = new DefaultHandler <Person>($"{this.URL}/{team.ID}/members", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 27
0
        public List <ProjectTask> GetPredecessors(ProjectTask projectTask, params string[] attributeNames)
        {
            DefaultHandler <ProjectTask> handler = new DefaultHandler <ProjectTask>($"{this.URL}/{projectTask.ID}/predecessors", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
        public List <ServiceInstance> GetServiceInstances(KnowledgeArticle knowledgeArticle, params string[] attributeNames)
        {
            DefaultHandler <ServiceInstance> handler = new DefaultHandler <ServiceInstance>($"{this.URL}/{knowledgeArticle.ID}/service_instances", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 29
0
        public List <ServiceOffering> GetServiceOfferings(Service service, params string[] attributeNames)
        {
            DefaultHandler <ServiceOffering> handler = new DefaultHandler <ServiceOffering>($"{this.URL}/{service.ID}/service_offerings", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }
Esempio n. 30
0
        public List <AffectedServiceLevelAgreement> GetAffectedServiceLevelAgreements(Request request, params string[] attributeNames)
        {
            DefaultHandler <AffectedServiceLevelAgreement> handler = new DefaultHandler <AffectedServiceLevelAgreement>($"{this.URL}/{request.ID}/affected_slas", this.AuthenticationTokens, this.AccountID, this.ItemsPerRequest, this.MaximumRecursiveRequests);

            return(handler.Get(attributeNames));
        }