Created
December 6, 2012 17:39
-
-
Save JohnDMathis/4226399 to your computer and use it in GitHub Desktop.
Gallery Models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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