Requirements for link model
Here’s my first try at doing some CRC cards for submitted links:
Link
Responsibilities:
- Maintain information related to submitted link
- URL
- title
- submitter
- date submitted
- Calculate score based on votes
- Keep track of whether the link has been flagged inappropriate or broken
- Keep track of whether the link has been approved (for anonymous submissions)
Collaborators
- Vote
- User
Vote
Responsibilities:
- Keep track of vote information (+1, -1, 0)
- Keep track of date vote modified
- keep track of which user voted.
Collaborators
User
Responsibilities:
- Keep track of user information and authentication.
- Keep track of user trust level.
View
Responsibilities:
- Display links in correct order based on vote, session and user.