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

separate FileRequest from FileResponse #1

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

felipeska
Copy link
Contributor

Hello @go-cristian some changes here:

  • Delete request property from FileResponse.
  • Rename response property from FileResponse to body.
  • New structure called FileRecorded.

Copy link
Owner

@go-cristian go-cristian left a comment

Choose a reason for hiding this comment

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

Thanks, @felipeska for this restructure, I think changing the naming is valuable here. I would ask for this change and for sure this will be merged.

import okhttp3.ResponseBody.Companion.toResponseBody

data class FileRecorded(
val responseRecorded: FileResponse,
Copy link
Owner

Choose a reason for hiding this comment

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

I like this naming convention, can we use it for the typings too?
maybe something like RecordedResponse & RecordedRequest is more accurate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

absolutely! I changed the file names to be more accurate.

Copy link
Owner

@go-cristian go-cristian left a comment

Choose a reason for hiding this comment

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

Thanks for it... I need to add some docs and publish this.

@go-cristian go-cristian merged commit 1706a7e into go-cristian:main Apr 20, 2022
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

2 participants