Table of Contents

Class Comment

Namespace
YandexTracker.Models.Issues
Assembly
YandexTracker.dll

A comment on an issue.

public sealed record Comment : IEquatable<Comment>
Inheritance
Comment
Implements
Inherited Members

Constructors

Comment(long, string?, string?, ObjectReference?, DateTimeOffset?, DateTimeOffset?)

A comment on an issue.

public Comment(long Id, string? LongId, string? Text, ObjectReference? CreatedBy, DateTimeOffset? CreatedAt, DateTimeOffset? UpdatedAt = null)

Parameters

Id long

The comment id.

LongId string

The comment's long string id.

Text string

The text.

CreatedBy ObjectReference

The author.

CreatedAt DateTimeOffset?

When the comment was written.

UpdatedAt DateTimeOffset?

When the comment was last edited.

Properties

CreatedAt

When the comment was written.

[JsonPropertyName("createdAt")]
public DateTimeOffset? CreatedAt { get; init; }

Property Value

DateTimeOffset?

CreatedBy

The author.

[JsonPropertyName("createdBy")]
public ObjectReference? CreatedBy { get; init; }

Property Value

ObjectReference

Id

The comment id.

[JsonPropertyName("id")]
public long Id { get; init; }

Property Value

long

LongId

The comment's long string id.

[JsonPropertyName("longId")]
public string? LongId { get; init; }

Property Value

string

Text

The text.

[JsonPropertyName("text")]
public string? Text { get; init; }

Property Value

string

UpdatedAt

When the comment was last edited.

[JsonPropertyName("updatedAt")]
public DateTimeOffset? UpdatedAt { get; init; }

Property Value

DateTimeOffset?