Struct JiraIssueTypeId
Represents a unique identifier for an Jira Issue Type within the Collaboration SDK.
Implements
Inherited Members
Namespace: Unity.Cloud.Collaboration.Abstractions
Assembly: Unity.Cloud.Collaboration.dll
Syntax
public struct JiraIssueTypeId : IEquatable<JiraIssueTypeId>
Remarks
The JiraIssueTypeId struct provides methods for creating, comparing, and manipulating Jira Issue Type identifiers. It supports initialization using either a string or a Guid.
Constructors
JiraIssueTypeId(Guid)
Returns a JiraIssueTypeId using a Guid.
Declaration
public JiraIssueTypeId(Guid value)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | value | The guid representing the Jira Issue Type identifier |
JiraIssueTypeId(string)
Returns a JiraIssueTypeId using a string.
Declaration
public JiraIssueTypeId(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string representing the Jira Issue Type identifier |
Methods
Equals(object)
Validate obj is a JiraIssueTypeId 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(JiraIssueTypeId)
Returns whether two JiraIssueTypeId objects are equals.
Declaration
public bool Equals(JiraIssueTypeId other)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueTypeId | other | The other JiraIssueTypeId 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 JiraIssueTypeId.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string result. |
Overrides
Operators
operator ==(JiraIssueTypeId, JiraIssueTypeId)
Get if two JiraIssueTypeId represent the same.
Declaration
public static bool operator ==(JiraIssueTypeId left, JiraIssueTypeId right)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueTypeId | left | Compare with this first instance. |
| JiraIssueTypeId | right | Compare with this other instance. |
Returns
| Type | Description |
|---|---|
| bool |
explicit operator string(JiraIssueTypeId)
Explicitly cast a JiraIssueTypeId to a string
Declaration
public static explicit operator string(JiraIssueTypeId id)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueTypeId | id | Object to cast |
Returns
| Type | Description |
|---|---|
| string | The resulting string |
operator !=(JiraIssueTypeId, JiraIssueTypeId)
Get if two JiraIssueTypeId does not represent the same.
Declaration
public static bool operator !=(JiraIssueTypeId left, JiraIssueTypeId right)
Parameters
| Type | Name | Description |
|---|---|---|
| JiraIssueTypeId | left | Compare with this first instance. |
| JiraIssueTypeId | 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. |