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