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

Create XM, AM and FM Convenience inits #1525

Merged

Conversation

justingluck93
Copy link
Contributor

@justingluck93 justingluck93 commented Jan 22, 2020

Fixes #1206

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

  • I have verified that I have not introduced new warnings in this PR (or explain why below)
  • I have run the unit tests with this PR
  • I have tested this PR against Core and verified behavior (if applicable, if not applicable, explain why below).

Unit Tests

Added unit test to create an SDLRadioControlData and make sure the correct variables are set properly

Core Tests

Tested that the data is set correctly

Core version / branch / commit hash / module tested against: Develop
HMI name / version / branch / commit hash / module tested against: Develop

Summary

Added a few Convenience inits to set data for XM, FM and AM frequency

CLA

@justingluck93 justingluck93 added the bug A defect in the library label Jan 22, 2020
@justingluck93 justingluck93 self-assigned this Jan 22, 2020
@justingluck93 justingluck93 changed the title WIP: Create XM, AM and FM Convenience inits Create XM, AM and FM Convenience inits Jan 22, 2020
SmartDeviceLink/SDLRadioControlData.h Outdated Show resolved Hide resolved
SmartDeviceLink/SDLRadioControlData.h Outdated Show resolved Hide resolved
SmartDeviceLink/SDLRadioControlData.h Outdated Show resolved Hide resolved
SmartDeviceLink/SDLRadioControlData.m Outdated Show resolved Hide resolved
///
/// @param hdChannel Must be between 0 and 7
/// @return An instance of the SDLRadioControlData class
- (instancetype)initAMWithHdChannel:(nullable NSNumber<SDLInt> *)hdChannel;
Copy link
Contributor

Choose a reason for hiding this comment

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

See above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see above comment

@joeljfischer joeljfischer added the best practice Not a defect but something that should be improved anyway label Jan 24, 2020
@joeljfischer joeljfischer merged commit 871a39d into develop Jan 27, 2020
@joeljfischer joeljfischer deleted the bugfix/issue-1206-SDLRadioControlData-convenience-init branch January 27, 2020 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
best practice Not a defect but something that should be improved anyway bug A defect in the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants