Files
flowframes/Code/Data/Streams/AttachmentStream.cs
2022-07-20 18:10:31 +02:00

23 lines
633 B
C#

namespace Flowframes.Data.Streams
{
public class AttachmentStream : Stream
{
public string Filename { get; } = "";
public string MimeType { get; } = "";
public AttachmentStream(string codec, string codecLong, string filename, string mimeType)
{
base.Type = StreamType.Attachment;
Codec = codec;
CodecLong = codecLong;
Filename = filename;
MimeType = mimeType;
}
public override string ToString()
{
return $"{base.ToString()} - Filename: {Filename} - MIME Type: {MimeType}";
}
}
}