UGemini 2.0.1
A C# wrapper for the Google Gemini API.
|
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. | |
Extensions for Enum type objects.
|
static |
Converts a string MIME type to a GeminiContentType.
mimeType | The MIME type string. |
NotImplementedException | Thrown if GeminiContentType does not have an equivalent MIME type to mimeType . |
|
static |
Converts a GeminiContentType to its MIME type.
enumValue | The GeminiContentType value. |
NotImplementedException | Thrown if the MIME type of the enum value could not be found. |