blob: c422dfa7a17b5c68651d56108bb467dbd2f11224 [file] [log] [blame]
// Copyright 2015 The Chromium OS 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 LIBWEAVE_SRC_COMMANDS_USER_ROLE_H_
#define LIBWEAVE_SRC_COMMANDS_USER_ROLE_H_
#include <string>
#include <chromeos/errors/error.h>
namespace weave {
enum class UserRole {
kViewer,
kUser,
kManager,
kOwner,
};
std::string ToString(UserRole role);
bool FromString(const std::string& str,
UserRole* role,
chromeos::ErrorPtr* error);
} // namespace weave
#endif // LIBWEAVE_SRC_COMMANDS_USER_ROLE_H_