UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.GeminiContentTypeExtensions Class Reference

Extensions for Enum type objects. More...

Static Public Member Functions

static string MimeType (this GeminiContentType enumValue)
 Converts a GeminiContentType to its MIME type.
 
static GeminiContentType ContentType (this string mimeType)
 Converts a string MIME type to a GeminiContentType.
 

Detailed Description

Extensions for Enum type objects.

Member Function Documentation

◆ ContentType()

static GeminiContentType Uralstech.UGemini.GeminiContentTypeExtensions.ContentType ( this string mimeType)
static

Converts a string MIME type to a GeminiContentType.

Parameters
mimeTypeThe MIME type string.
Returns
The GeminiContentType equivalent.
Exceptions
NotImplementedExceptionThrown if GeminiContentType does not have an equivalent MIME type to mimeType .

◆ MimeType()

static string Uralstech.UGemini.GeminiContentTypeExtensions.MimeType ( this GeminiContentType enumValue)
static

Converts a GeminiContentType to its MIME type.

Parameters
enumValueThe GeminiContentType value.
Returns
The MIME type as a string.
Exceptions
NotImplementedExceptionThrown if the MIME type of the enum value could not be found.

The documentation for this class was generated from the following file: