Class WorkspaceImpl

java.lang.Object
pw.chew.clickup4j.internal.entities.WorkspaceImpl
All Implemented Interfaces:
Workspace

public class WorkspaceImpl extends Object implements Workspace
  • Constructor Details

    • WorkspaceImpl

      public WorkspaceImpl(@NotNull @NotNull org.json.JSONObject data, @NotNull @NotNull ClickUp4j api)
  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Description copied from interface: Workspace
      The ID of the workspace.
      Specified by:
      getId in interface Workspace
      Returns:
      The ID of the workspace.
    • getName

      @NotNull public @NotNull String getName()
      Description copied from interface: Workspace
      The human-readable name of the Workspace.
      Specified by:
      getName in interface Workspace
      Returns:
      Never-null String containing the workspace's name.
    • getColor

      @NotNull public @NotNull Color getColor()
      Description copied from interface: Workspace
      The color for this workspace.
      Specified by:
      getColor in interface Workspace
      Returns:
      Never-null Color object containing the workspace's color.
    • getAvatar

      @Nullable public @Nullable String getAvatar()
      Description copied from interface: Workspace
      The avatar or icon for this workspace.

      If the workspace does not have an avatar, this will be null.

      Specified by:
      getAvatar in interface Workspace
      Returns:
      Nullable String containing the workspace's avatar.
    • getMembers

      @NotNull public @NotNull List<Member> getMembers()
      Description copied from interface: Workspace
      Returns a list of all the members in this workspace.
      Specified by:
      getMembers in interface Workspace
      Returns:
      Never-null List of members in this workspace.
    • retrieveGoals

      @NotNull public @NotNull Requester<List<Goal>> retrieveGoals()
      Description copied from interface: Workspace
      Retrieves a list of goals in this workspace.
      Specified by:
      retrieveGoals in interface Workspace
      Returns:
      Never-null List of goals in this workspace.
    • getClickUp4j

      @NotNull public @NotNull ClickUp4j getClickUp4j()
      Description copied from interface: Workspace
      Returns this ClickUp4j instance.
      Specified by:
      getClickUp4j in interface Workspace
      Returns:
      Never-null ClickUp4j instance.