Skip to content

Commit

Permalink
fix(discovery)!: align ThingFilter class with specification
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Mar 27, 2022
1 parent 918853b commit 87a106a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions example/complex_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ Future<void> main() async {
await consumedThing.readProperty("test");

final thingDiscovery = wot.discover(ThingFilter(
"https://raw.githubusercontent.com/w3c/wot-testing"
"/b07fa6124bca7796e6ca752a3640fac264d3bcbc/events/2021.03.Online/TDs"
"/Oracle/oracle-Festo_Shared.td.jsonld",
DiscoveryMethod.direct));
url: "https://raw.githubusercontent.com/w3c/wot-testing"
"/b07fa6124bca7796e6ca752a3640fac264d3bcbc/events/2021.03.Online/TDs"
"/Oracle/oracle-Festo_Shared.td.jsonld",
method: DiscoveryMethod.direct));

final discoveredThingDescription = await thingDiscovery.next();
thingDiscovery.stop();
Expand Down
2 changes: 1 addition & 1 deletion lib/src/scripting_api/discovery/thing_filter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ class ThingFilter {

/// Constructor.
ThingFilter(
[this.url, this.method = DiscoveryMethod.directory, this.fragment]);
{this.url, this.method = DiscoveryMethod.directory, this.fragment});
}

0 comments on commit 87a106a

Please sign in to comment.