namespace EVCB_OCPP.DBAPI.Models.DBContext { public class ApiLogEntry { public ApiLogEntry() { ErrorOn = new DateTime(1991, 1, 1, 0, 0, 0, DateTimeKind.Utc); ErrorMsg = string.Empty; } /// /// // The (database) ID for the API log entry. /// public long ApiLogEntryId { get; set; } /// /// The application that made the request. /// public string Application { get; set; } /// /// The user that made the request. /// public string User { get; set; } /// /// The machine that made the request. /// public string Machine { get; set; } /// /// The IP address that made the request. /// public string RequestIpAddress { get; set; } /// /// The request content type. /// public string RequestContentType { get; set; } /// /// The request content body. /// public string RequestContentBody { get; set; } /// /// The request URI. /// public string RequestUri { get; set; } /// /// The request method (GET, POST, etc). /// public string RequestMethod { get; set; } /// /// // The request route template. /// public string RequestRouteTemplate { get; set; } /// /// // The request route data. /// public string RequestRouteData { get; set; } /// /// The request headers. /// public string RequestHeaders { get; set; } /// /// // The request timestamp. /// public DateTime? RequestTimestamp { get; set; } /// /// The response content type. /// public string ResponseContentType { get; set; } /// /// The response content body. /// public string ResponseContentBody { get; set; } /// /// The response status code. /// public int? ResponseStatusCode { get; set; } /// /// The response headers. /// public string ResponseHeaders { get; set; } /// /// The response timestamp. /// public DateTime? ResponseTimestamp { get; set; } /// /// 從server丟出去的請求 /// public bool IsOutData { get; set; } /// /// 錯誤訊息 /// public string ErrorMsg { get; set; } /// /// 錯誤時間 /// public DateTime? ErrorOn { get; set; } } }