Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public enum ImageToImageAccept
/// <summary>
///
/// </summary>
ApplicationDividejson,
ApplicationJson,
/// <summary>
///
/// </summary>
ImageDividepng,
ImagePng,
}

/// <summary>
Expand All @@ -30,8 +30,8 @@ public static string ToValueString(this ImageToImageAccept value)
{
return value switch
{
ImageToImageAccept.ApplicationDividejson => "application/json",
ImageToImageAccept.ImageDividepng => "image/png",
ImageToImageAccept.ApplicationJson => "application/json",
ImageToImageAccept.ImagePng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -42,8 +42,8 @@ public static string ToValueString(this ImageToImageAccept value)
{
return value switch
{
"application/json" => ImageToImageAccept.ApplicationDividejson,
"image/png" => ImageToImageAccept.ImageDividepng,
"application/json" => ImageToImageAccept.ApplicationJson,
"image/png" => ImageToImageAccept.ImagePng,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public enum MaskingAccept
/// <summary>
///
/// </summary>
ApplicationDividejson,
ApplicationJson,
/// <summary>
///
/// </summary>
ImageDividepng,
ImagePng,
}

/// <summary>
Expand All @@ -30,8 +30,8 @@ public static string ToValueString(this MaskingAccept value)
{
return value switch
{
MaskingAccept.ApplicationDividejson => "application/json",
MaskingAccept.ImageDividepng => "image/png",
MaskingAccept.ApplicationJson => "application/json",
MaskingAccept.ImagePng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -42,8 +42,8 @@ public static string ToValueString(this MaskingAccept value)
{
return value switch
{
"application/json" => MaskingAccept.ApplicationDividejson,
"image/png" => MaskingAccept.ImageDividepng,
"application/json" => MaskingAccept.ApplicationJson,
"image/png" => MaskingAccept.ImagePng,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public enum TextToImageAccept
/// <summary>
///
/// </summary>
ApplicationDividejson,
ApplicationJson,
/// <summary>
///
/// </summary>
ImageDividepng,
ImagePng,
}

/// <summary>
Expand All @@ -30,8 +30,8 @@ public static string ToValueString(this TextToImageAccept value)
{
return value switch
{
TextToImageAccept.ApplicationDividejson => "application/json",
TextToImageAccept.ImageDividepng => "image/png",
TextToImageAccept.ApplicationJson => "application/json",
TextToImageAccept.ImagePng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -42,8 +42,8 @@ public static string ToValueString(this TextToImageAccept value)
{
return value switch
{
"application/json" => TextToImageAccept.ApplicationDividejson,
"image/png" => TextToImageAccept.ImageDividepng,
"application/json" => TextToImageAccept.ApplicationJson,
"image/png" => TextToImageAccept.ImagePng,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ public enum UpscaleImageAccept
/// <summary>
///
/// </summary>
ApplicationDividejson,
ApplicationJson,
/// <summary>
///
/// </summary>
ImageDividepng,
ImagePng,
}

/// <summary>
Expand All @@ -30,8 +30,8 @@ public static string ToValueString(this UpscaleImageAccept value)
{
return value switch
{
UpscaleImageAccept.ApplicationDividejson => "application/json",
UpscaleImageAccept.ImageDividepng => "image/png",
UpscaleImageAccept.ApplicationJson => "application/json",
UpscaleImageAccept.ImagePng => "image/png",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -42,8 +42,8 @@ public static string ToValueString(this UpscaleImageAccept value)
{
return value switch
{
"application/json" => UpscaleImageAccept.ApplicationDividejson,
"image/png" => UpscaleImageAccept.ImageDividepng,
"application/json" => UpscaleImageAccept.ApplicationJson,
"image/png" => UpscaleImageAccept.ImagePng,
_ => null,
};
}
Expand Down