csharpdeeb25a2 | 1 | namespace CascadeIDE.Models; |
| 2 | |
| 3 | /// <summary>Режим доставки исходящего сообщения оператора (ADR 0116).</summary> |
| 4 | public static class IntercomComposerDeliveryModes |
| 5 | { |
| 6 | public const string Normal = "normal"; |
| 7 | public const string Steer = "steer"; |
| 8 | public const string FollowUp = "follow_up"; |
| 9 | |
| 10 | public static bool IsSteer(string? mode) => |
| 11 | string.Equals(mode, Steer, StringComparison.OrdinalIgnoreCase); |
| 12 | |
| 13 | public static bool IsFollowUp(string? mode) => |
| 14 | string.Equals(mode, FollowUp, StringComparison.OrdinalIgnoreCase); |
| 15 | |
| 16 | public static string Normalize(string? mode) => |
| 17 | IsSteer(mode) ? Steer |
| 18 | : IsFollowUp(mode) ? FollowUp |
| 19 | : Normal; |
| 20 | } |
| 21 | |
View only · write via MCP/CIDE