Skip to content

Commit

Permalink
SetNotificationResponse success variable added
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Mar 7, 2018
1 parent 1d00ee6 commit 2b78b37
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/gen/Flutterblue.pbobjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions ios/gen/Flutterblue.pbobjc.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions lib/gen/flutterblue.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ class SetNotificationResponse extends GeneratedMessage {
static final BuilderInfo _i = new BuilderInfo('SetNotificationResponse')
..aOS(1, 'remoteId')
..a<BluetoothCharacteristic>(2, 'characteristic', PbFieldType.OM, BluetoothCharacteristic.getDefault, BluetoothCharacteristic.create)
..aOB(3, 'success')
..hasRequiredFields = false
;

Expand Down Expand Up @@ -1005,6 +1006,11 @@ class SetNotificationResponse extends GeneratedMessage {
set characteristic(BluetoothCharacteristic v) { setField(2, v); }
bool hasCharacteristic() => $_has(1);
void clearCharacteristic() => clearField(2);

bool get success => $_get(2, false);
set success(bool v) { $_setBool(2, v); }
bool hasSuccess() => $_has(2);
void clearSuccess() => clearField(3);
}

class _ReadonlySetNotificationResponse extends SetNotificationResponse with ReadonlyMessageMixin {}
Expand Down
1 change: 1 addition & 0 deletions lib/gen/flutterblue.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ const SetNotificationResponse$json = const {
'2': const [
const {'1': 'remote_id', '3': 1, '4': 1, '5': 9, '10': 'remoteId'},
const {'1': 'characteristic', '3': 2, '4': 1, '5': 11, '6': '.BluetoothCharacteristic', '10': 'characteristic'},
const {'1': 'success', '3': 3, '4': 1, '5': 8, '10': 'success'},
],
};

Expand Down
1 change: 1 addition & 0 deletions protos/flutterblue.proto
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ message SetNotificationRequest {
message SetNotificationResponse {
string remote_id = 1;
BluetoothCharacteristic characteristic = 2;
bool success = 3;
}

message OnNotificationResponse {
Expand Down

0 comments on commit 2b78b37

Please sign in to comment.