~aleteoryx/muditaos

ref: 85bd21751e3cbfc24a68904fe55d1db36b0008cf muditaos/module-services/service-desktop/endpoints/include/endpoints/JsonKeyNames.hpp -rw-r--r-- 5.7 KiB
85bd2175 — Maciej Gibowicz [BH-2098] Add new table with custom quotes to the database 10 months ago
                                                                                
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md

#pragma once

namespace sdesktop::endpoints::json
{
    namespace common
    {
        inline constexpr auto reason = "reason";
    } // namespace common

    namespace deviceInfo
    {
        inline constexpr auto batteryLevel           = "batteryLevel";
        inline constexpr auto batteryState           = "batteryState";
        inline constexpr auto selectedSim            = "selectedSim";
        inline constexpr auto sim                    = "sim";
        inline constexpr auto trayState              = "trayState";
        inline constexpr auto signalStrength         = "signalStrength";
        inline constexpr auto deviceSpaceTotal       = "deviceSpaceTotal";
        inline constexpr auto systemReservedSpace    = "systemReservedSpace";
        inline constexpr auto usedUserSpace          = "usedUserSpace";
        inline constexpr auto gitRevision            = "gitRevision";
        inline constexpr auto gitBranch              = "gitBranch";
        inline constexpr auto currentRTCTime         = "currentRTCTime";
        inline constexpr auto networkStatus          = "networkStatus";
        inline constexpr auto networkOperatorName    = "networkOperatorName";
        inline constexpr auto accessTechnology       = "accessTechnology";
        inline constexpr auto version                = "version";
        inline constexpr auto serialNumber           = "serialNumber";
        inline constexpr auto caseColour             = "caseColour";
        inline constexpr auto fileList               = "fileList";
        inline constexpr auto files                  = "files";
        inline constexpr auto recoveryStatusFilePath = "recoveryStatusFilePath";
        inline constexpr auto updateFilePath         = "updateFilePath";
        inline constexpr auto backupFilePath         = "backupFilePath";
        inline constexpr auto syncFilePath           = "syncFilePath";
        inline constexpr auto mtpPath                = "mtpPath";
        inline constexpr auto deviceToken            = "deviceToken";
        inline constexpr auto onboardingState        = "onboardingState";
    } // namespace deviceInfo

    namespace factoryReset
    {
        inline constexpr auto factoryRequest = "factoryRequest";
    } // namespace factoryReset

    namespace update
    {
        inline constexpr auto update = "update";
        inline constexpr auto reboot = "reboot";
    } // namespace update

    namespace sync
    {
        inline constexpr auto state = "state";
    } // namespace sync

    namespace messages
    {
        inline constexpr auto count            = "count";
        inline constexpr auto category         = "category";
        inline constexpr auto categoryMessage  = "message";
        inline constexpr auto categoryThread   = "thread";
        inline constexpr auto categoryTemplate = "template";
        inline constexpr auto categoryBackup   = "backup";
        inline constexpr auto categorySync     = "sync";

        inline constexpr auto limit              = "limit";
        inline constexpr auto offset             = "offset";
        inline constexpr auto order              = "order";
        inline constexpr auto entries            = "entries";
        inline constexpr auto messageBody        = "messageBody";
        inline constexpr auto messageCount       = "messageCount";
        inline constexpr auto messageID          = "messageID";
        inline constexpr auto messageType        = "messageType";
        inline constexpr auto phoneNumber        = "phoneNumber";
        inline constexpr auto createdAt          = "createdAt";
        inline constexpr auto lastUsedAt         = "lastUsedAt";
        inline constexpr auto lastUpdatedAt      = "lastUpdatedAt";
        inline constexpr auto isUnread           = "isUnread";
        inline constexpr auto contactID          = "contactID";
        inline constexpr auto number             = "number";
        inline constexpr auto numberID           = "numberID";
        inline constexpr auto threadID           = "threadID";
        inline constexpr auto messageSnippet     = "messageSnippet";
        inline constexpr auto templateBody       = "templateBody";
        inline constexpr auto templateID         = "templateID";
    } // namespace messages

    namespace outbox
    {
        inline constexpr auto entries   = "entries";
        inline constexpr auto uid       = "uid";
        inline constexpr auto type      = "type";
        inline constexpr auto change    = "change";
        inline constexpr auto record_id = "record_id";
    } // namespace outbox

    namespace usb
    {
        inline constexpr auto config                = "config";
        inline constexpr auto locked                = "locked";
        inline constexpr auto unlocked              = "unlocked";
        inline constexpr auto security              = "usbSecurity";
        inline constexpr auto phoneLockCode         = "phoneLockCode";
        inline constexpr auto phoneLockStatus       = "phoneLockStatus";
        inline constexpr auto phoneLockTime         = "phoneLockTime";
        inline constexpr auto timeLeftToNextAttempt = "timeLeftToNextAttempt";
    } // namespace usb

    namespace reboot
    {
        inline constexpr auto rebootType = "rebootType";
        inline constexpr auto msc        = "msc";
        inline constexpr auto reboot     = "reboot";
        inline constexpr auto shutdown   = "shutdown";
    } // namespace reboot

    namespace timeSync
    {
        inline constexpr auto value     = "value";
        inline constexpr auto timestamp = "timestamp";
    }
} // namespace sdesktop::endpoints::json