43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
|
|
namespace Landmark.OLA.Models.Loan
|
|
{
|
|
public class LoanApplicationFile
|
|
{
|
|
public string CosmosLoanId { get; set; }
|
|
public Guid FileId { get; set; }
|
|
public string Name { get; set; }
|
|
public string Section { get; set; }
|
|
public string SectionId { get; set; }
|
|
public string Description { get; set; }
|
|
|
|
public LoanApplicationFile(string cosmosLoanId, Guid fileId, string name, string section, string sectionId, string description)
|
|
{
|
|
CosmosLoanId = cosmosLoanId;
|
|
FileId = fileId;
|
|
Name = name;
|
|
Section = section;
|
|
SectionId = sectionId;
|
|
Description = description;
|
|
}
|
|
|
|
public string GetBlobPath()
|
|
{
|
|
return $"{CosmosLoanId}/{FileId}";
|
|
}
|
|
|
|
public Dictionary<string, string> GetMetadata()
|
|
{
|
|
var metadata = new Dictionary<string, string>
|
|
{
|
|
{ "Name", Name },
|
|
{ "Section", Section },
|
|
{ "SectionId", SectionId.ToString() },
|
|
{ "Description", Description },
|
|
{ "CosmosLoanId", CosmosLoanId }
|
|
};
|
|
|
|
return metadata;
|
|
}
|
|
}
|
|
}
|