blob: f89c9ca5677bad6260c507e825efa43840a055da [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.
#include <vector>
#include "peridot/bin/sessionmgr/story/model/story_mutator.h"
using fuchsia::modular::storymodel::StoryModelMutation;
namespace modular {
StoryMutator::StoryMutator() = default;
StoryMutator::~StoryMutator() = default;
fit::consumer<> StoryMutator::set_visibility_state(
fuchsia::modular::StoryVisibilityState state) {
std::vector<StoryModelMutation> commands(1);
commands[0].set_set_visibility_state(state);
return ExecuteInternal(std::move(commands));
}
} // namespace modular