Struct AchievementId
Identifies a single achievement within the achievement system.
Immutable value object that supports equality comparison and hashing.
Assembly: Serenity.Achievements.Domain.dll
Syntax
public readonly struct AchievementId : IEquatable<AchievementId>
Constructors
AchievementId(string)
Creates a new AchievementId with the specified identifier.
Declaration
public AchievementId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
The unique string identifier. Cannot be null.
|
Fields
Value
The unique string identifier for this achievement.
Declaration
public readonly string Value
Field Value
Properties
IsValid
Checks if this AchievementId has a valid, non-empty value.
Declaration
public bool IsValid { get; }
Property Value
Methods
Equals(AchievementId)
Declaration
public bool Equals(AchievementId other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(AchievementId, AchievementId)
Declaration
public static bool operator ==(AchievementId left, AchievementId right)
Parameters
Returns
explicit operator AchievementId(string)
Declaration
public static explicit operator AchievementId(string value)
Parameters
| Type |
Name |
Description |
| string |
value |
|
Returns
implicit operator string(AchievementId)
Declaration
public static implicit operator string(AchievementId id)
Parameters
Returns
operator !=(AchievementId, AchievementId)
Declaration
public static bool operator !=(AchievementId left, AchievementId right)
Parameters
Returns
Implements