-
Notifications
You must be signed in to change notification settings - Fork 35
[MOB-7936] creates IterableEmbeddedMessage class #657
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
base: evan/MOB-11551-iterable-embedded-message-elements-class
Are you sure you want to change the base?
[MOB-7936] creates IterableEmbeddedMessage class #657
Conversation
❌ 2 blocking issues (2 total)
This is from Qlty Cloud, the successor to Code Climate Quality. Learn more. |
@@ -0,0 +1,163 @@ | |||
import { IterableEmbeddedMessage } from '../embedded/classes/IterableEmbeddedMessage'; |
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.
@@ -0,0 +1,58 @@ | |||
import { IterableEmbeddedMessageMetadata } from './IterableEmbeddedMessageMetadata'; |
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.
* An interface defining the dictionary object containing the properties for the embedded message. | ||
*/ | ||
interface EmbeddedMessageDict { | ||
metadata: IterableEmbeddedMessageMetadata; |
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.
Please add comments to the props with the information it is expecting
if (!dict.metadata) { | ||
throw new Error('metadata is required'); | ||
} | ||
const metadata = IterableEmbeddedMessageMetadata.fromDict(dict.metadata); |
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.
What if fromDict
throws an error for any of these classes?
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.
Some comments
🔹 JIRA Ticket(s) if any
✏️ Description