Skip to content

Instantly share code, notes, and snippets.

@5up3rman
Last active May 19, 2017 18:25
Show Gist options
  • Save 5up3rman/5a3f84989e88be51c06d86b155423e0a to your computer and use it in GitHub Desktop.
Save 5up3rman/5a3f84989e88be51c06d86b155423e0a to your computer and use it in GitHub Desktop.
Live Photo Glass Object
using System;
using Sitecore.Globalization;
namespace Paragon.Foundation.LivePhoto.GlassFieldObjects
{
/// <summary>
/// Based on Glass.Mapper.Sc.Fields.Image
/// </summary>
[Serializable]
public class LivePhotoGlassObject : ILivePhotoGlassObject
{
public int Height { get; set; }
public int Width { get; set; }
public Guid MediaId { get; set; }
public Guid MovieId { get; set; }
public Language Language { get; set; }
public string DataLivePhoto { get;set; } = "data-live-photo";
public string DataPhotoSrc { get; set; }
public string DataVideoSrc { get; set; }
public string InlineStyle { get; set; }
public string DataPhotoTime { get; set; }
public string DataProactivelyLoadsVideo { get; set; }
public string DataShowsNativeControls { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment