Class ImportResult
Inheritance
System.Object
ImportResult
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.Import
Assembly: TimeCockpit.Data.Import.dll
Syntax
public class ImportResult
Constructors
ImportResult(Dictionary<String, Int64>, Dictionary<String, Int64>, IEnumerable<ImportMessage>, Boolean)
Declaration
public ImportResult(Dictionary<string, long> createdCounts, Dictionary<string, long> updatedCounts, IEnumerable<ImportMessage> messages, bool commited)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Int64> | createdCounts | |
| System.Collections.Generic.Dictionary<System.String, System.Int64> | updatedCounts | |
| System.Collections.Generic.IEnumerable<ImportMessage> | messages | |
| System.Boolean | commited |
Properties
Committed
Declaration
public bool Committed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
CreatedCounts
Declaration
public Dictionary<string, long> CreatedCounts { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Int64> |
Messages
Declaration
public IEnumerable<ImportMessage> Messages { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<ImportMessage> |
UpdatedCounts
Declaration
public Dictionary<string, long> UpdatedCounts { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, System.Int64> |
Methods
FromJSON(JsonReader, Model)
Declaration
public static ImportResult FromJSON(JsonReader reader, Model model)
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.JsonReader | reader | |
| Model | model |
Returns
| Type | Description |
|---|---|
| ImportResult |
ToJSON(JsonWriter, ImportResult)
Declaration
public static void ToJSON(JsonWriter writer, ImportResult importResult)
Parameters
| Type | Name | Description |
|---|---|---|
| Newtonsoft.Json.JsonWriter | writer | |
| ImportResult | importResult |