• Home
  • API Documentation

Class FileAttachment.GroupMeDocumentMimeTypeMapper

FileAttachment.GroupMeDocumentMimeTypeMapper provides mappings between supported GroupMe Document Mime Types and Extensions.

Inheritance
Object
FileAttachment.GroupMeDocumentMimeTypeMapper
Namespace: GroupMeClientApi.Models.Attachments
Assembly: GroupMeClientApi.dll
Syntax
public class GroupMeDocumentMimeTypeMapper : object

Properties

| Improve this Doc View Source

SupportedExtensions

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 Source

ExtensionToMimeType(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Edit on GitHub
  • View on GitHub
Back to top Generated by DocFX