ProjectLighthouse/ProjectLighthouse/PlayerData/Profiles/UserFriendData.cs
2022-05-17 00:02:28 -04:00

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; }
}