mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 17:27:21 +00:00
Turned getter-like extension methods into extension properties (#1157)
This commit is contained in:
1 parent
0375318b1b
commit
f649febf88
286 files changed
+1379
-1109
No files matched your search
@@ -8,7 +8,7 @@ public static class TranscriptionOpusBitrateExtensions
|
||||
|
||||
extension(TranscriptionOpusBitrate bitrate)
|
||||
{
|
||||
public string GetName() => bitrate switch
|
||||
public string Name => bitrate switch
|
||||
{
|
||||
TranscriptionOpusBitrate.KBPS_32 => TB("32 kbps (smallest upload, lowest accuracy)"),
|
||||
TranscriptionOpusBitrate.KBPS_64 => TB("64 kbps"),
|
||||
@@ -17,7 +17,7 @@ public static class TranscriptionOpusBitrateExtensions
|
||||
_ => TB("Unknown"),
|
||||
};
|
||||
|
||||
public uint GetBitsPerSecond() => bitrate switch
|
||||
public uint BitsPerSecond => bitrate switch
|
||||
{
|
||||
TranscriptionOpusBitrate.KBPS_32 => 32_000,
|
||||
TranscriptionOpusBitrate.KBPS_64 => 64_000,
|
||||
|
||||
Reference in new issue
Block a user