blob: 0e835ea8c0d730b7fa38eccffce54328a4104e84 [file] [log] [blame]
// Copyright 2018 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.
library fuchsia.examples.intl.wisdom;
using fuchsia.intl;
/// Interface for a service that, given a `fuchsia.intl.Profile` and some basic parameters, can
/// provide pithy strings of wisdom to demonstrate the use of `Profile`.
[Discoverable]
protocol IntlWisdomServer {
/// Asks for a wisdom string.
///
/// Params:
/// intl_profile: Provides the i18n context for the request
/// timestamp_ms: Timestamp in milliseconds since the epoch. Used as an input for the wisdom
/// text.
AskForWisdom(fuchsia.intl.Profile intl_profile, int64 timestamp_ms) -> (string? response);
};