// 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 System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.HeaderValueAbstractions;
namespace Microsoft.AspNet.Mvc.ModelBinding
{
public interface IInputFormatter
{
///
/// Gets the mutable collection of media types supported by this instance.
///
IList SupportedMediaTypes { get; }
///
/// Gets the mutable collection of character encodings supported by this
/// instance.
///
IList SupportedEncodings { get; }
///
/// Called during deserialization to read an object from the request.
///
Task ReadAsync(InputFormatterContext context);
}
}