-
Notifications
You must be signed in to change notification settings - Fork 8
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
jsonRPC handle of rumor msg in scala backend #1799
Conversation
be2-scala/src/main/scala/ch/epfl/pop/json/HighLevelProtocol.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one detail on the use of a mutable HashMap which could be simplified (see comment), otherwise LGTM
be2-scala/src/main/scala/ch/epfl/pop/json/HighLevelProtocol.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage and a few comments / question before we can move on ;)
be2-scala/src/main/scala/ch/epfl/pop/model/network/method/Rumor.scala
Outdated
Show resolved
Hide resolved
be2-scala/src/test/scala/util/examples/json/rumor/exampleRumor.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, looks good to me !
Quality Gate passed for 'PoP - PoPCHA-Web-Client'Issues Measures |
Quality Gate passed for 'PoP - Be1-Go'Issues Measures |
Quality Gate passed for 'PoP - Be2-Scala'Issues Measures |
Quality Gate passed for 'PoP - Fe1-Web'Issues Measures |
Quality Gate passed for 'PoP - Fe2-Android'Issues Measures |
Based on PR #1789 , handles and tests the new rumor jsonRPC message.
Can read an incoming rumor jsonRPC, convert it to a Rumor object containing its respective objects : - serverId : PublicKey, rumorId : Int, messages : Map[Channel, List[Messages]]. Can also do the reverse operation and write to a jsonRPC Rumor