Class BaseEntity<TId>
Base entity, defines things that are in every entity. Content, Space, Attachments are all entities.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dapplo.Confluence.Entities
Assembly: Dapplo.Confluence.dll
Syntax
public class BaseEntity<TId>
Type Parameters
Name | Description |
---|---|
TId |
Properties
| Improve this Doc View SourceId
Unique ID for this entity
Declaration
[JsonIgnore]
public TId Id { get; set; }
Property Value
Type | Description |
---|---|
TId |
InternalId
Used internally to convert the string with the id to a typed value
Declaration
[JsonProperty("id", DefaultValueHandling = DefaultValueHandling.Ignore)]
protected string InternalId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Links
Different links for this entity, depending on the entity
Declaration
[JsonProperty("_links", DefaultValueHandling = DefaultValueHandling.Ignore)]
public Links Links { get; set; }
Property Value
Type | Description |
---|---|
Links |
Type
Type of the entity
Declaration
[JsonProperty("type", DefaultValueHandling = DefaultValueHandling.Ignore)]
[JsonConverter(typeof(StringEnumConverter))]
public ContentTypes Type { get; set; }
Property Value
Type | Description |
---|---|
ContentTypes |
Operators
| Improve this Doc View SourceImplicit(BaseEntity<TId> to TId)
Implicit cast of BaseEntity to the ID type (e.g. Content -> long for contentId)
Declaration
public static implicit operator TId(BaseEntity<TId> entity)
Parameters
Type | Name | Description |
---|---|---|
BaseEntity<TId> | entity | BaseEntity of type TId |
Returns
Type | Description |
---|---|
TId | TId |