Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions Interlinked/app/lib/js/models/conversation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
class Conversation {
messages = [];
participants = [];

addMessage(message) {
// TODO: Implement addMessage() method
}

deleteMessage(messageId) {
// TODO: Implement deleteMessage() method
}

editMessage(message) {
// TODO: Implement editMessage() method
}

readMessage(messageID, userID) {
// TODO: Implement readMessage() method
}

addParticipant(participant) {
// TODO: Implement addParticipant() method
}
removeParticipant(participantID) {
// TODO: Implement removeParticipant() method
}
}
48 changes: 48 additions & 0 deletions Interlinked/app/lib/js/models/notification.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
class Notification {
message
isRead
timeSent
reward
color
icon

setMessage(message) {
// TODO: implement setMessage() method
}

markAsRead() {
// TODO: implement markAsRead() method
}

setTimeSent(time) {
// TODO: implement setTimeSent() method
}
getTimeSent() {
// TODO: implement getTimeSent() method
}

setReward(reward) {
// TODO: implement setReward() method
}
getReward() {
// TODO: implement getReward() method
}

setColor(color) {
// TODO: implement setColor() method
}
getColor() {
// TODO: implement getColor() method
}

setIcon(icon) {
// TODO: implement setIcon() method
}
getIcon() {
// TODO: implement getIcon() method
}

toString() {
// TODO: implement toString() method
}
}
28 changes: 28 additions & 0 deletions docs/analysis/nouns-and-verbs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This was made by Alex Fischer
## Part A: Nouns and Verbs (Analysis)

## Entities
- Conversation
- verbs: send, delete, edit, read, participants list
- Notification
- verbs: send, delete, read, receiveReward
Comment on lines +5 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that these are Entities. Good job.



## Roles/Actors
- Moderator: set rules, suspend/ban, view reviews
- Employee: access beta features, create and add content
- Authenticated: chat, online access, save files on cloud
- Guest: login/signup, play, read

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really lovely that you are thinking of future features like being a Guest account.


## Attributes
- Message ID
- Message Content
- Attachments
- Readers

## System/Technical
- database
- login/signup page
- profile page
- library
- websockets