| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 service; | 5 part of service; |
| 6 | 6 |
| 7 /// An RpcException represents an exceptional event that happened | 7 /// An RpcException represents an exceptional event that happened |
| 8 /// while invoking an rpc. | 8 /// while invoking an rpc. |
| 9 abstract class RpcException implements Exception { | 9 abstract class RpcException implements Exception { |
| 10 RpcException(this.message); | 10 RpcException(this.message); |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 var obj = new ServiceObject._fromMap(this, response); | 553 var obj = new ServiceObject._fromMap(this, response); |
| 554 if ((obj != null) && obj.canCache) { | 554 if ((obj != null) && obj.canCache) { |
| 555 String objId = obj.id; | 555 String objId = obj.id; |
| 556 _cache.putIfAbsent(objId, () => obj); | 556 _cache.putIfAbsent(objId, () => obj); |
| 557 } | 557 } |
| 558 return obj; | 558 return obj; |
| 559 }); | 559 }); |
| 560 } | 560 } |
| 561 | 561 |
| 562 Future<ObservableMap> _fetchDirect() { | 562 Future<ObservableMap> _fetchDirect() { |
| 563 print("FETCH DIRECT VM"); | |
| 564 return invokeRpcNoUpgrade('getVM', {}); | 563 return invokeRpcNoUpgrade('getVM', {}); |
| 565 } | 564 } |
| 566 | 565 |
| 567 Future<ServiceObject> getFlagList() { | 566 Future<ServiceObject> getFlagList() { |
| 568 return invokeRpc('getFlagList', {}); | 567 return invokeRpc('getFlagList', {}); |
| 569 } | 568 } |
| 570 | 569 |
| 571 /// Force the VM to disconnect. | 570 /// Force the VM to disconnect. |
| 572 void disconnect(); | 571 void disconnect(); |
| 573 /// Completes when the VM first connects. | 572 /// Completes when the VM first connects. |
| (...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 var v = list[i]; | 3156 var v = list[i]; |
| 3158 if ((v is ObservableMap) && _isServiceMap(v)) { | 3157 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 3159 list[i] = owner.getFromMap(v); | 3158 list[i] = owner.getFromMap(v); |
| 3160 } else if (v is ObservableList) { | 3159 } else if (v is ObservableList) { |
| 3161 _upgradeObservableList(v, owner); | 3160 _upgradeObservableList(v, owner); |
| 3162 } else if (v is ObservableMap) { | 3161 } else if (v is ObservableMap) { |
| 3163 _upgradeObservableMap(v, owner); | 3162 _upgradeObservableMap(v, owner); |
| 3164 } | 3163 } |
| 3165 } | 3164 } |
| 3166 } | 3165 } |
| OLD | NEW |