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); }
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)); }
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)); }
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)); }
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()); }
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)); }
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()); }
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); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }