add timestamp
This commit is contained in:
@@ -8,3 +8,4 @@
|
|||||||
/Application/bin
|
/Application/bin
|
||||||
/Application/obj
|
/Application/obj
|
||||||
/Application/Properties
|
/Application/Properties
|
||||||
|
/.vs/ProjectEvaluation
|
||||||
|
|||||||
@@ -131,7 +131,8 @@ namespace CodeEditorApi.Helpers
|
|||||||
var session = new Session
|
var session = new Session
|
||||||
{
|
{
|
||||||
Id = Guid.Parse(strId),
|
Id = Guid.Parse(strId),
|
||||||
NumberOfChanges = files.Length
|
NumberOfChanges = files.Length,
|
||||||
|
Timestamp = Directory.GetCreationTime(path)
|
||||||
};
|
};
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
{
|
{
|
||||||
public Guid Id { get; set; }
|
public Guid Id { get; set; }
|
||||||
public int NumberOfChanges { get; set; }
|
public int NumberOfChanges { get; set; }
|
||||||
|
public DateTime Timestamp { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user