forked from ddrilling/AsbCloudServer
19 lines
831 B
C#
19 lines
831 B
C#
using System;
|
|
|
|
namespace AsbCloudInfrastructure.Services.DetectOperations
|
|
{
|
|
public class DetectedOperation
|
|
{
|
|
public int IdCategory { get; set; }
|
|
public int IdUsersAtStart { get; set; }
|
|
public DateTimeOffset DateStart { get; set; }
|
|
public DateTimeOffset DateEnd { get; set; }
|
|
public double DurationMinutes => (DateEnd - DateStart).TotalMinutes;
|
|
public double DepthStart { get; set; }
|
|
public double DepthEnd { get; set; }
|
|
|
|
public override string ToString()
|
|
=> $"{IdCategory}\t{DateStart:G}\t{DateEnd:G}\t{DurationMinutes:#0.#}\t{DepthStart:#0.#}\t{DepthEnd:#0.#}";
|
|
//=> $"{{\"type\": {IdType},\t\"begin\":\"{Begin:G}\",\t\"end\":\"{End:G}\",\t\"depthBegin\":\"{BeginWellDepth:#0.#}\",\t\"depthEnd\":\"{EndWellDepth:#0.#}\"}}";
|
|
}
|
|
} |