Activity-based browsing

This commit is contained in:
2025-05-01 14:59:28 +08:00
parent 42b5129aa4
commit bf64afd849
12 changed files with 354 additions and 189 deletions

View File

@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace DysonNetwork.Sphere.Activity;
public enum ActivityVisibility
{
Public,
Friends,
}
public class Activity : ModelBase
{
public Guid Id { get; set; } = Guid.NewGuid();
[MaxLength(1024)] public string Type { get; set; } = null!;
[MaxLength(4096)] public string ResourceIdentifier { get; set; } = null!;
public ActivityVisibility Visibility { get; set; } = ActivityVisibility.Public;
public Dictionary<string, object> Meta = new();
public long AccountId { get; set; }
public Account.Account Account { get; set; } = null!;
}