Class CopilotFieldInstruction
One field a Copilot walkthrough asks the author to paste by hand, platform-neutral: which field, which locale (if any), and the value to paste. A storefront adapter's presenter turns this into the label and hint an author actually reads.
Inherited Members
Namespace: Serenity.Achievements.Application.Sync
Assembly: Serenity.Achievements.Application.dll
Syntax
public sealed class CopilotFieldInstruction
Remarks
Built only from the accepted field changes of a AchievementPushWorkItem — see AchievementCopilotScript. A field change an author rejected, or one the connector marked unsupported, never reaches this type: there is no instruction to paste a value nobody agreed to send.
Constructors
CopilotFieldInstruction(AchievementSyncFieldKind, string, string)
Creates a field instruction.
Declaration
public CopilotFieldInstruction(AchievementSyncFieldKind fieldKind, string localeCode, string valueToPaste)
Parameters
| Type | Name | Description |
|---|---|---|
| AchievementSyncFieldKind | fieldKind | Which achievement field this instruction is about. |
| string | localeCode | The locale this instruction is for, or empty when the field is not localized. |
| string | valueToPaste | The accepted authored value the author copies into the partner site. |
Properties
FieldKind
Declaration
public AchievementSyncFieldKind FieldKind { get; }
Property Value
| Type | Description |
|---|---|
| AchievementSyncFieldKind | Which achievement field this instruction is about. |
LocaleCode
Declaration
public string LocaleCode { get; }
Property Value
| Type | Description |
|---|---|
| string | The locale this instruction is for, or empty when the field is not localized. |
ValueToPaste
Declaration
public string ValueToPaste { get; }
Property Value
| Type | Description |
|---|---|
| string | The accepted authored value the author copies into the partner site. |