// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc.ApplicationModels;
using Microsoft.Framework.Logging;
namespace Microsoft.AspNet.Mvc.Logging
{
///
/// Logging representation of an .
///
public class ApiExplorerModelValues : ReflectionBasedLogValues
{
public ApiExplorerModelValues(ApiExplorerModel inner)
{
if (inner != null)
{
IsVisible = inner.IsVisible;
GroupName = inner.GroupName;
}
}
///
/// See .
///
public bool? IsVisible { get; }
///
/// See .
///
public string GroupName { get; }
public override string Format()
{
return LogFormatter.FormatLogValues(this);
}
}
}