mirror of https://github.com/Sonarr/Sonarr
73 lines
1.8 KiB
C#
73 lines
1.8 KiB
C#
|
// **********************************************************************************
|
|||
|
// CassiniDev - http://cassinidev.codeplex.com
|
|||
|
//
|
|||
|
// Copyright (c) 2010 Sky Sanders. All rights reserved.
|
|||
|
//
|
|||
|
// This source code is subject to terms and conditions of the Microsoft Public
|
|||
|
// License (Ms-PL). A copy of the license can be found in the license.txt file
|
|||
|
// included in this distribution.
|
|||
|
//
|
|||
|
// You must not remove this notice, or any other, from this software.
|
|||
|
//
|
|||
|
// **********************************************************************************
|
|||
|
|
|||
|
#region
|
|||
|
|
|||
|
using System;
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
namespace CassiniDev.ServerLog
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// TODO: get rid of status code and url in the database and simply parse the headers
|
|||
|
/// </summary>
|
|||
|
[Serializable]
|
|||
|
public class LogInfo : ICloneable
|
|||
|
{
|
|||
|
public byte[] Body { get; set; }
|
|||
|
|
|||
|
public Guid ConversationId { get; set; }
|
|||
|
|
|||
|
public DateTime Created { get; set; }
|
|||
|
|
|||
|
public string Exception { get; set; }
|
|||
|
|
|||
|
public string Headers { get; set; }
|
|||
|
|
|||
|
public string Identity { get; set; }
|
|||
|
|
|||
|
public string PathTranslated { get; set; }
|
|||
|
|
|||
|
public string PhysicalPath { get; set; }
|
|||
|
|
|||
|
public long RowId { get; set; }
|
|||
|
|
|||
|
public long RowType { get; set; }
|
|||
|
|
|||
|
public long? StatusCode { get; set; }
|
|||
|
|
|||
|
public string Url { get; set; }
|
|||
|
|
|||
|
#region ICloneable Members
|
|||
|
|
|||
|
object ICloneable.Clone()
|
|||
|
{
|
|||
|
return MemberwiseClone();
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
public LogInfo Clone()
|
|||
|
{
|
|||
|
LogInfo result = (LogInfo) ((ICloneable) this).Clone();
|
|||
|
if (Body != null)
|
|||
|
{
|
|||
|
result.Body = new byte[Body.Length];
|
|||
|
Body.CopyTo(result.Body, 0);
|
|||
|
}
|
|||
|
|
|||
|
return result;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|