Back to project page LeBlue.
The source code is released under:
Apache License
If you think the Android project LeBlue listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package houtbecke.rs.le.mock; /*from ww w. j a va 2 s . c o m*/ import houtbecke.rs.le.LeFormat; import houtbecke.rs.le.LeGattCharacteristic; public class LeGattCharacteristicMock implements LeGattCharacteristic { LeMockController mockController; public LeGattCharacteristicMock(LeMockController mockController) { this.mockController = mockController; } @Override public byte[] getValue() { return mockController.characteristicGetValue(this); } @Override public int getIntValue(LeFormat format, int index) { return mockController.characteristicGetIntValue(this, format, index); } @Override public void setValue(byte[] value) { mockController.characteristicSetValue(this, value); } }