-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the option to show Birthday reminders (Disabled by default)
Changed some message formatting
- Loading branch information
1 parent
ad1b1c5
commit dfbd1bb
Showing
6 changed files
with
189 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
namespace ForecasterText.Objects { | ||
internal sealed class MessageSource { | ||
public string Source; | ||
public string Message; | ||
|
||
private MessageSource(string source, string message) { | ||
this.Source = source; | ||
this.Message = message; | ||
} | ||
|
||
public override string ToString() => $"{this.Source}: {this.Message}"; | ||
|
||
public static MessageSource TV(string message = "") { | ||
if (message is null) | ||
return null; | ||
return new MessageSource("TV", message); | ||
} | ||
public static MessageSource Calendar(string message = "") { | ||
if (message is null) | ||
return null; | ||
return new MessageSource("Calendar", message); | ||
} | ||
} | ||
} |
Oops, something went wrong.