Skip to content

Instantly share code, notes, and snippets.

@JohnDMathis
Created December 6, 2012 17:39
Show Gist options
  • Save JohnDMathis/4226399 to your computer and use it in GitHub Desktop.
Save JohnDMathis/4226399 to your computer and use it in GitHub Desktop.
Gallery Models
public class GallerySet
{
public GalleryLayout Layout { get; set; }
public List<GalleryItem> Items { get; set; }
}
public class GalleryItem
{
public int Id { get; set; }
public int ChannelId { get; set; }
public GalleryItemType Type { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public DateTime Date { get; set; }
public bool IsPortrait { get; set; }
public string ThumbnailUrl { get; set; }
public string FullUrl { get; set; }
public string ClickUrl { get; set; }
}
public enum GalleryLayout
{
TwoThreeTwo,
ThreeTwoThree,
TwoThree,
ThreeTwo
}
public enum GalleryItemType
{
Image,
Video,
Ad
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment