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