Skip to content

Conversation

@caitlinrussell
Copy link

12f6b8e - Add helper for multipart header and update OneNote multipart test to use header
88f0cb6 - Add default @odata.type parameters for Planner models, so the user does not need to specify them herself


/**
* Add an image part to the multipart body
* Add an image/jpeg part to the multipart body
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does OneNote only support adding jpegs? If so, let's rename this from addImagePart to addJpegPart. If it supports other types, we may want to consider adding an enum of supported image types.

Copy link
Author

Choose a reason for hiding this comment

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

I don't think that this helps much more than just using the addFilePart so I'll just remove it

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

MIchaelMainer
MIchaelMainer previously approved these changes Mar 7, 2018
Doesn't really save much code and is confusing because an image can be many types other than jpeg

/**
* Add a string part to the multipart body
* @param name The name of the part
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: fix case


/**
* Add a file part to the multipart body
* @param name The name of the part
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: fix case

@caitlinrussell caitlinrussell merged commit 9a87583 into dev Mar 9, 2018
@caitlinrussell caitlinrussell deleted the workload-helper-updates branch March 9, 2018 23:10
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.

3 participants