Completed
Push — master ( a1e8f3...b95acc )
by Oleksandr
02:23
created

ServerConfig

Complexity

Total Complexity 0

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 0
c 1
b 0
f 0
dl 0
loc 44
ccs 12
cts 12
cp 1
1
# coding: utf-8
2
3 1
from schematics.models import Model
4 1
from schematics.types.compound import ModelType
5
6 1
from .about import About
7 1
from .anticheat import Anticheat
8 1
from .connection import Connection
9 1
from .console import Console
10 1
from .device_link import DeviceLink
11 1
from .events import Events
12 1
from .hud import HUD
13 1
from .morse import Morse
14 1
from .other import Other
15 1
from .refly import Refly
16 1
from .statistics import Statistics
17
18
19 1
class ServerConfig(Model):
20 1
    about = ModelType(
21
        model_spec=About,
22
        required=True,
23
    )
24 1
    anticheat = ModelType(
25
        model_spec=Anticheat,
26
        required=True,
27
    )
28 1
    connection = ModelType(
29
        model_spec=Connection,
30
        required=True,
31
    )
32 1
    console = ModelType(
33
        model_spec=Console,
34
        required=True,
35
    )
36 1
    device_link = ModelType(
37
        model_spec=DeviceLink,
38
        required=True,
39
    )
40 1
    events = ModelType(
41
        model_spec=Events,
42
        required=True,
43
    )
44 1
    hud = ModelType(
45
        model_spec=HUD,
46
        required=True,
47
    )
48 1
    morse = ModelType(
49
        model_spec=Morse,
50
        required=True,
51
    )
52 1
    other = ModelType(
53
        model_spec=Other,
54
        required=True,
55
    )
56 1
    refly = ModelType(
57
        model_spec=Refly,
58
        required=True,
59
    )
60 1
    statistics = ModelType(
61
        model_spec=Statistics,
62
        required=True,
63
    )
64