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