aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Horizon/Sdk/Settings/System/NotificationSettings.cs
blob: 2ce56c4df28584ffe48699f8a6dcb4faea4c7eb1 (plain) (blame)
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
using System;
using System.Runtime.InteropServices;

namespace Ryujinx.Horizon.Sdk.Settings.System
{
    [Flags]
    enum NotificationFlag : uint
    {
        RingtoneFlag = 1 << 0,
        DownloadCompletionFlag = 1 << 1,
        EnablesNews = 1 << 8,
        IncomingLampFlag = 1 << 9,
    }

    enum NotificationVolume : uint
    {
        Mute,
        Low,
        High,
    }

    struct NotificationTime
    {
#pragma warning disable CS0649 // Field is never assigned to
        public uint Hour;
        public uint Minute;
#pragma warning restore CS0649
    }

    [StructLayout(LayoutKind.Sequential, Size = 0x18, Pack = 0x4)]
    struct NotificationSettings
    {
        public NotificationFlag Flag;
        public NotificationVolume Volume;
        public NotificationTime HeadTime;
        public NotificationTime TailTime;
    }
}