Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat Module Update #10

Merged
merged 1 commit into from Dec 17, 2021
Merged

Chat Module Update #10

merged 1 commit into from Dec 17, 2021

Conversation

pear95
Copy link
Owner

@pear95 pear95 commented Dec 17, 2021

•• Changes:
• Folder Base:

  • Created Interfaces folder
  • Created Roots folder
  • Created MessageConsole class
    • Folder Interfaces:
  • Created a Interface IMessage
    • Folder Roots:
  • Created a abstract class Message that inherited IMessage
    • Flag File:
  • Added new Enum ChatType with CT, TT, GLOBAL items
    • Interface IMessage:
  • Added fields int ID, string User, string Text
    • Class Message:
  • Implemented IMessage Interface, added constructors
    • Class MessageConsole:
  • Addded fields bool IsDead, ChatType MessageType, string Location and added constructors
    • Chat Folder:
  • Created GetChat class
    • Class GetChat:
  • Created GetChats method that return List of MessageConsole from provided logs and provided startIndex of logs
  • Created helper private method IsDead, GetUserFullName, GetOnlyNickname, GetOnlyMessage, GetChatType, GetLocation that were use to calculaed MessageConsole fields.
    • Class LogReader:
  • Created GetChat method that returns List of objects (MessageConsole). Depends of boolean parameter provided, it returns all chat or chat that has not been returned last time when method was call.
    • Class Variables:
  • Added new Variables and sorted all of them.
    • Class LogRegex:
  • Added new Regex LogChatTeam that check if provided text is team chat
  • Renamed 1 regex
  • Refactored Regex for clean code

•• Changes:
• Folder Base:
 - Created Interfaces folder
 - Created Roots folder
 - Created MessageConsole class
• Folder Interfaces:
 - Created a Interface IMessage
• Folder Roots:
 - Created a abstract class Message that inherited IMessage
• Flag File:
  - Added new Enum ChatType with CT, TT, GLOBAL items
• Interface IMessage:
 - Added fields int ID, string User, string Text
• Class Message:
 - Implemented IMessage Interface, added constructors
• Class MessageConsole:
 - Addded fields bool IsDead, ChatType MessageType, string Location and added constructors
• Chat Folder:
 - Created GetChat class
• Class GetChat:
 -  Created GetChats method that return List of MessageConsole from provided logs and provided startIndex of logs
 - Created helper private method IsDead, GetUserFullName, GetOnlyNickname, GetOnlyMessage, GetChatType, GetLocation that were use to calculaed MessageConsole fields.
• Class LogReader:
 - Created GetChat method that returns List of objects (MessageConsole). Depends of boolean parameter provided, it returns all chat or chat that has not been returned last time when method was call.
• Class Variables:
 - Added new Variables and sorted all of them.
• Class LogRegex:
 - Added new Regex LogChatTeam that check if provided text is team chat
 - Renamed 1 regex
 - Refactored Regex for clean code
@pear95 pear95 merged commit ab45bd2 into master Dec 17, 2021
@pear95 pear95 deleted the CLRCSGO-9 branch December 17, 2021 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant