You've already forked CC-Framework.BriskGameServer
Localize sample UI and document release conventions
This commit is contained in:
@@ -2,9 +2,15 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
/// <summary>
|
||||
/// 公告模块。
|
||||
/// </summary>
|
||||
public sealed class BriskAnnouncementsModule
|
||||
: BriskModuleBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取公告列表。
|
||||
/// </summary>
|
||||
public async Task<IReadOnlyList<BriskAnnouncementItem>> GetListAsync()
|
||||
{
|
||||
return await ExecuteAsync(async context =>
|
||||
@@ -14,6 +20,9 @@ public sealed class BriskAnnouncementsModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 标记指定公告为已读。
|
||||
/// </summary>
|
||||
public async Task MarkReadAsync(long id)
|
||||
{
|
||||
RequirePositive(id, nameof(id), "Announcement id must be greater than 0.");
|
||||
|
||||
Reference in New Issue
Block a user