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 BriskSpaceModule
|
||||
: BriskModuleBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 按玩家 ID 获取空间数据。
|
||||
/// </summary>
|
||||
public async Task<BriskSpaceView> GetByPlayerIdAsync(string playerId)
|
||||
{
|
||||
ValidatePlayerId(playerId);
|
||||
@@ -16,6 +22,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按登录身份获取空间数据。
|
||||
/// </summary>
|
||||
public async Task<BriskSpaceView> GetByLoginIdentityAsync(string loginProvider, string loginUserId)
|
||||
{
|
||||
ValidateLoginIdentity(loginProvider, loginUserId);
|
||||
@@ -27,6 +36,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按玩家 ID 获取空间统计。
|
||||
/// </summary>
|
||||
public async Task<BriskSpaceStats> GetStatsByPlayerIdAsync(string playerId)
|
||||
{
|
||||
ValidatePlayerId(playerId);
|
||||
@@ -38,6 +50,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按登录身份获取空间统计。
|
||||
/// </summary>
|
||||
public async Task<BriskSpaceStats> GetStatsByLoginIdentityAsync(string loginProvider, string loginUserId)
|
||||
{
|
||||
ValidateLoginIdentity(loginProvider, loginUserId);
|
||||
@@ -49,6 +64,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按玩家 ID 点赞空间。
|
||||
/// </summary>
|
||||
public async Task LikeByPlayerIdAsync(string playerId)
|
||||
{
|
||||
ValidatePlayerId(playerId);
|
||||
@@ -58,6 +76,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按玩家 ID 取消点赞空间。
|
||||
/// </summary>
|
||||
public async Task UnlikeByPlayerIdAsync(string playerId)
|
||||
{
|
||||
ValidatePlayerId(playerId);
|
||||
@@ -67,6 +88,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按登录身份点赞空间。
|
||||
/// </summary>
|
||||
public async Task LikeByLoginIdentityAsync(string loginProvider, string loginUserId)
|
||||
{
|
||||
ValidateLoginIdentity(loginProvider, loginUserId);
|
||||
@@ -76,6 +100,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 按登录身份取消点赞空间。
|
||||
/// </summary>
|
||||
public async Task UnlikeByLoginIdentityAsync(string loginProvider, string loginUserId)
|
||||
{
|
||||
ValidateLoginIdentity(loginProvider, loginUserId);
|
||||
@@ -85,6 +112,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新当前玩家自己的空间内容。
|
||||
/// </summary>
|
||||
public async Task UpdateMyAsync(object payload)
|
||||
{
|
||||
RequireNotNull(payload, nameof(payload));
|
||||
@@ -98,6 +128,9 @@ public sealed class BriskSpaceModule
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取我的访客列表。
|
||||
/// </summary>
|
||||
public async Task<IReadOnlyList<BriskSpaceVisit>> GetMyVisitsAsync()
|
||||
{
|
||||
return await ExecuteAsync(async context =>
|
||||
|
||||
Reference in New Issue
Block a user