File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ coap.PskCredentialsCallback? _createPskCallback(
7373}
7474
7575/// A [ProtocolClient] for the Constrained Application Protocol (CoAP).
76- final class CoapClient implements ProtocolClient {
76+ final class CoapClient extends ProtocolClient {
7777 /// Creates a new [CoapClient] based on an optional [CoapConfig] .
7878 CoapClient ({
7979 CoapConfig ? coapConfig,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const _authorizationHeader = "Authorization";
3636/// [RFC 7616] : https://datatracker.ietf.org/doc/html/rfc7616
3737/// [RFC 6750] : https://datatracker.ietf.org/doc/html/rfc6750
3838/// [`ComboSecurityScheme`] : https://w3c.github.io/wot-thing-description/#combosecurityscheme
39- final class HttpClient implements ProtocolClient {
39+ final class HttpClient extends ProtocolClient {
4040 /// Creates a new [HttpClient] .
4141 HttpClient ({
4242 AsyncClientSecurityCallback <BasicCredentials >? basicCredentialsCallback,
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import "mqtt_subscription.dart";
2121/// [ProtocolClient] for supporting the MQTT protocol.
2222///
2323/// Currently, only MQTT version 3.1.1 is supported.
24- final class MqttClient implements ProtocolClient {
24+ final class MqttClient extends ProtocolClient {
2525 /// Constructor.
2626 MqttClient ({
2727 MqttConfig ? mqttConfig,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import "../implementation.dart";
88import "../scripting_api.dart" ;
99
1010/// Base class for a Protocol Client.
11- abstract interface class ProtocolClient {
11+ abstract base class ProtocolClient {
1212 /// Starts this [ProtocolClient] .
1313 Future <void > start ();
1414
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ const invalidTestThingDescription2 = '''
138138 {"foo": "bar"}
139139''' ;
140140
141- class _MockedProtocolClient implements ProtocolClient {
141+ final class _MockedProtocolClient extends ProtocolClient {
142142 @override
143143 Stream <DiscoveryContent > discoverWithCoreLinkFormat (Uri uri) {
144144 // TODO: implement discoverWithCoreLinkFormat
You can’t perform that action at this time.
0 commit comments