//-----------------------------------------------------------------------
//
// Copyright (c) Andrew Arnott. All rights reserved.
//
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.Messaging {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
///
/// Describes a part from a multi-part POST.
///
public struct MultipartContentMember {
///
/// Initializes a new instance of the struct.
///
/// The content.
/// The name of this part as it may come from an HTML form.
/// Name of the file.
public MultipartContentMember(HttpContent content, string name = null, string fileName = null)
: this() {
this.Content = content;
this.Name = name;
this.FileName = fileName;
}
///
/// Gets or sets the content.
///
///
/// The content.
///
public HttpContent Content { get; set; }
///
/// Gets or sets the HTML form name.
///
///
/// The name.
///
public string Name { get; set; }
///
/// Gets or sets the name of the file.
///
///
/// The name of the file.
///
public string FileName { get; set; }
}
}