forked from BeyondDimension/SteamTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNotificationType.cs
More file actions
64 lines (59 loc) · 2.2 KB
/
NotificationType.cs
File metadata and controls
64 lines (59 loc) · 2.2 KB
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
namespace System.Application
{
/// <summary>
/// 通知类型
/// <list type="bullet">
/// <item>
/// <term>iOS:</term>
/// </item>
/// <item>
/// <term>Android:将枚举转换为 <see cref="int"/> 用作 Android.App.NotificationManager 中的 id</term>
/// </item>
/// <item>
/// <term>UWP:</term>
/// </item>
/// <item>
/// <term>Win32:</term>
/// </item>
/// </list>
/// <para>添加新的枚举常量注意事项:</para>
/// <para>(客户端)如果要显示在设备的通知栏上,则需要在 src\ST.Client\Extensions\NotificationType_Channel_EnumExtensions.cs 中添加或指定已有渠道</para>
/// </summary>
public enum NotificationType
{
/// <summary>
/// 当有新版本可更新时
/// <para>例如:</para>
/// <para>新版本下载进度</para>
/// </summary>
NewVersion = 1,
/// <summary>
/// 由服务端下发的公告
/// </summary>
Announcement,
/// <summary>
/// 消息通知
/// </summary>
Message,
/// <summary>
/// 本地加速代理服务(Android 前台服务通知)
/// </summary>
ProxyForegroundService,
/// <summary>
/// ASF 服务(Android 前台服务通知)
/// </summary>
ArchiSteamFarmForegroundService,
/* 添加新的枚举值注意事项:
* 需要对该 通知类型 指定一个渠道,多个通知类型可对应一个通知渠道
* 在 ST.Client NotificationChannelType
* NotificationType_Channel_EnumExtensions.GetChannel(NotificationType)
* 如果为新增渠道,则需要增加以下内容
* 渠道的用户可见名称,必填
* NotificationType_Channel_EnumExtensions.GetName(NotificationChannelType)
* 渠道的用户可见描述,可选
* NotificationType_Channel_EnumExtensions.GetDescription(NotificationChannelType)
* 渠道的重要性级别,可选,默认为 中等(Medium)
* NotificationType_Channel_EnumExtensions.GetImportanceLevel(NotificationChannelType)
*/
}
}