// Copyright © WireMock.Net namespace WireMock.Models.Mime; /// /// A simplified interface exposing the public, readable properties of MimePart. /// public interface IMimePartData : IMimeEntityData { /// /// Get the description of the content if available. /// /// The description of the content. string ContentDescription { get; } /// /// Get the duration of the content if available. /// /// The duration of the content. int? ContentDuration { get; } /// /// Get the md5sum of the content. /// /// The md5sum of the content. string ContentMd5 { get; } /// /// Get the content transfer encoding. /// /// The content transfer encoding as a string. string ContentTransferEncoding { get; } /// /// Get the name of the file. /// /// The name of the file. string FileName { get; } /// /// Get the MIME content. /// /// The MIME content. IDictionary Content { get; } /// /// Open the decoded content stream. /// /// /// Provides a means of reading the decoded content without having to first write it to another stream. /// /// The decoded content stream. Stream Open(); }