1 |
36c0667f
|
Eliška Mourycová
|
using Connection;
|
2 |
|
|
using DataDownload;
|
3 |
d2d1c86a
|
Eliška Mourycová
|
using Parser.Parsers;
|
4 |
3811845f
|
Alex Konig
|
using System;
|
5 |
|
|
using System.Collections.Generic;
|
6 |
|
|
using System.Linq;
|
7 |
|
|
using System.Text;
|
8 |
|
|
using System.Threading.Tasks;
|
9 |
|
|
|
10 |
|
|
namespace ServerApp
|
11 |
|
|
{
|
12 |
|
|
class Program
|
13 |
|
|
{
|
14 |
|
|
static void Main(string[] args)
|
15 |
|
|
{
|
16 |
36c0667f
|
Eliška Mourycová
|
// ALEX
|
17 |
|
|
//CsvParser p = new CsvParser();
|
18 |
3811845f
|
Alex Konig
|
|
19 |
36c0667f
|
Eliška Mourycová
|
//p.Parse();
|
20 |
d2d1c86a
|
Eliška Mourycová
|
|
21 |
|
|
|
22 |
|
|
// test scenario - data download:
|
23 |
36c0667f
|
Eliška Mourycová
|
//DataDownloader dd = new DataDownloader();
|
24 |
|
|
// List<string> savedFiles = new List<string>();
|
25 |
|
|
// savedFiles.AddRange(dd.DownloadData(DataType.JIS, DataFormat.CSV, 2017, 2021, 0, 13));
|
26 |
|
|
// savedFiles.AddRange(dd.DownloadData(DataType.POCASI, DataFormat.CSV, 2017, 2021, 0, 13));
|
27 |
|
|
// savedFiles.AddRange(dd.DownloadData(DataType.STROJE, DataFormat.CSV, 2017, 2021, 0, 13));
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
// Console.WriteLine("Saved files: ");
|
31 |
|
|
// foreach(string s in savedFiles)
|
32 |
|
|
//{
|
33 |
|
|
// Console.WriteLine(s);
|
34 |
|
|
//}
|
35 |
d2d1c86a
|
Eliška Mourycová
|
|
36 |
36c0667f
|
Eliška Mourycová
|
|
37 |
|
|
|
38 |
|
|
// test - connection:
|
39 |
1434de93
|
Eliška Mourycová
|
AsynchronousSocketListener asl = new AsynchronousSocketListener();
|
40 |
|
|
asl.StartListening();
|
41 |
36c0667f
|
Eliška Mourycová
|
|
42 |
3811845f
|
Alex Konig
|
|
43 |
|
|
Console.ReadLine();
|
44 |
|
|
}
|
45 |
|
|
}
|
46 |
|
|
}
|