Class CommentDefinition
Contains comment data. Can be referenced by multiple CommentContainer instances.
Implements
Inherited Members
Namespace: Sdl.Core.Bcm.BcmModel.Skeleton
Assembly: Sdl.Core.Bcm.BcmModel.dll
Syntax
[DataContract]
public class CommentDefinition : SkeletonItem, IEquatable<MetadataContainer>, IEquatable<SkeletonItem>, ICloneable<CommentDefinition>, IEquatable<CommentDefinition>
Constructors
CommentDefinition()
Initializes a new instance of the CommentDefinition class.
Declaration
public CommentDefinition()
Properties
Author
Gets or sets the author.
Declaration
[DataMember(Name = "author")]
public string Author { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The author. |
CommentSeverity
Gets or sets the comment severity.
Declaration
[DataMember(Name = "commentSeverity")]
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public CommentSeverity CommentSeverity { get; set; }
Property Value
| Type | Description |
|---|---|
| CommentSeverity | The comment severity. |
Date
Gets or sets the comment creation date.
Declaration
[DataMember(Name = "date", EmitDefaultValue = false)]
public DateTime Date { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime | The comment creation date. |
Text
Gets or sets the text.
Declaration
[DataMember(Name = "text")]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The text. |
Methods
Clone()
Clones this instance.
Declaration
public CommentDefinition Clone()
Returns
| Type | Description |
|---|---|
| CommentDefinition | A dee |
Equals(CommentDefinition)
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public bool Equals(CommentDefinition other)
Parameters
| Type | Name | Description |
|---|---|---|
| CommentDefinition | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Performs a deep-equals comparison.
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for this instance. |