blob: 27257018edb1d377ac837fb94dc4a5e2dc0ea35d [file] [log] [blame] [edit]
// 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
closed 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.
strict AskForWisdom(struct {
intl_profile fuchsia.intl.Profile;
timestamp_ms int64;
}) -> (struct {
response string:optional;
});
};