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