divan/RMuseum/Models/GanjoorIntegration/ViewModels/PinterestLinkViewModel.cs
Hamid Reza Mohammadi 5991d7fa5f Add project files.
2020-08-14 21:06:22 +04:30

143 lines
3.6 KiB
C#

using System;
namespace RMuseum.Models.GanjoorIntegration.ViewModels
{
/// <summary>
/// Safe pinterest link view model
/// </summary>
public class PinterestLinkViewModel
{
/// <summary>
/// cosntructor
/// </summary>
/// <param name="src"></param>
/// <param name="entityFriendlyUrl"></param>
/// <param name="entityImageId"></param>
/// <param name="entityName"></param>
public PinterestLinkViewModel(PinterestLink src, string entityName, string entityFriendlyUrl, Guid entityImageId)
{
Id = src.Id;
GanjoorPostId = src.GanjoorPostId;
GanjoorUrl = src.GanjoorUrl;
GanjoorTitle = src.GanjoorTitle;
AltText = src.AltText;
LinkType = src.LinkType;
PinterestImageUrl = src.PinterestImageUrl;
PinterestUrl = src.PinterestUrl;
SuggestionDate = src.SuggestionDate;
ReviewerId = src.ReviewerId;
ReviewDate = src.ReviewDate;
ReviewResult = src.ReviewResult;
ReviewDesc = src.ReviewDesc;
ArtifactId = src.ArtifactId;
ItemId = src.ItemId;
Synchronized = src.Synchronized;
EntityName = entityName;
EntityFriendlyUrl = entityFriendlyUrl;
EntityImageId = entityImageId;
}
/// <summary>
/// Id
/// </summary>
public Guid Id { get; set; }
/// <summary>
/// Ganjoor Post Id
/// </summary>
public int GanjoorPostId { get; set; }
/// <summary>
/// ganjoor url
/// </summary>
public string GanjoorUrl { get; set; }
/// <summary>
/// ganjoor title
/// </summary>
public string GanjoorTitle { get; set; }
/// <summary>
/// alt text
/// </summary>
public string AltText { get; set; }
/// <summary>
/// link type
/// </summary>
public LinkType LinkType { get; set; }
/// <summary>
/// pinterest url
/// </summary>
public string PinterestUrl { get; set; }
/// <summary>
/// pinterest image url
/// </summary>
public string PinterestImageUrl { get; set; }
/// <summary>
/// Suggestion Date
/// </summary>
public DateTime SuggestionDate { get; set; }
/// <summary>
/// User id who reviewed the link
/// </summary>
public Guid? ReviewerId { get; set; }
/// <summary>
/// Review Date
/// </summary>
public DateTime ReviewDate { get; set; }
/// <summary>
/// review result
/// </summary>
public ReviewResult ReviewResult { get; set; }
/// <summary>
/// review description
/// </summary>
public string ReviewDesc { get; set; }
/// <summary>
/// Artifact Id
/// </summary>
public Guid? ArtifactId { get; set; }
/// <summary>
/// Artifact Item Id
/// </summary>
public Guid? ItemId { get; set; }
/// <summary>
/// Synchronized with ganjoor
/// </summary>
public bool Synchronized { get; set; }
/// <summary>
/// entity name
/// </summary>
public string EntityName { get; set; }
/// <summary>
/// entity friendly url
/// </summary>
public string EntityFriendlyUrl { get; set; }
/// <summary>
/// entity image id
/// </summary>
public Guid EntityImageId { get; set; }
}
}