Ranked posts

This commit is contained in:
2025-06-26 19:17:28 +08:00
parent d492c9ce1f
commit da58e10d88
2 changed files with 93 additions and 9 deletions

View File

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using NodaTime;
namespace DysonNetwork.Sphere.Activity
{
public class DiscoveryActivity : IActivity
{
public string Title { get; set; }
public List<object> Items { get; set; }
public DiscoveryActivity(string title, List<object> items)
{
Title = title;
Items = items;
}
public Activity ToActivity()
{
var now = SystemClock.Instance.GetCurrentInstant();
return new Activity
{
Id = Guid.NewGuid(),
Type = "discovery",
ResourceIdentifier = "discovery",
Data = this,
CreatedAt = now,
UpdatedAt = now,
};
}
}
}