logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AchievementReconciliationPlan

    The two-way difference between what the local store knows and what a platform account reports: which unlocks have to be written locally, and which have to be pushed outward.

    Inheritance
    object
    AchievementReconciliationPlan
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Achievements.Domain.ValueObjects
    Assembly: Serenity.Achievements.Domain.dll
    Syntax
    public class AchievementReconciliationPlan

    Constructors

    AchievementReconciliationPlan(IReadOnlyList<AchievementId>, IReadOnlyList<AchievementId>)

    Creates a new AchievementReconciliationPlan with the specified differences.

    Declaration
    public AchievementReconciliationPlan(IReadOnlyList<AchievementId> mirrorLocally, IReadOnlyList<AchievementId> pushToPlatform)
    Parameters
    Type Name Description
    IReadOnlyList<AchievementId> mirrorLocally

    The achievements to write into the local store. Cannot be null.

    IReadOnlyList<AchievementId> pushToPlatform

    The achievements to push to the platform. Cannot be null.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when either list is null.

    Fields

    MirrorLocally

    The achievements the platform knows about and the local store does not.

    Declaration
    public readonly IReadOnlyList<AchievementId> MirrorLocally
    Field Value
    Type Description
    IReadOnlyList<AchievementId>

    PushToPlatform

    The achievements the local store knows about and the platform does not.

    Declaration
    public readonly IReadOnlyList<AchievementId> PushToPlatform
    Field Value
    Type Description
    IReadOnlyList<AchievementId>

    Properties

    Empty

    A plan that asks for no writes in either direction.

    Declaration
    public static AchievementReconciliationPlan Empty { get; }
    Property Value
    Type Description
    AchievementReconciliationPlan

    IsEmpty

    Whether this plan asks for no writes in either direction.

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved