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

Fixed checks on message length #47

Closed
wants to merge 16 commits into from

Conversation

giovannivelludo
Copy link
Contributor

Premise

Fixes #19 .

Changes

1. Checks on the length of SMSMessage objects now take into account the custom MessageParsingStrategy used.

To avoid valid messages becoming invalid after the strategy is changed, I removed the possibility to change the strategy. Now it must be set before using any other methods from this library.

2. Improved specifications of some methods

3. Renamed some methods and interfaces according to what they do

A method that parses an SMSMessage object should be called parseMessage(), not parseData(). A strategy used for parsing messages should be called MessageParsingStrategy, not MessageParseStrategy.

Side changes

Changed the HIDDEN_CHARACTER of DefaultSMSMessageParsingStrategy to a character that is transmitted correctly, even though this was already done in #46 .

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.

SMS Parsing
3 participants