FileCategoryMapper
Namespace: MJCZone.MediaMatic.AspNetCore.Models.Dtos
Assembly: MJCZone.MediaMatic.AspNetCore
Summary
Maps file extensions to categories for filtering and organization.
static public
Contents
Methods
| Method | Summary |
|---|---|
| GetCategory | Gets the category for a file based on its extension. |
| GetAllCategories | Gets all supported categories. |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
GetCategory
Gets the category for a file based on its extension.
csharp
string GetCategory(string extension)Parameters
- extension (string) - The file extension (with or without leading dot).
Returns
Type: string
The file category.
GetAllCategories
Gets all supported categories.
csharp
string[] GetAllCategories()Returns
Type: string[]
An array of all category names.
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()Fields
Image
Image file category.
Type: object
Video
Video file category.
Type: object
Audio
Audio file category.
Type: object
Document
Document file category.
Type: object
Archive
Archive file category.
Type: object
Code
Code file category.
Type: object
Other
Other/unknown file category.
Type: object