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

Added MessageResponse DTO and added the ability to set response objects #170

Merged
merged 2 commits into from
Apr 21, 2021

Conversation

JohnstonCode
Copy link
Contributor

Related to #127

@JohnstonCode
Copy link
Contributor Author

@CoolGoose do you have any issue with my implementation? If there aren't any i will look to add tests.

@CoolGoose
Copy link
Contributor

Hey @JohnstonCode , thank you for the PR, this is looking good for me.

parent::loadFromArray($object);

$this->recipients = (new Recipients())->loadFromArray($this->recipients);
$this->typeDetails = get_object_vars($this->typeDetails);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current implementation returns $typeDetails as a stdClass when its type is set to array

@JohnstonCode JohnstonCode marked this pull request as ready for review April 20, 2021 08:57
@CoolGoose
Copy link
Contributor

Great, thank you 🙇

@CoolGoose CoolGoose merged commit ed74031 into messagebird:master Apr 21, 2021
CoolGoose pushed a commit that referenced this pull request Jan 8, 2023
Use MessageReponse mapper instead of Message when calling list endpoint
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