We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34b1ccf commit 0388e59Copy full SHA for 0388e59
.vs/slnx.sqlite
0 Bytes
NotificationService.cs
@@ -0,0 +1,14 @@
1
+public class NotificationService
2
+{
3
+ public ... CreateNotification(string type)
4
+ {
5
+ if (type == "Email")
6
+ return new ...();
7
+ else if (type == "SMS")
8
9
+ else if (type == "Push")
10
11
+ else
12
+ throw new ArgumentException("Invalid notification type.");
13
+ }
14
+}
0 commit comments