Class FileAttachment.GroupMeDocumentMimeTypeMapper
FileAttachment.GroupMeDocumentMimeTypeMapper provides mappings between supported GroupMe Document Mime Types and Extensions.
Namespace: GroupMeClientApi.Models.Attachments
Assembly: GroupMeClientApi.dll
Syntax
public class GroupMeDocumentMimeTypeMapper : object
Properties
| Improve this Doc View SourceSupportedExtensions
Gets a listing of supported extension for GroupMe Document Attachments.
Declaration
public static IEnumerable<string> SupportedExtensions { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<String> |
Methods
| Improve this Doc View SourceExtensionToMimeType(String)
Returns the correct mime type for a given file extension.
Declaration
public static string ExtensionToMimeType(string extension)
Parameters
| Type | Name | Description |
|---|---|---|
| String | extension | The extension to lookup. |
Returns
| Type | Description |
|---|---|
| String | A mime type. |
IsExtensionSupported(String)
Returns a value indicating whether a specific extension is supported by GroupMe's Document service.
Declaration
public bool IsExtensionSupported(string extension)
Parameters
| Type | Name | Description |
|---|---|---|
| String | extension | A file extension. |
Returns
| Type | Description |
|---|---|
| Boolean | A boolean value indicating whether the provided extension is supported. |
MimeTypeToExtension(String)
Returns the correct file extension for a given mime type.
Declaration
public static string MimeTypeToExtension(string mimeType)
Parameters
| Type | Name | Description |
|---|---|---|
| String | mimeType | The mime type to lookup. |
Returns
| Type | Description |
|---|---|
| String | A file extension. |