laatzen/ServiceFwUpdate/Common/FwUpdateDb/FwUpdateSafeDb.cs

54 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
namespace Xylem.ServiceFwUpdate.Common.FwUpdateDb
{
/// <summary>
/// FW-Update safe container for exchange with DB
/// </summary>
[Serializable]
public class FwUpdateSafeDb
{
/// <summary>
/// Assigned Id for this container
/// </summary>
public Int32 ContainerId { get; set; }
/// <summary>
/// Assigned user for this safe referenced by the user ID
/// </summary>
public Int32 UserId { get; set; }
/// <summary>
/// Name of FW-Update Builder Operator who generated this safe
/// </summary>
public String BuilderOperatorName { get; set; }
/// <summary>
/// Name of FW-Update safe with date FW-Update order number and customer name
/// (e.g. ThamesWater_1234567890.safe)
/// </summary>
public String Name { get; set; }
/// <summary>
/// Raw data
/// </summary>
public Byte[] Content { get; set; }
/// <summary>
/// Index from file tbl where the content is located
/// </summary>
public Int32 FilePartId { get; set; }
/// <summary>
/// List of PcbIds
/// </summary>
public List<String> PcbIds { get; set; }
/// <summary>
/// automatic (DB-job) delete all FwUpdateSafeContainer with invalid date
/// </summary>
public DateTimeOffset ValidDate { get; set; }
}
}