OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of models; | 5 part of models; |
6 | 6 |
7 abstract class TargetChangeEvent { | 7 abstract class TargetChangeEvent { |
8 TargetRepository get repository; | 8 TargetRepository get repository; |
9 } | 9 } |
10 | 10 |
11 abstract class TargetRepository { | 11 abstract class TargetRepository { |
12 Stream<TargetChangeEvent> get onChange; | 12 Stream<TargetChangeEvent> get onChange; |
13 | 13 |
14 Target get current; | 14 Target get current; |
15 Iterable<Target> list(); | 15 Iterable<Target> list(); |
16 void add(String); | 16 void add(String); |
17 void setCurrent(Target); | 17 void setCurrent(Target); |
18 void delete(Target); | 18 void delete(Target); |
| 19 Target find(String networkAddress); |
19 } | 20 } |
OLD | NEW |