Class AchievementSyncPlan
The whole result of one AchievementSyncPlanner run: every achievement it compared, in the order the review UI renders them, and the counts that UI's summary bar reads without re-walking the item list itself.
Inherited Members
Namespace: Serenity.Achievements.Application.Sync
Assembly: Serenity.Achievements.Application.dll
Syntax
public sealed class AchievementSyncPlan
Constructors
AchievementSyncPlan(AchievementSyncDirection, IReadOnlyList<AchievementSyncPlanItem>, IReadOnlyList<AchievementSyncMissingLocale>)
Creates a plan.
Declaration
public AchievementSyncPlan(AchievementSyncDirection direction, IReadOnlyList<AchievementSyncPlanItem> items, IReadOnlyList<AchievementSyncMissingLocale> missingLocales = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementSyncDirection | direction | The direction this plan was built for. |
| IReadOnlyList<AchievementSyncPlanItem> | items | The items the planner produced. May be null. |
| IReadOnlyList<AchievementSyncMissingLocale> | missingLocales | The languages the storefront has and the project has no table for. May be null. |
Properties
AddCount
Declaration
public int AddCount { get; }
Property Value
| Type | Description |
|---|---|
| int | How many field changes across every item resolved to Add. |
ConflictCount
Declaration
public int ConflictCount { get; }
Property Value
| Type | Description |
|---|---|
| int | How many items could not be matched or diffed at all. |
Direction
Declaration
public AchievementSyncDirection Direction { get; }
Property Value
| Type | Description |
|---|---|
| AchievementSyncDirection | The direction this plan was built for. |
HasBlockingConflicts
Declaration
public bool HasBlockingConflicts { get; }
Property Value
| Type | Description |
|---|---|
| bool | Whether any item in this plan could not be matched or diffed, which the review UI must resolve before proceeding. |
Items
Declaration
public IReadOnlyList<AchievementSyncPlanItem> Items { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<AchievementSyncPlanItem> | Every achievement the planner compared, ordered by api name then local id (ordinal). |
MissingLocales
Declaration
public IReadOnlyList<AchievementSyncMissingLocale> MissingLocales { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<AchievementSyncMissingLocale> | The languages the storefront holds text in that the project's string table collection has no table for, ordered by locale code. Empty for a push, and when the project cannot take translations. |
OfferedCount
Declaration
public int OfferedCount { get; }
Property Value
| Type | Description |
|---|---|
| int | How many field changes across every item resolved to Offered. |
UnchangedCount
Declaration
public int UnchangedCount { get; }
Property Value
| Type | Description |
|---|---|
| int | How many field changes across every item resolved to Unchanged. |
UnsupportedCount
Declaration
public int UnsupportedCount { get; }
Property Value
| Type | Description |
|---|---|
| int | How many field changes across every item resolved to Unsupported. |
UpdateCount
Declaration
public int UpdateCount { get; }
Property Value
| Type | Description |
|---|---|
| int | How many field changes across every item resolved to Update. |