Struct JiraIssueStatusId
Represents a unique identifier for an Jira Issue Status within the Collaboration SDK.
Implements
Inherited Members
Namespace: Unity.Cloud.Collaboration.Abstractions
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public struct JiraIssueStatusId : IEquatable<JiraIssueStatusId>
Remarks
The JiraIssueStatusId struct provides methods for creating, comparing, and manipulating Jira Issue Status identifiers. It supports initialization using either a string or a Guid.
Constructors
JiraIssueStatusId(Guid)
Returns a JiraIssueStatusId using a Guid.
Declaration
public JiraIssueStatusId(Guid value)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | value | The guid representing the Jira Issue Status identifier |
JiraIssueStatusId(string)
Returns a JiraIssueStatusId using a string.
Declaration
public JiraIssueStatusId(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string representing the Jira Issue Status identifier |
Methods
Equals(object)
Validate obj is a JiraIssueStatusId instance and have the same values as this instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | Compare the values with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
Overrides
Equals(JiraIssueStatusId)
Returns whether two JiraIssueStatusId objects are equals.
Declaration
public bool Equals(JiraIssueStatusId other)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueStatusId | other | The other JiraIssueStatusId to compare with this instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instance have the same values; false otherwise. |
GetHashCode()
Compute a hash code for the object.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
Remarks
- You should not assume that equal hash codes imply object equality.
- You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.
ToString()
Get the string representation of this JiraIssueStatusId.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string result. |
Overrides
Operators
operator ==(JiraIssueStatusId, JiraIssueStatusId)
Get if two JiraIssueStatusId represent the same.
Declaration
public static bool operator ==(JiraIssueStatusId left, JiraIssueStatusId right)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueStatusId | left | Compare with this first instance. |
| JiraIssueStatusId | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool |
explicit operator string(JiraIssueStatusId)
Explicitly cast a JiraIssueStatusId to a string
Declaration
public static explicit operator string(JiraIssueStatusId id)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueStatusId | id | Object to cast |
Returns
| Type | Description |
|---|---|
| string | The resulting string |
operator !=(JiraIssueStatusId, JiraIssueStatusId)
Get if two JiraIssueStatusId does not represent the same.
Declaration
public static bool operator !=(JiraIssueStatusId left, JiraIssueStatusId right)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueStatusId | left | Compare with this first instance. |
| JiraIssueStatusId | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool | true if both instances are not the same; false if both instances are the same. |