blob: dac1637503fd33c80fab1a7b42b3969a74df1f5f [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:fidl/fidl.dart';
import 'package:fidl_fidl_examples_echo/fidl.dart';
import '';
bool quiet = false;
class _EchoImpl extends Echo {
final EchoBinding _binding = new EchoBinding();
void bind(InterfaceRequest<Echo> request) {
_binding.bind(this, request);
void echoString(String value, void callback(String response)) {
if (!quiet) {
print('EchoString: $value');
StartupContext _context;
_EchoImpl _echo;
void main(List<String> args) {
quiet = args.contains('-q');
_context = new StartupContext.fromStartupInfo();
_echo = new _EchoImpl();
.addServiceForName<Echo>(_echo.bind, Echo.$serviceName);