Class ObjectReference
- Namespace
- YandexTracker.Models
- Assembly
- YandexTracker.dll
A reference to another Tracker object inside a response: a status, queue, type, user or parent issue. Different objects fill different fields - an issue has a Key, a user has an Id and a Display name.
public sealed record ObjectReference : IEquatable<ObjectReference>
- Inheritance
-
ObjectReference
- Implements
- Inherited Members
Constructors
ObjectReference(string?, string?, string?, string?)
A reference to another Tracker object inside a response: a status, queue, type, user or parent issue. Different objects fill different fields - an issue has a Key, a user has an Id and a Display name.
public ObjectReference(string? Self = null, string? Id = null, string? Key = null, string? Display = null)
Parameters
SelfstringThe API address of the referenced object.
IdstringThe object's id (for a user, the uid).
KeystringThe object's key, e.g.
TEST-1for an issue orinProgressfor a status.DisplaystringThe object's human-readable name.
Properties
Display
The object's human-readable name.
[JsonPropertyName("display")]
public string? Display { get; init; }
Property Value
Id
The object's id (for a user, the uid).
[JsonPropertyName("id")]
public string? Id { get; init; }
Property Value
Key
The object's key, e.g. TEST-1 for an issue or inProgress for a status.
[JsonPropertyName("key")]
public string? Key { get; init; }
Property Value
Self
The API address of the referenced object.
[JsonPropertyName("self")]
public string? Self { get; init; }