Class ProjectsImpl

All Implemented Interfaces:
Projects

public class ProjectsImpl extends ApiResourceWithValidation implements Projects
  • Constructor Details

  • Method Details

    • createProject

      public ProjectsResponse createProject(long accountId, CreateUpdateProjectRequest request)
      Description copied from interface: Projects
      Create a project
      Specified by:
      createProject in interface Projects
      Parameters:
      accountId - unique account ID
      request - request data
      Returns:
      Returns attributes of the created project. permissions returns the permissions of the token for the project
    • getProjects

      public List<ProjectsResponse> getProjects(long accountId)
      Description copied from interface: Projects
      List projects and their inboxes to which the API token has access.
      Specified by:
      getProjects in interface Projects
      Parameters:
      accountId - unique account ID
      Returns:
      the list of projects with nested inboxes. permissions returns the permissions of the token for the project
    • getProject

      public ProjectsResponse getProject(long accountId, long projectId)
      Description copied from interface: Projects
      Get the project and its inboxes
      Specified by:
      getProject in interface Projects
      Parameters:
      accountId - unique account ID
      projectId - unique project ID
      Returns:
      project attributes and inboxes of this project with their attributes. permissions returns the permissions of the token for the project
    • updateProject

      public ProjectsResponse updateProject(long accountId, long projectId, CreateUpdateProjectRequest updateRequest)
      Description copied from interface: Projects
      Update project data
      Specified by:
      updateProject in interface Projects
      Parameters:
      accountId - unique account ID
      projectId - unique project ID
      updateRequest - request data
      Returns:
      project attributes and inboxes of this project with their attributes. permissions returns the permissions of the token for the project
    • deleteProject

      public DeleteProjectResponse deleteProject(long accountId, long projectId)
      Description copied from interface: Projects
      Delete project and its inboxes
      Specified by:
      deleteProject in interface Projects
      Parameters:
      accountId - unique account ID
      projectId - unique project ID
      Returns:
      id of the deleted project