Skip to content

Conversation

@JohnstonCode
Copy link
Contributor

@JohnstonCode JohnstonCode commented Jul 20, 2020

As per #125 i have made some changes to how the Recipients are modelled.

I did overlook that the same Message object is used for sending and receiving. This make using the Message::$recipients field difficult as its expecting an array of strings or integers when sending a message. But when it gets a response this is then an array of stdClass...

This is the best i could come up with in a non BC breaking manager. It is poor. A better approach would be to have a MessageResponse class or similar. Also while making breaking changes it would be nice to parse datatime strings into DataTime classes

@JohnstonCode
Copy link
Contributor Author

@modprobe

@JohnstonCode
Copy link
Contributor Author

Let me know if you would prefer a PR with breaking changes

@CoolGoose
Copy link
Contributor

@JohnstonCode I know it's very late, but if you can open a PR with breaking changes since we're targeting 2.x now it would be great. If not i'll cleanup work on merging

@JohnstonCode
Copy link
Contributor Author

Do you have a preferred way of solving the Message::$recipients issue?

@CoolGoose
Copy link
Contributor

@JohnstonCode no. A MessageResponse DTO sounds fine.

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.

2 participants