This PR fixes #42. It contains some breaking changes.
Changes:
Callback methods in CBMPeripheralSpecDelegate with parameters of type CBMService, CBMCharacteristic or CBMDescriptor have been replaced with new ones with parameter of types CBMServiceMock, CBMCharacteristicMock and CBMDescriptorMock. The old methods will still be called, but user's code should be migrated to the new methods, as this may change in the future.
The new say to set includedServices in CBMServiceMock is using the initiator. The setters for includedServices and characteristics were removed, as they should not be changed in service lifetime.
Two contains methods were removed from CBMServiceMock and CBMCharacteristicMock. They were not used internally, but as they were open it may affect user's implementation.
This PR fixes #42. It contains some breaking changes.
Changes:
CBMPeripheralSpecDelegate
with parameters of typeCBMService
,CBMCharacteristic
orCBMDescriptor
have been replaced with new ones with parameter of typesCBMServiceMock
,CBMCharacteristicMock
andCBMDescriptorMock
. The old methods will still be called, but user's code should be migrated to the new methods, as this may change in the future.includedServices
inCBMServiceMock
is using the initiator. The setters forincludedServices
andcharacteristics
were removed, as they should not be changed in service lifetime.contains
methods were removed fromCBMServiceMock
andCBMCharacteristicMock
. They were not used internally, but as they wereopen
it may affect user's implementation.