Class GroupWithCapacityResponse

java.lang.Object
com.plannaplan.responses.models.GroupDefaultResponse
com.plannaplan.responses.models.GroupWithCapacityResponse

public class GroupWithCapacityResponse
extends GroupDefaultResponse
Group api response featuring group capacity
  • Constructor Details

    • GroupWithCapacityResponse

      public GroupWithCapacityResponse​(com.plannaplan.entities.Groups group)
      create new instance
      Parameters:
      group - entity to map to api response
    • GroupWithCapacityResponse

      public GroupWithCapacityResponse​(com.plannaplan.entities.Groups group, int takenPlaces)
      create new instance
      Parameters:
      group - entity to map to api response
      takenPlaces - group taken places
    • GroupWithCapacityResponse

      public GroupWithCapacityResponse​(com.plannaplan.entities.Assignment assignment)
      create new instance
      Parameters:
      assignment - entity to map to api response
    • GroupWithCapacityResponse

      public GroupWithCapacityResponse​(com.plannaplan.entities.Assignment assignment, int takenPlaces)
      create new instance
      Parameters:
      assignment - entity to map to api response
      takenPlaces - group taken places
  • Method Details

    • getCapacity

      public int getCapacity()
      Returns:
      group taken places