mirror of
https://github.com/wagesj45/MimeTypeList.git
synced 2024-11-11 00:33:35 -06:00
Fixing various bugs in structure.
Fixing class structures so that everything works as expected.
This commit is contained in:
parent
6098ba2a3d
commit
a9d57ae593
12 changed files with 4185 additions and 0 deletions
25
MimeTypeList/MimeTypeList.sln
Normal file
25
MimeTypeList/MimeTypeList.sln
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.645
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MimeTypeList", "MimeTypeList\MimeTypeList.csproj", "{0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0DF52E1B-C85A-4CCC-97E8-03A9BB6A07CF}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {831B232E-E08F-4EE1-B3B9-B04B8F23FE93}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
63
MimeTypeList/MimeTypeList/ApplicationMimeType.cs
Normal file
63
MimeTypeList/MimeTypeList/ApplicationMimeType.cs
Normal file
|
@ -0,0 +1,63 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> Application mime type namespace. </summary>
|
||||
public class ApplicationMimeType
|
||||
{
|
||||
/// <summary> application/fsharp-script </summary>
|
||||
public readonly string fsharp_script = ".fsx";
|
||||
|
||||
/// <summary> application/msaccess </summary>
|
||||
public readonly string msaccess = ".adp";
|
||||
|
||||
/// <summary> application/msword </summary>
|
||||
public readonly string msword = ".doc";
|
||||
|
||||
/// <summary> application/octet-stream </summary>
|
||||
public readonly string octet_stream = ".bin";
|
||||
|
||||
/// <summary> application/onenote </summary>
|
||||
public readonly string onenote = ".one";
|
||||
|
||||
/// <summary> application/postscript </summary>
|
||||
public readonly string postscript = ".eps";
|
||||
|
||||
/// <summary> application/step </summary>
|
||||
public readonly string step = ".step";
|
||||
|
||||
/// <summary> application/vnd.ms-excel </summary>
|
||||
public readonly string vnd_ms_excel = ".xls";
|
||||
|
||||
/// <summary> application/vnd.ms-powerpoint </summary>
|
||||
public readonly string vnd_ms_powerpoint = ".ppt";
|
||||
|
||||
/// <summary> application/vnd.ms-works </summary>
|
||||
public readonly string vnd_ms_works = ".wks";
|
||||
|
||||
/// <summary> application/vnd.visio </summary>
|
||||
public readonly string vnd_visio = ".vsd";
|
||||
|
||||
/// <summary> application/x-director </summary>
|
||||
public readonly string x_director = ".dir";
|
||||
|
||||
/// <summary> application/x-shockwave-flash </summary>
|
||||
public readonly string x_shockwave_flash = ".swf";
|
||||
|
||||
/// <summary> application/x-x509-ca-cert </summary>
|
||||
public readonly string x_x509_ca_cert = ".cer";
|
||||
|
||||
/// <summary> application/x-zip-compressed </summary>
|
||||
public readonly string x_zip_compressed = ".zip";
|
||||
|
||||
/// <summary> application/xhtml+xml </summary>
|
||||
public readonly string xhtml_xml = ".xhtml";
|
||||
|
||||
/// <summary> application/xml </summary>
|
||||
public readonly string xml = ".xml";
|
||||
|
||||
/// <summary> Internal default constructor. </summary>
|
||||
internal ApplicationMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
39
MimeTypeList/MimeTypeList/AudioMimeType.cs
Normal file
39
MimeTypeList/MimeTypeList/AudioMimeType.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> Audio mime type namespace. </summary>
|
||||
public class AudioMimeType
|
||||
{
|
||||
/// <summary> audio/aac </summary>
|
||||
public readonly string aac = ".AAC";
|
||||
|
||||
/// <summary> audio/aiff </summary>
|
||||
public readonly string aiff = ".aiff";
|
||||
|
||||
/// <summary> audio/basic </summary>
|
||||
public readonly string basic = ".snd";
|
||||
|
||||
/// <summary> audio/mid </summary>
|
||||
public readonly string mid = ".midi";
|
||||
|
||||
/// <summary> audio/wav </summary>
|
||||
public readonly string wav = ".wav";
|
||||
|
||||
/// <summary> audio/x-m4a </summary>
|
||||
public readonly string x_m4a = ".m4a";
|
||||
|
||||
/// <summary> audio/x-mpegurl </summary>
|
||||
public readonly string x_mpegurl = ".m3u";
|
||||
|
||||
/// <summary> audio/x-pn-realaudio </summary>
|
||||
public readonly string x_pn_realaudio = ".ra";
|
||||
|
||||
/// <summary> audio/x-smd </summary>
|
||||
public readonly string x_smd = ".smd";
|
||||
|
||||
/// <summary> Default constructor. </summary>
|
||||
internal AudioMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
1833
MimeTypeList/MimeTypeList/FileExtensions.cs
Normal file
1833
MimeTypeList/MimeTypeList/FileExtensions.cs
Normal file
File diff suppressed because it is too large
Load diff
38
MimeTypeList/MimeTypeList/ImageMimeType.cs
Normal file
38
MimeTypeList/MimeTypeList/ImageMimeType.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> Image mime type namespace. </summary>
|
||||
public class ImageMimeType
|
||||
{
|
||||
/// <summary> image/bmp </summary>
|
||||
public readonly string bmp = ".bmp";
|
||||
|
||||
/// <summary> image/jpeg </summary>
|
||||
public readonly string jpeg = ".jpg";
|
||||
|
||||
/// <summary> image/pict </summary>
|
||||
public readonly string pict = ".pic";
|
||||
|
||||
/// <summary> image/png </summary>
|
||||
/// <remarks>Defined in [RFC-2045], [RFC-2048]</remarks>
|
||||
public readonly string png = ".png";
|
||||
|
||||
/// <summary> image/x-png </summary>
|
||||
/// <remarks>See https://www.w3.org/TR/PNG/#A-Media-type :"It is recommended that implementations also recognize the media type "image/x-png"."</remarks>
|
||||
public readonly string x_png = ".png";
|
||||
|
||||
/// <summary> image/tiff </summary>
|
||||
public readonly string tiff = ".tiff";
|
||||
|
||||
/// <summary> image/x-macpaint </summary>
|
||||
public readonly string x_macpaint = ".mac";
|
||||
|
||||
/// <summary> image/x-quicktime </summary>
|
||||
public readonly string x_quicktime = ".qti";
|
||||
|
||||
/// <summary> Internal default constructor. </summary>
|
||||
internal ImageMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
15
MimeTypeList/MimeTypeList/MessageMimeType.cs
Normal file
15
MimeTypeList/MimeTypeList/MessageMimeType.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> Message mime type namespace. </summary>
|
||||
public class MessageMimeType
|
||||
{
|
||||
/// <summary> message/rfc822 </summary>
|
||||
public readonly string rfc822 = ".eml";
|
||||
|
||||
/// <summary> Default constructor. </summary>
|
||||
internal MessageMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
19
MimeTypeList/MimeTypeList/MimeTypeList.csproj
Normal file
19
MimeTypeList/MimeTypeList/MimeTypeList.csproj
Normal file
|
@ -0,0 +1,19 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<PackageLicenseUrl>https://github.com/wagesj45/MimeTypeList/blob/master/LICENSE</PackageLicenseUrl>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
<Authors>Jordan Wages</Authors>
|
||||
<Company />
|
||||
<Description>Provides a hard-coded collection of file extension and mime type mapping. This project was inspired by samuelneff/MimeTypeMap. This project uses the data from that project to create classes with members for each extension and mime type for lookups.</Description>
|
||||
<PackageProjectUrl>https://github.com/wagesj45/MimeTypeList</PackageProjectUrl>
|
||||
<PackageTags>mime type file files</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<DocumentationFile>C:\Users\wages\Documents\GitHub\MimeTypeList\MimeTypeList\MimeTypeList\MimeTypeList.xml</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
2053
MimeTypeList/MimeTypeList/MimeTypeList.xml
Normal file
2053
MimeTypeList/MimeTypeList/MimeTypeList.xml
Normal file
File diff suppressed because it is too large
Load diff
22
MimeTypeList/MimeTypeList/MimeTypes.cs
Normal file
22
MimeTypeList/MimeTypeList/MimeTypes.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using MimeTypeList.MimeTypeNamespaces;
|
||||
namespace MimeTypeList
|
||||
{
|
||||
/// <summary> A list of mime types organized by namespace. </summary>
|
||||
public static class MimeTypes
|
||||
{
|
||||
/// <summary> Application mime type namespace. </summary>
|
||||
public static readonly ApplicationMimeType application = new ApplicationMimeType();
|
||||
/// <summary> Audio mime type namespace. </summary>
|
||||
public static readonly AudioMimeType audio = new AudioMimeType();
|
||||
/// <summary> Image mime type namespace. </summary>
|
||||
public static readonly ImageMimeType image = new ImageMimeType();
|
||||
/// <summary> Message mime type namespace. </summary>
|
||||
public static readonly MessageMimeType message = new MessageMimeType();
|
||||
/// <summary> Text mime type namespace. </summary>
|
||||
public static readonly TextMimeType text = new TextMimeType();
|
||||
/// <summary> Video mime type namespace. </summary>
|
||||
public static readonly VideoMimeType video = new VideoMimeType();
|
||||
/// <summary> X-World mime type namespace. </summary>
|
||||
public static readonly XWorldMimeType x_world = new XWorldMimeType();
|
||||
}
|
||||
}
|
24
MimeTypeList/MimeTypeList/TextMimeType.cs
Normal file
24
MimeTypeList/MimeTypeList/TextMimeType.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> Text mime type namespace. </summary>
|
||||
public class TextMimeType
|
||||
{
|
||||
/// <summary> text/html </summary>
|
||||
public readonly string html = ".html";
|
||||
|
||||
/// <summary> text/plain </summary>
|
||||
public readonly string plain = ".txt";
|
||||
|
||||
/// <summary> text/scriptlet </summary>
|
||||
public readonly string scriptlet = ".wsc";
|
||||
|
||||
/// <summary> text/xml </summary>
|
||||
public readonly string xml = ".xml";
|
||||
|
||||
/// <summary> Internal default constructor. </summary>
|
||||
internal TextMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
39
MimeTypeList/MimeTypeList/VideoMimeType.cs
Normal file
39
MimeTypeList/MimeTypeList/VideoMimeType.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> Video mime type namespace. </summary>
|
||||
public class VideoMimeType
|
||||
{
|
||||
/// <summary> video/3gpp </summary>
|
||||
public readonly string _3gpp = ".3gp";
|
||||
|
||||
/// <summary> video/3gpp2 </summary>
|
||||
public readonly string _3gpp2 = ".3gp2";
|
||||
|
||||
/// <summary> video/mp4 </summary>
|
||||
public readonly string mp4 = ".mp4";
|
||||
|
||||
/// <summary> video/mpeg </summary>
|
||||
public readonly string mpeg = ".mpg";
|
||||
|
||||
/// <summary> video/quicktime </summary>
|
||||
public readonly string quicktime = ".mov";
|
||||
|
||||
/// <summary> video/vnd.dlna.mpeg-tts </summary>
|
||||
public readonly string vnd_dlna_mpeg_tts = ".m2t";
|
||||
|
||||
/// <summary> video/x-dv </summary>
|
||||
public readonly string x_dv = ".dv";
|
||||
|
||||
/// <summary> video/x-la-asf </summary>
|
||||
public readonly string x_la_asf = ".lsf";
|
||||
|
||||
/// <summary> video/x-ms-asf </summary>
|
||||
public readonly string x_ms_asf = ".asf";
|
||||
|
||||
/// <summary> Internal default constructor. </summary>
|
||||
internal VideoMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
15
MimeTypeList/MimeTypeList/XWorldMimeType.cs
Normal file
15
MimeTypeList/MimeTypeList/XWorldMimeType.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
namespace MimeTypeList.MimeTypeNamespaces
|
||||
{
|
||||
/// <summary> X-World mime type namespace. </summary>
|
||||
public class XWorldMimeType
|
||||
{
|
||||
/// <summary> x-world/x-vrml </summary>
|
||||
public readonly string x_vrml = ".xof";
|
||||
|
||||
/// <summary> Internal default constructor. </summary>
|
||||
internal XWorldMimeType()
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue