| // 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(struct { |
| intl_profile fuchsia.intl.Profile; |
| timestamp_ms int64; |
| }) -> (struct { |
| response string:optional; |
| }); |
| }; |