Class FileAchievementDefinitionSyncConnector
A sync connector backed by a JSON file on disk instead of a live storefront API — the only connector
this PR ships, and a permanent import path afterwards.
Inheritance
FileAchievementDefinitionSyncConnector
Assembly: Serenity.UnityAchievements.Infrastructure.Editor.dll
Syntax
public sealed class FileAchievementDefinitionSyncConnector : IAchievementDefinitionSyncConnector
Constructors
Creates a connector that reads one snapshot file.
Declaration
public FileAchievementDefinitionSyncConnector(string filePath, AchievementPlatformKind platform, string displayName)
Parameters
Properties
Capabilities
Declaration
public AchievementSyncCapabilities Capabilities { get; }
Property Value
DisplayName
Declaration
public string DisplayName { get; }
Property Value
Declaration
public AchievementPlatformKind Platform { get; }
Property Value
Methods
CheckConnectionAsync(CancellationToken)
Declaration
public Task<AchievementSyncConnectionCheck> CheckConnectionAsync(CancellationToken cancellationToken)
Parameters
Returns
DownloadIconAsync(AchievementStorefrontIcon, CancellationToken)
Declaration
public Task<AchievementIconDownload> DownloadIconAsync(AchievementStorefrontIcon icon, CancellationToken cancellationToken)
Parameters
Returns
PullSnapshotAsync(CancellationToken)
Declaration
public Task<AchievementStorefrontSnapshot> PullSnapshotAsync(CancellationToken cancellationToken)
Parameters
Returns
PushAsync(AchievementPushBatch, IProgress<AchievementSyncProgress>, CancellationToken)
Declaration
public Task<AchievementPushOutcome> PushAsync(AchievementPushBatch batch, IProgress<AchievementSyncProgress> progress, CancellationToken cancellationToken)
Parameters
Returns
Implements