WIP /search
This commit is contained in:
@ -4,6 +4,11 @@ namespace isnd.Data.Catalog
|
||||
{
|
||||
public abstract class Permalink
|
||||
{
|
||||
public Permalink(string id)
|
||||
{
|
||||
Type = GetType().Name;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Permalink(string id, string type)
|
||||
{
|
||||
@ -11,11 +16,6 @@ namespace isnd.Data.Catalog
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Permalink(string id)
|
||||
{
|
||||
Type = GetType().Name;
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
[JsonProperty("@type")]
|
||||
public virtual string Type { get; set; }
|
||||
@ -23,7 +23,7 @@ namespace isnd.Data.Catalog
|
||||
|
||||
[JsonProperty("@id")]
|
||||
public string Id { get => id; }
|
||||
private readonly string id;
|
||||
protected string id;
|
||||
|
||||
public string GetId() { return id; }
|
||||
|
||||
|
Reference in New Issue
Block a user