blob: 1ca0adc5406948c56976c1057d4f7113eccc2e59 [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);
};