From 071edf837f1903ec7071708ce245bdaffe2bcb9f Mon Sep 17 00:00:00 2001 From: Alex Fischer <183024988+SuperGamer001@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:22:39 -0800 Subject: [PATCH 1/3] Created nouns and verbs markdown --- docs/analysis/nouns-and-verbs.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/analysis/nouns-and-verbs.md diff --git a/docs/analysis/nouns-and-verbs.md b/docs/analysis/nouns-and-verbs.md new file mode 100644 index 0000000..9e50814 --- /dev/null +++ b/docs/analysis/nouns-and-verbs.md @@ -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 + + +## 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 + +## Attributes +- Message ID +- Message Content +- Attachments +- Readers + +## System/Technical +- database +- login/signup page +- profile page +- library +- websokets \ No newline at end of file From 8d0071d56646001146e1e21e7dc4fdb38dda320a Mon Sep 17 00:00:00 2001 From: Alex Fischer <183024988+SuperGamer001@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:26:26 -0800 Subject: [PATCH 2/3] Adding Skeleton Code --- Interlinked/app/lib/js/models/conversation.js | 27 +++++++++++ Interlinked/app/lib/js/models/notification.js | 48 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 Interlinked/app/lib/js/models/conversation.js create mode 100644 Interlinked/app/lib/js/models/notification.js diff --git a/Interlinked/app/lib/js/models/conversation.js b/Interlinked/app/lib/js/models/conversation.js new file mode 100644 index 0000000..ca74d9d --- /dev/null +++ b/Interlinked/app/lib/js/models/conversation.js @@ -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 + } +} \ No newline at end of file diff --git a/Interlinked/app/lib/js/models/notification.js b/Interlinked/app/lib/js/models/notification.js new file mode 100644 index 0000000..df98e6c --- /dev/null +++ b/Interlinked/app/lib/js/models/notification.js @@ -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 + } +} \ No newline at end of file From e01fef4744db1adf2e8f4373d08fbddf1cc901ec Mon Sep 17 00:00:00 2001 From: Alex Fischer <183024988+SuperGamer001@users.noreply.github.com> Date: Tue, 27 Jan 2026 14:50:57 -0800 Subject: [PATCH 3/3] Apply suggestions from code review (COPILOT) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Interlinked/app/lib/js/models/notification.js | 2 +- docs/analysis/nouns-and-verbs.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Interlinked/app/lib/js/models/notification.js b/Interlinked/app/lib/js/models/notification.js index df98e6c..0974b0c 100644 --- a/Interlinked/app/lib/js/models/notification.js +++ b/Interlinked/app/lib/js/models/notification.js @@ -1,4 +1,4 @@ -class notification { +class Notification { message isRead timeSent diff --git a/docs/analysis/nouns-and-verbs.md b/docs/analysis/nouns-and-verbs.md index 9e50814..fdf8e45 100644 --- a/docs/analysis/nouns-and-verbs.md +++ b/docs/analysis/nouns-and-verbs.md @@ -25,4 +25,4 @@ - login/signup page - profile page - library -- websokets \ No newline at end of file +- websockets \ No newline at end of file