I have a method
-(NSData*)getCommonDataWithCommandID:(int)commandID withChannelNumber:(int)channelNo withDataArray:(NSArray*)dataArray withByteArraySize:(int)byteArraySize
{
}
This is called from a lot of places and have a big hierarchy of calling. How can I pass value from dimSliderDecreasedTapped:
or tapOnFifthChannel:
This is just a portion!
Now I need to add another parameter to this method
bool isFeedbackExpected
But this will violet Open Closed Principle.
What is the best way to do this?