mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 05:31:29 +00:00
30 lines
No EOL
680 B
C#
30 lines
No EOL
680 B
C#
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Redis.OM.Modeling;
|
|
|
|
namespace LBPUnion.ProjectLighthouse.PlayerData.Profiles;
|
|
|
|
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
|
|
[Document(StorageType = StorageType.Json)]
|
|
public class UserFriendData
|
|
{
|
|
private int userId;
|
|
|
|
[Indexed]
|
|
public int UserId {
|
|
get => this.userId;
|
|
set {
|
|
this.RedisId = value.ToString();
|
|
this.userId = value;
|
|
}
|
|
}
|
|
|
|
[RedisIdField]
|
|
public string RedisId { get; set; }
|
|
|
|
[Indexed]
|
|
public List<int> FriendIds { get; set; }
|
|
|
|
[Indexed]
|
|
public List<int> BlockedIds { get; set; }
|
|
} |