Server-client communication » Historie » Verze 1
Alex Konig, 2021-04-30 10:06
1 | 1 | Alex Konig | h1. Server-client communication |
---|---|---|---|
2 | |||
3 | Sending xml format files |
||
4 | |||
5 | Request |
||
6 | - temperature - double (in °C) |
||
7 | - wind - double (in m/s) |
||
8 | - rain probability - double in range <0, 1> |
||
9 | - weather conditions - an enum |
||
10 | |||
11 | date |
||
12 | - start date: |
||
13 | - day (int) |
||
14 | - month (int) |
||
15 | - year (int) |
||
16 | - start hour (int) |
||
17 | - use end date (bool) |
||
18 | - end date (optional) |
||
19 | - day (int) |
||
20 | - month (int) |
||
21 | - year (int) |
||
22 | - end hour (int) |
||
23 | |||
24 | Response |
||
25 | - hoursPerSegment (int) |
||
26 | - pole objektů - datum, čas (jako nahoře) |
||
27 | - pole rušností uspořádaný podle enumu - hodnota 0-100 (+ -1) |
||
28 | - paleta pro rušnosti -> budou přicházet jako procenta 0-100 |
||
29 | - -1 pro neznámou hodnotu (nevím, neumím odvodit) |
||
30 | |||
31 | if server unresponsive/unavailible -> try again after a while |
||
32 | display warning for user |