Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 5d9a5bd9

Přidáno uživatelem Alex Konig před asi 4 roky(ů)

Parser structure 1.0

Zobrazit rozdíly:

Server/Parser 1.0.sln
1

2
Microsoft Visual Studio Solution File, Format Version 12.00
3
# Visual Studio Version 16
4
VisualStudioVersion = 16.0.31105.61
5
MinimumVisualStudioVersion = 10.0.40219.1
6
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Parser 1.0", "Parser 1.0\Parser 1.0.csproj", "{916C1E8A-0D6D-43FB-8BDE-DBEDF441842D}"
7
EndProject
8
Global
9
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
		Debug|Any CPU = Debug|Any CPU
11
		Release|Any CPU = Release|Any CPU
12
	EndGlobalSection
13
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
		{916C1E8A-0D6D-43FB-8BDE-DBEDF441842D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
		{916C1E8A-0D6D-43FB-8BDE-DBEDF441842D}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
		{916C1E8A-0D6D-43FB-8BDE-DBEDF441842D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
		{916C1E8A-0D6D-43FB-8BDE-DBEDF441842D}.Release|Any CPU.Build.0 = Release|Any CPU
18
	EndGlobalSection
19
	GlobalSection(SolutionProperties) = preSolution
20
		HideSolutionNode = FALSE
21
	EndGlobalSection
22
	GlobalSection(ExtensibilityGlobals) = postSolution
23
		SolutionGuid = {4E18E2F7-ED86-43DF-9B8D-47294B10BA49}
24
	EndGlobalSection
25
EndGlobal
Server/Parser 1.0/App.config
1
<?xml version="1.0" encoding="utf-8" ?>
2
<configuration>
3
    <startup> 
4
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5
    </startup>
6
</configuration>
Server/Parser 1.0/InputData/CsvDataLoader.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Globalization;
4
using System.IO;
5

  
6
namespace Parser_1._0.InputData
7
{
8
    static class CsvDataLoader
9
    {
10
        static CultureInfo cultureInfo = new CultureInfo("de-DE");
11

  
12
        static string[] LoadCsv(string name)
13
        {
14
            string[] lines = File.ReadAllLines(name);
15
            return lines;
16
        }
17

  
18
        public static List<JisInstance> LoadJisFile(string pathToFile)
19
        {
20
            var lines = LoadCsv(pathToFile);
21
            List<JisInstance> list = new List<JisInstance>();
22

  
23
            for (int i = 0; i < lines.Length; i++)
24
            {
25
                var data = lines[i].Split(';');
26
                data[0] = data[0].Substring(1, data[0].Length - 2);
27
                data[1] = data[1].Substring(1, data[1].Length - 2);
28
                
29
                var dateTime = DateTime.ParseExact(data[1], "G", cultureInfo);
30

  
31
                int amount = 0;
32
                int.TryParse(data[2], out amount);
33

  
34
                JisInstance inst = new JisInstance(data[0], dateTime, amount);
35
                list.Add(inst);
36
            }
37

  
38
            return list;
39
        }
40

  
41
        public static List<LogInInstance> LoadLoginFile(string pathToFile)
42
        {
43
            var lines = LoadCsv(pathToFile);
44
            List<LogInInstance> list = new List<LogInInstance>();
45

  
46
            for (int i = 0; i < lines.Length; i++)
47
            {
48
                var data = lines[i].Split(';');
49
                data[0] = data[0].Substring(1, data[0].Length - 2);
50
                data[3] = data[3].Substring(1, data[3].Length - 2);
51
                data[4] = data[4].Substring(1, data[4].Length - 2);
52
                data[5] = data[4].Substring(1, data[4].Length - 2);
53
                data[6] = data[4].Substring(1, data[4].Length - 2);
54
                data[7] = data[4].Substring(1, data[4].Length - 2);
55
                data[8] = data[4].Substring(1, data[4].Length - 2);
56

  
57
                var dateTime = DateTime.ParseExact(data[0], "G", cultureInfo);
58
                var startTime = DateTime.ParseExact(data[3], "t", cultureInfo);
59
                var endTime = DateTime.ParseExact(data[4], "t", cultureInfo);
60

  
61
                int count = 0;
62
                int.TryParse(data[1], out count);
63

  
64
                int lesson = 0;
65
                int.TryParse(data[2], out lesson);
66

  
67
                LogInInstance inst = new LogInInstance(dateTime, count, lesson, startTime, endTime, data[5], data[6], data[7], data[8]);
68
                list.Add(inst);
69
            }
70

  
71
            return list;
72
        }
73

  
74
        public static List<WeatherInstance> LoadWeatherFile(string pathToFile)
75
        {
76
            var lines = LoadCsv(pathToFile);
77
            
78
            List<WeatherInstance> list = new List<WeatherInstance>();
79
            for (int i = 0; i < lines.Length; i++)
80
            {
81
                var data = lines[i].Split(';');
82
                data[0] = data[0].Substring(1, data[0].Length - 2);
83
                
84
                var dateTime = DateTime.ParseExact(data[0], "G", cultureInfo);
85
                
86
                double temp = 0;
87
                double.TryParse(data[1], out temp);
88
                
89
                double wind = 0;
90
                double.TryParse(data[2], out wind);
91
                
92
                int rain = 0;
93
                int.TryParse(data[3], out rain);
94
                
95
                double lum = 0;
96
                double.TryParse(data[4], out lum);
97

  
98
                WeatherInstance inst = new WeatherInstance(dateTime, temp, wind, rain, lum);
99
                list.Add(inst);
100
            }
101

  
102
            return list;
103
        }
104

  
105
    }
106
}
Server/Parser 1.0/InputData/JisInstance.cs
1
using System;
2

  
3
namespace Parser_1._0.InputData
4
{
5
    /// <summary>
6
    ///
7
    /// Data contains:
8
    ///     datum_a_cas - timestamp of JIS authentication(accuracy in milliseconds)
9
    ///     pocet_logu - number of authentized users in given time
10
    ///     popis_objektu - description of object according to standard ZČU tagging
11
    /// Csv format:
12
    ///     "A1";"08.04.2018 14:23:15";1
13
    ///     [place tag];[date time];[amount]
14
    /// </summary>
15
    class JisInstance
16
    {
17
        //0
18
        public string placeTag;
19
        //1
20
        public DateTime dateTime;
21
        //2
22
        public int amount;
23

  
24
        public JisInstance(string placeTag, DateTime dateTime, int amount)
25
        {
26
            this.placeTag = placeTag;
27
            this.dateTime = dateTime;
28
            this.amount = amount;
29
        }
30

  
31
    }
32
}
Server/Parser 1.0/InputData/LogInInstance.cs
1
using System;
2

  
3
namespace Parser_1._0.InputData
4
{
5

  
6
    /// <summary>
7
    /// 
8
    /// 
9
    /// Data contains:
10
    ///     datum - date of access
11
    ///     budova - building tag
12
    ///     hodina_zacatek - start of lecture
13
    ///     hodina_konec - end of lecture
14
    ///     pocet_prihlaseni - number of successfull sign-ins to given computer in given lecture
15
    ///     stroj_hostname - name of specific computer
16
    ///     typ_objektu - type of object (classroom, laboratory, lecture room, other)
17
    ///     ucebna_nazev - specific name of room
18
    ///     vyucovaci_hodina - number of lecture(according to the timetable)
19
    /// Csv format:
20
    ///     "27.10.2011 00:00:00";1;7;"13:00";"13:45";"UI";"Laboratoř";"UI-505";"ui505av07-lps"
21
    ///     [datum];[amount];[lesson];[lesson start];[lesson end];[building];[room type];[room];[hostname]
22
    /// </summary>
23
    class LogInInstance
24
    {
25
        // index 0
26
        public DateTime date;
27
        // index 1
28
        public int amount;
29
        // index 2
30
        public int lesson;
31
        // index 3
32
        public DateTime lessonStart;
33
        // index 4
34
        public DateTime lessonEnd;
35
        // index 5
36
        public string building;
37
        // index 6
38
        public string roomType;
39
        // index 7
40
        public string room;
41
        // index 8
42
        public string hostname;
43
        
44

  
45
        public LogInInstance(DateTime date, int amount, int lesson, DateTime lessonStart, DateTime lessonEnd, string building, string roomtType, string room, string hostname)
46
        {
47
            this.date = date;
48
            this.amount = amount;
49
            this.lesson = lesson;
50
            this.lessonStart = lessonStart;
51
            this.lessonEnd = lessonEnd;
52
            this.building = building;
53
            this.roomType = roomtType;
54
            this.room = room;
55
            this.hostname = hostname;
56
        }
57

  
58
        public override string ToString()
59
        {
60
            return date + " " + room + " " + lessonStart + "-" + lessonEnd + " " + amount;
61
        }
62
    }
63
}
Server/Parser 1.0/InputData/WeatherInstance.cs
1
using System;
2

  
3
namespace Parser_1._0.InputData
4
{
5
    /// <summary>
6
    /// 
7
    /// Csv format:
8
    ///     "30.04.2019 16:19:01";20.3;5.3;0;19
9
    ///     [date time];[temperature];[wind];[rain];[luminance]
10
    /// </summary>
11
    class WeatherInstance
12
    {
13
        // 0
14
        public DateTime dateTime;
15
        // 1
16
        public double temp;
17
        // 2
18
        public double wind;
19
        // 3
20
        public int rain;
21
        // 4
22
        public double lum;
23

  
24
        public WeatherInstance(DateTime date, double temp, double wind, int rain, double lum)
25
        {
26
            this.dateTime = date;
27
            this.temp = temp;
28
            this.wind = wind;
29
            this.rain = rain;
30
            this.lum = lum;
31
        }
32
    }
33
}
Server/Parser 1.0/OutputInfo/JisInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.OutputInfo
8
{
9
    class JisInfo
10
    {
11
        string faculty;
12
        int amount;
13
        DateTime startTime;
14
        int intervalLength;
15

  
16
        public JisInfo(string faculty, int amount, DateTime startTime, int intervalLength)
17
        {
18
            this.faculty = faculty;
19
            this.amount = amount;
20
            this.startTime = startTime;
21
            this.intervalLength = intervalLength;
22
        }
23
    }
24
}
Server/Parser 1.0/OutputInfo/LogInInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.OutputInfo
8
{
9
    class LogInInfo
10
    {
11
    }
12
}
Server/Parser 1.0/OutputInfo/LumInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.OutputInfo
8
{
9
    class LumInfo
10
    {
11
    }
12
}
Server/Parser 1.0/OutputInfo/RainInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.OutputInfo
8
{
9
    class RainInfo
10
    {
11
    }
12
}
Server/Parser 1.0/OutputInfo/TempInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.OutputInfo
8
{
9
    class TempInfo
10
    {
11
    }
12
}
Server/Parser 1.0/OutputInfo/WindInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.OutputInfo
8
{
9
    class WindInfo
10
    {
11
    }
12
}
Server/Parser 1.0/Parser 1.0.csproj
1
<?xml version="1.0" encoding="utf-8"?>
2
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4
  <PropertyGroup>
5
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7
    <ProjectGuid>{916C1E8A-0D6D-43FB-8BDE-DBEDF441842D}</ProjectGuid>
8
    <OutputType>Exe</OutputType>
9
    <RootNamespace>Parser_1._0</RootNamespace>
10
    <AssemblyName>Parser 1.0</AssemblyName>
11
    <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
12
    <FileAlignment>512</FileAlignment>
13
    <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
14
    <Deterministic>true</Deterministic>
15
  </PropertyGroup>
16
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17
    <PlatformTarget>AnyCPU</PlatformTarget>
18
    <DebugSymbols>true</DebugSymbols>
19
    <DebugType>full</DebugType>
20
    <Optimize>false</Optimize>
21
    <OutputPath>bin\Debug\</OutputPath>
22
    <DefineConstants>DEBUG;TRACE</DefineConstants>
23
    <ErrorReport>prompt</ErrorReport>
24
    <WarningLevel>4</WarningLevel>
25
  </PropertyGroup>
26
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27
    <PlatformTarget>AnyCPU</PlatformTarget>
28
    <DebugType>pdbonly</DebugType>
29
    <Optimize>true</Optimize>
30
    <OutputPath>bin\Release\</OutputPath>
31
    <DefineConstants>TRACE</DefineConstants>
32
    <ErrorReport>prompt</ErrorReport>
33
    <WarningLevel>4</WarningLevel>
34
  </PropertyGroup>
35
  <ItemGroup>
36
    <Reference Include="System" />
37
    <Reference Include="System.Core" />
38
    <Reference Include="System.Xml.Linq" />
39
    <Reference Include="System.Data.DataSetExtensions" />
40
    <Reference Include="Microsoft.CSharp" />
41
    <Reference Include="System.Data" />
42
    <Reference Include="System.Net.Http" />
43
    <Reference Include="System.Xml" />
44
  </ItemGroup>
45
  <ItemGroup>
46
    <Compile Include="InputData\CsvDataLoader.cs" />
47
    <Compile Include="InputData\WeatherInstance.cs" />
48
    <Compile Include="OutputInfo\JisInfo.cs" />
49
    <Compile Include="InputData\JisInstance.cs" />
50
    <Compile Include="InputData\LogInInstance.cs" />
51
    <Compile Include="OutputInfo\LogInInfo.cs" />
52
    <Compile Include="OutputInfo\LumInfo.cs" />
53
    <Compile Include="OutputInfo\RainInfo.cs" />
54
    <Compile Include="OutputInfo\TempInfo.cs" />
55
    <Compile Include="OutputInfo\WindInfo.cs" />
56
    <Compile Include="Parsers\JisParser.cs" />
57
    <Compile Include="Parsers\LogInParser.cs" />
58
    <Compile Include="Parsers\WeatherParser.cs" />
59
    <Compile Include="Program.cs" />
60
    <Compile Include="Properties\AssemblyInfo.cs" />
61
  </ItemGroup>
62
  <ItemGroup>
63
    <None Include="App.config" />
64
  </ItemGroup>
65
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
66
</Project>
Server/Parser 1.0/Parsers/JisParser.cs
1
using Parser_1._0.OutputInfo;
2
using System;
3
using System.Collections.Generic;
4
using System.IO;
5
using Parser_1._0.InputData;
6

  
7
namespace Parser_1._0.Parsers
8
{
9
    class JisParser
10
    {
11

  
12
        static List<JisInfo> ParseJisData(string folder, bool wholeDay = true, int interval = 1)
13
        {
14
            List<JisInfo> list = new List<JisInfo>();
15

  
16
            // najít složku, ve složce sou data co se budou parsovat
17

  
18
            if (!Directory.Exists(folder))
19
                return null;
20

  
21
            // když v jednej složce budou všechny jis data co chci zpracovat
22
            // pro každej soubor budu spouštět parsování
23
            string[] fileEntries = Directory.GetFiles(folder);
24
            foreach (string fileName in fileEntries)
25
            {
26
                List<JisInfo> loadedData = null;
27
                // pokud po jednom dni
28
                if (wholeDay)
29
                    loadedData = ProcessOneJisFileAsDays(folder + "/" + fileName);
30
                // pokud po hodinách
31
                else
32
                {
33
                    // pokud: konec dne nebo konec aktuálního intervalu -> vemu to co sem nasčítal
34
                    throw new NotImplementedException();
35
                }
36

  
37
                list.AddRange(loadedData);
38
            }
39

  
40
            return list;
41
        }
42

  
43
        private static List<JisInfo> ProcessOneJisFileAsDays(string path)
44
        {
45
            List<JisInfo> jisInfo = new List<JisInfo>();
46

  
47
            // načíst data ze souboru
48
            List<JisInstance> list =  CsvDataLoader.LoadJisFile(path);
49

  
50
            int[] recordedAmount = new int[TagInfo.faculties.Length];
51

  
52
            // procházet data ze souboru
53
            int lastDay = list[0].dateTime.Day;
54
            DateTime lastStartTime = list[0].dateTime.Date;
55
            for (int i = 0; i < list.Count; i++)
56
            {
57
                // v každym dni agreguju
58
                int day = list[i].dateTime.Day;
59
                if (lastDay != day)
60
                {
61
                    for (int k = 0; k < TagInfo.faculties.Length; k++)
62
                    {
63
                        JisInfo dayInfo = new JisInfo(TagInfo.faculties[k], recordedAmount[k], lastStartTime, 11);
64
                        jisInfo.Add(dayInfo);
65
                    }
66

  
67
                    recordedAmount = new int[TagInfo.faculties.Length];
68
                }
69

  
70
                // tady nasčítávát podle místa
71
                if (TagInfo.jisPlaces.ContainsKey(list[i].placeTag))
72
                    recordedAmount[TagInfo.jisPlaces[list[i].placeTag]] += list[i].amount;
73
                else
74
                {
75
                    Console.WriteLine("Unknown code " + list[i].placeTag);
76
                }
77

  
78
            }
79

  
80
            throw new NotImplementedException();
81
        }
82
    }
83
}
Server/Parser 1.0/Parsers/LogInParser.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.Parsers
8
{
9
    class LogInParser
10
    {
11
    }
12
}
Server/Parser 1.0/Parsers/TagInfo.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.Parsers
8
{
9
    class TagInfo
10
    {
11
        public static string[] faculties;
12
        public static Dictionary<string, int> jisPlaces;
13
        public static Dictionary<string, int> buildingTags;
14

  
15
        public static void CreateDictionaries()
16
        {
17
            // FACULTIES
18

  
19
            faculties = new string[] { "FST", "FEK", "FEL", "FDU", "FF", "FPE", "FEK-CH", "FZS", "FAV", "FPR" };
20

  
21
            // BUILDING TAGS
22

  
23
            buildingTags.Add("UV", -2);
24
            buildingTags.Add("UU", -2);
25
            buildingTags.Add("UK", -2);
26
            buildingTags.Add("UL", -2);
27
            buildingTags.Add("UP", -2);
28
            buildingTags.Add("UF", -2);
29

  
30
            buildingTags.Add("UT", 0);
31

  
32
            buildingTags.Add("EU", 2);
33
            buildingTags.Add("EK", 2);
34
            buildingTags.Add("EL", 2);
35
            buildingTags.Add("EP", 2);
36
            buildingTags.Add("ES", 2);
37
            buildingTags.Add("ET", 2);
38
            buildingTags.Add("EH", 2);
39
            buildingTags.Add("EZ", 2);
40

  
41
            buildingTags.Add("LS", 3);
42

  
43
            buildingTags.Add("JJ", 4);
44
            buildingTags.Add("RJ", 4);
45
            buildingTags.Add("RS", 4);
46
            buildingTags.Add("SP", 4);
47
            buildingTags.Add("SD", 4);
48
            buildingTags.Add("ST", 4);
49
            buildingTags.Add("SO", 4);
50

  
51
            buildingTags.Add("CH", 5);
52
            buildingTags.Add("VC", 5);
53
            buildingTags.Add("KL", 5);
54

  
55
            buildingTags.Add("CD", 6);
56

  
57
            buildingTags.Add("HJ", 7);
58
            buildingTags.Add("DD", 7);
59

  
60
            buildingTags.Add("UN", 8);
61
            buildingTags.Add("UC", 8);
62
            buildingTags.Add("US", 8);
63

  
64
            buildingTags.Add("PC", 9);
65
            buildingTags.Add("PS", 9);
66

  
67
            buildingTags.Add("UI", -1);
68
            buildingTags.Add("UB", -1);
69

  
70
            // JIS PLACES
71

  
72
            jisPlaces.Add("A1", -1);
73
            jisPlaces.Add("A2-Hlavni vchod", -1);
74
            jisPlaces.Add("A3", -1);
75
            jisPlaces.Add("B3-LEVY", -1);
76
            jisPlaces.Add("M16", -1);
77
            jisPlaces.Add("M14", -1);
78
            jisPlaces.Add("L1", -1);
79
            jisPlaces.Add("L2", -1);
80
            jisPlaces.Add("L1L2-vchod", -1);
81
            jisPlaces.Add("Zavora-Kaplirova", -1);
82
            jisPlaces.Add("KolaBory-vnejsi", -1);
83
            jisPlaces.Add("KolaBory-vnitrni", -1);
84
            jisPlaces.Add("Parkoviste-vjezd", -1);
85
            jisPlaces.Add("Parkoviste-vyjezd", -1);
86
            jisPlaces.Add("B3-kolarna", -1);
87
            jisPlaces.Add("MenzaKL-vydej", -1);
88
            jisPlaces.Add("Menza4-kasa1", -1);
89
            jisPlaces.Add("Menza4-kasa2", -1);
90
            jisPlaces.Add("Menza4-kasa3", -1);
91
            jisPlaces.Add("Menza4-kasa4", -1);
92
            jisPlaces.Add("Menza4-kasa5", -1);
93
            jisPlaces.Add("Menza-kasa-1", -1);
94
            jisPlaces.Add("Menza-kasa-p", -1);
95
            jisPlaces.Add("Menza1-kasa-p", -1);
96
            jisPlaces.Add("Menza1-kasa-l", -1);
97
            jisPlaces.Add("STUD_UB113", -1);
98
            jisPlaces.Add("STUD_UB211", -1);
99

  
100
            jisPlaces.Add("Zavora-FEL", 2);
101
            jisPlaces.Add("US 005 - závora vjezd", 8);
102
            jisPlaces.Add("US 005 - mříž vjezd", 8);
103
            jisPlaces.Add("Zavora-NTIS-vjezd", 8);
104
            jisPlaces.Add("Zavora-NTIS-vyjezd", 8);
105
            jisPlaces.Add("EXT/kola-B", 8);
106
            jisPlaces.Add("NTIS-BUFET", 8);
107

  
108
            jisPlaces.Add("Zavora-FDU", 3);
109

  
110
            jisPlaces.Add("VC-VJEZD", 5);
111
            jisPlaces.Add("VC-VYJEZD", 5);
112
            jisPlaces.Add("STUD_VC53", 5);
113
            jisPlaces.Add("STUD_KL20", 5);
114
            jisPlaces.Add("STUD_KL87", 5);
115

  
116
            jisPlaces.Add("EXT/kola", 0);
117

  
118
            jisPlaces.Add("EP-BUFET", 2);
119

  
120
            jisPlaces.Add("UV1-Bufet", 1);
121

  
122
            jisPlaces.Add("STUD_CHEB", 6);
123

  
124
            jisPlaces.Add("STUD_PRA1", 9);
125

  
126
            jisPlaces.Add("STUD_ST407", 4);
127
        }
128

  
129
    }
130
}
Server/Parser 1.0/Parsers/WeatherParser.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0.Parsers
8
{
9
    class WeatherParser
10
    {
11
    }
12
}
Server/Parser 1.0/Program.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6

  
7
namespace Parser_1._0
8
{
9
    class Program
10
    {
11
        static void Main(string[] args)
12
        {
13

  
14

  
15
        }
16
    }
17
}
Server/Parser 1.0/Properties/AssemblyInfo.cs
1
using System.Reflection;
2
using System.Runtime.CompilerServices;
3
using System.Runtime.InteropServices;
4

  
5
// General Information about an assembly is controlled through the following
6
// set of attributes. Change these attribute values to modify the information
7
// associated with an assembly.
8
[assembly: AssemblyTitle("Parser 1.0")]
9
[assembly: AssemblyDescription("")]
10
[assembly: AssemblyConfiguration("")]
11
[assembly: AssemblyCompany("")]
12
[assembly: AssemblyProduct("Parser 1.0")]
13
[assembly: AssemblyCopyright("Copyright ©  2021")]
14
[assembly: AssemblyTrademark("")]
15
[assembly: AssemblyCulture("")]
16

  
17
// Setting ComVisible to false makes the types in this assembly not visible
18
// to COM components.  If you need to access a type in this assembly from
19
// COM, set the ComVisible attribute to true on that type.
20
[assembly: ComVisible(false)]
21

  
22
// The following GUID is for the ID of the typelib if this project is exposed to COM
23
[assembly: Guid("916c1e8a-0d6d-43fb-8bde-dbedf441842d")]
24

  
25
// Version information for an assembly consists of the following four values:
26
//
27
//      Major Version
28
//      Minor Version
29
//      Build Number
30
//      Revision
31
//
32
// You can specify all the values or you can default the Build and Revision Numbers
33
// by using the '*' as shown below:
34
// [assembly: AssemblyVersion("1.0.*")]
35
[assembly: AssemblyVersion("1.0.0.0")]
36
[assembly: AssemblyFileVersion("1.0.0.0")]
Server/Parser 1.0/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs
1
// <autogenerated />
2
using System;
3
using System.Reflection;
4
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

Také k dispozici: Unified diff