Last active
January 17, 2017 00:38
-
-
Save wsrzx/c91d2dc437721fe757debd10a723b546 to your computer and use it in GitHub Desktop.
Models, construindo um aplicativo com Xamarin.Forms
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
using System; | |
namespace MonkeyApp.Models | |
{ | |
public class BaseModel | |
{ | |
public string Id { get; private set; } = Guid.NewGuid().ToString(); | |
} | |
public class Content : BaseModel | |
{ | |
public string Title { get; set; } | |
public string Description { get; set; } | |
public DateTime PostedIn { get; set; } | |
public string ImageUrl { get; set; } | |
public string ThumbnailUrl { get; set; } | |
public string Url { get; set; } | |
} | |
public class Webcast : Content | |
{ | |
public int Views { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment