US 01.01.05 ‐ CRC Cards - CMPUT301F26coders/coders GitHub Wiki

User Story:

  • As an entrant, I want to see details of a campsite.

Description:

  • Allow entrants to view detailed information about a selected campsite, including its description, amenities, and price per night.

CRC Card 1: Campsite

Responsibilities:

  • Stores campsites name and location
  • Stores campsites maximum capacity and rating
  • Stores campsites description
  • Stores campsites amenities
  • Store campsites price per night

Collaborators:

  • NONE

CRC Cards 2: CampsiteDetailsController

Responsibilities:

  • Receives the selected campsite the entrant clicked
  • Receives the campsites detailed information from the CampsiteRepository
  • Stores the information from the CampsiteRepository and displays the campsites information on the UI screen

Collaborators:

  • CampsitesRepository

CRC Cards 3: CampsiteRepository

Responsibilities:

  • Retrieves the selected campsites information
  • Return the campsite's details, including its description, amenities, and price per night.

Collaborators:

  • Campsite