Class ImportTask
- Namespace
- Geotab.Checkmate.ObjectModel.Import
- Assembly
- Geotab.Checkmate.ObjectModel.dll
The import task that keeps the progress info of the import process.
public class ImportTask : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
ImportTask
- Implements
- Inherited Members
Constructors
ImportTask()
Initializes a new instance of the ImportTask class.
public ImportTask()
ImportTask(Id?, ImportTaskType, string?, ImportTaskStatus, in DateTime?, in DateTime?, string?, string?, Dictionary<string, object>?, Group?, User?)
Initializes a new instance of the ImportTask class.
public ImportTask(Id? id, ImportTaskType type, string? fileName, ImportTaskStatus status, in DateTime? created, in DateTime? lastUpdated, string? progressMessage, string? errorMessage, Dictionary<string, object>? parameters, Group? serviceGroup = null, User? importedBy = null)
Parameters
id
IdThe identifier.
type
ImportTaskTypeThe type of the ImportTask.
fileName
stringThe name of the import file.
status
ImportTaskStatusThe status of the ImportTask.
created
DateTime?The create date time of the ImportTask.
lastUpdated
DateTime?The last update date time of the ImportTask.
progressMessage
stringThe progress message.
errorMessage
stringThe error message.
parameters
Dictionary<string, object>The parameters.
serviceGroup
GroupThe service group.
importedBy
UserThe imported by user.
ImportTask(ImportTask)
Initializes a new instance of the ImportTask class.
public ImportTask(ImportTask importTask)
Parameters
importTask
ImportTaskThe import task.
Properties
Created
Gets or sets the create date time.
public DateTime? Created { get; set; }
Property Value
- DateTime?
The create date time.
ErrorMessage
Gets or sets the error message.
public string? ErrorMessage { get; set; }
Property Value
- string
The error message.
FileName
Gets or sets the name of the import file.
public string? FileName { get; set; }
Property Value
- string
The file name.
ImportedBy
Gets or sets imported by user.
public User? ImportedBy { get; set; }
Property Value
- User
The imported by user.
LastUpdated
Gets or sets the last updated date time.
public DateTime? LastUpdated { get; set; }
Property Value
- DateTime?
The last updated date time.
Parameters
Gets or sets the parameters.
public Dictionary<string, object>? Parameters { get; set; }
Property Value
- Dictionary<string, object>
The parameters.
ProgressMessage
Gets or sets the progress message.
public string? ProgressMessage { get; set; }
Property Value
- string
The progress message.
ServiceGroup
Gets or sets ServiceGroup.
public Group? ServiceGroup { get; set; }
Property Value
- Group
The ServiceGroup.
Status
Gets or sets the status.
public ImportTaskStatus Status { get; set; }
Property Value
- ImportTaskStatus
The import task status.
Type
Gets or sets the type.
public ImportTaskType Type { get; set; }
Property Value
- ImportTaskType
The import task type.
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.