blob: e8d63be3058aa2a6f6a9da2d62ff7be83c9d19b4 [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.
#ifndef PERIDOT_BIN_SUGGESTION_ENGINE_SUGGESTION_ENGINE_HELPER_H_
#define PERIDOT_BIN_SUGGESTION_ENGINE_SUGGESTION_ENGINE_HELPER_H_
#include "peridot/bin/suggestion_engine/suggestion_prototype.h"
namespace modular {
// (proposer ID, proposal ID) => suggestion prototype
using SuggestionPrototypeMap = std::map<std::pair<std::string, std::string>,
std::unique_ptr<SuggestionPrototype>>;
SuggestionPrototype* CreateSuggestionPrototype(
SuggestionPrototypeMap* owner, const std::string& source_url,
const std::string& story_id, fuchsia::modular::Proposal proposal);
SuggestionPrototype* CreateSuggestionPrototype(
SuggestionPrototypeMap* owner, const std::string& source_url,
const std::string& story_id, const std::string& preloaded_story_id,
fuchsia::modular::Proposal proposal);
} // namespace modular
#endif // PERIDOT_BIN_SUGGESTION_ENGINE_SUGGESTION_ENGINE_HELPER_H_