OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library rpc_service; |
| 6 |
| 7 import 'dart:async'; |
| 8 |
| 9 class RpcApplicationError implements Exception { |
| 10 final int code; |
| 11 final String message; |
| 12 |
| 13 RpcApplicationError(this.code, this.message); |
| 14 String toString() => 'RpcApplicationError: $code ($message)'; |
| 15 } |
| 16 |
| 17 abstract class RPCService { |
| 18 Future<List<int>> call(String apiPackage, |
| 19 String method, |
| 20 List<int> requestProtocolBuffer, |
| 21 {String ticket: 'invalid-ticket'}); |
| 22 } |
OLD | NEW |