Class ImportDataResult
An import data task result returned by the IServerTask. Holds the list of ImportLineResultInfo results that was determined by the import data task ( UNIQUE_TASK_ID)
Inherited Members
Namespace: LemonEdge.API.Core.Tasks.Results
Assembly: LemonEdge.API.dll
Syntax
[DataContract]
public class ImportDataResult : ServerTaskResult, ICloneable, ICloneable<ImportDataResult>
Constructors
ImportDataResult()
Creates a new import data result
Declaration
public ImportDataResult()
ImportDataResult(IEnumerable<ImportLineResultInfo>)
Creates a new import data result with the specified initial result line details
Declaration
public ImportDataResult(IEnumerable<ImportLineResultInfo> lines)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ImportLineResultInfo> | lines | A list of results for each line of the import so far |
Properties
CreatedTasksProcessed
Indicates that all tasks that were automatically created from importing the specified data (indicated from AutoCreatedTaskID) have already been processed an do not need to be waited on
Declaration
public bool CreatedTasksProcessed { get; set; }
Property Value
Type | Description |
---|---|
bool |
Results
A list of the results for each line of the import input file
Declaration
public List<ImportLineResultInfo> Results { get; }
Property Value
Type | Description |
---|---|
List<ImportLineResultInfo> |
Methods
AddResultInfo(ImportLineResultInfo)
Adds the results of a line from the import input file
Declaration
public void AddResultInfo(ImportLineResultInfo info)
Parameters
Type | Name | Description |
---|---|---|
ImportLineResultInfo | info | The results of importing a line from the input file |
AddResultInfo(IEnumerable<ImportLineResultInfo>)
Adds the specified results from the import input file
Declaration
public void AddResultInfo(IEnumerable<ImportLineResultInfo> lines)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ImportLineResultInfo> | lines |
Clone()
Creates a new instance of this class (of type ImportDataResult) with all the same property values as this instance
Declaration
public ImportDataResult Clone()
Returns
Type | Description |
---|---|
ImportDataResult | 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(ImportDataResult)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(ImportDataResult source)
Parameters
Type | Name | Description |
---|---|---|
ImportDataResult | 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 |