Files
Beam/Beam.Models/WebResource.cs
T
qwsdcvghyu89 a7d148a96f Introduce Beam.Fluent and Beam.Models projects
Added new Beam.Fluent and Beam.Models projects with staged download builder and data context models. Refactored and moved model classes from Beam.Temporary.Cli to Beam.Models. Added new data providers and extended DataBindings in Beam.Dynamic. Renamed Beam.Puppeteer to Beam.Playwright and updated related classes. Updated project references and package versions. Removed obsolete and unused files from Beam.Temporary.Cli.
2025-09-18 18:32:25 +10:00

36 lines
1.1 KiB
C#

using aeqw89.PersistentData;
using aeqw89.DataKeys;
using Beam.Dynamic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Beam.Models {
/// <summary>
/// Represents a specific resource accessible online; e.g. a book's contents.
/// </summary>
/// <remarks>
/// A resource should be one-to-one with a web request.
/// </remarks>
/// <param name="key"></param>
public class WebResource(DataKey<WebResource> key) : IKeyed<WebResource> {
public DataKey<WebResource> Key { get; set; } = key;
public required DataKey<DataBindings> Bindings { get; set; }
public string? Name { get; set; }
public string? Domain { get; set; }
public string? Description { get; set; }
public WebResource() : this(new(string.Empty)) { }
//public Entity ToRecord(BeamDataDictionary sdd) {
// return new Entity(this, sdd.Bindings[Bindings]);
//}
//public record class Entity(WebResource Resource, DataBindings Bindings);
}
}