Class CopyAccountDataParameter
The server task parameters for the copy account data process
Copies *all* account data from one account into another. Destination account should be blank to avoid conflicts/clashes.
Inherited Members
Namespace: LemonEdge.API.Core.Tasks.Parameters
Assembly: LemonEdge.API.dll
Syntax
[DataContract]
[ServerTaskParameters("Copy Account Data", "DFC29F8F-4EA4-4CC7-B4A2-FE6CCB744FEF", Description = "Copies *all* account data from one account into another. Destination account should be blank to avoid conflicts/clashes.")]
public class CopyAccountDataParameter : ServerTaskParameter, ICloneable, ICloneable<CopyAccountDataParameter>, INotifyPropertyChanged
Constructors
CopyAccountDataParameter()
Declaration
public CopyAccountDataParameter()
Fields
UNIQUE_TASK_ID
The unique id of the copy account data server task
Declaration
public const string UNIQUE_TASK_ID = "DFC29F8F-4EA4-4CC7-B4A2-FE6CCB744FEF"
Field Value
Type | Description |
---|---|
string |
Properties
AccountID
The target account to copy the data to
Declaration
public Guid AccountID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
AccountID_Label
The name of the target account to copy data to
Declaration
public string AccountID_Label { get; set; }
Property Value
Type | Description |
---|---|
string |
SourceAccountID
The source account to copy the data from
Declaration
public Guid SourceAccountID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
SourceAccountID_Label
The name of the source account to copy data from
Declaration
public string SourceAccountID_Label { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Clone()
Creates a new instance of this class (of type CopyAccountDataParameter) with all the same property values as this instance
Declaration
public CopyAccountDataParameter Clone()
Returns
Type | Description |
---|---|
CopyAccountDataParameter | A new instance of this class with all the same property values as this instance |
CopyFromParam(SerializedParam)
Should be overridden by inheriting implementations to ensure all parameters values are copied from the specified
source
Declaration
protected override void CopyFromParam(SerializedParam source)
Parameters
Type | Name | Description |
---|---|---|
SerializedParam | source | The source instance of a SerializedParam that is of the same type as this one to copy parameter values from |
Overrides
Remarks
Used by the generic implementation of Clone()
CopyFromSource(CopyAccountDataParameter)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(CopyAccountDataParameter source)
Parameters
Type | Name | Description |
---|---|---|
CopyAccountDataParameter | source | The source object to copy all values from. |
CreateNewParam()
Must be implemented by inheriting classes to provide a new instance of the current class type.
Used when cloning this SerializedParam to create a new instance of the same type
Declaration
protected override SerializedParam CreateNewParam()
Returns
Type | Description |
---|---|
SerializedParam | A new instance of the current SerializedParam type |
Overrides
GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)
Returns that this is a copy account data task from the specified source account to the target account
Declaration
public override string GetUserFriendlyTaskInstanceIdentityInfo(IServerTask task)
Parameters
Type | Name | Description |
---|---|---|
IServerTask | task | The server task for processing the copy |
Returns
Type | Description |
---|---|
string | A string stating that this is a copy account data task from the specified source account to the target account |
Overrides
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |