Skip to content

Commit 0388e59

Browse files
Add Notification Service.
1 parent 34b1ccf commit 0388e59

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.vs/slnx.sqlite

0 Bytes
Binary file not shown.

NotificationService.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
return new ...();
9+
else if (type == "Push")
10+
return new ...();
11+
else
12+
throw new ArgumentException("Invalid notification type.");
13+
}
14+
}

0 commit comments

Comments
 (0)