-
Notifications
You must be signed in to change notification settings - Fork 0
/
Messenger.cs
43 lines (35 loc) · 1.29 KB
/
Messenger.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
namespace GoComicsToGo
{
internal static class Messenger
{
internal static void ArgumentsValid(string name, DateTime min, DateTime max)
{
Console.WriteLine();
Console.WriteLine("Valid Arguments:");
Console.WriteLine(string.Concat("%1 - ", name));
Console.WriteLine(string.Concat("%2 - ", min.ToString(Constants.DATE_MASK)));
Console.WriteLine(string.Concat("%3 - ", max.ToString(Constants.DATE_MASK)));
Console.WriteLine();
}
internal static void ArgumentsInvalid()
{
Console.WriteLine();
Console.WriteLine("Invalid Arguments:");
Console.WriteLine("%1 - [Comic Name]");
Console.WriteLine("%2 - [Date Minimum]");
Console.WriteLine("%3 - [Date Maximum]");
Console.WriteLine();
}
internal static void Exit()
{
Console.WriteLine();
Console.WriteLine("Press any key to exit ...");
Console.ReadKey();
}
internal static void ProcessedItem(DateTime date, bool success)
{
Console.WriteLine(string.Format("Processing {0} - {1}", date.ToString(Constants.DATE_MASK), success ? "Success" : "Failure"));
}
}
}