Skip to content

Instantly share code, notes, and snippets.

@wsrzx
Last active January 17, 2017 00:38
Show Gist options
  • Save wsrzx/c91d2dc437721fe757debd10a723b546 to your computer and use it in GitHub Desktop.
Save wsrzx/c91d2dc437721fe757debd10a723b546 to your computer and use it in GitHub Desktop.
Models, construindo um aplicativo com Xamarin.Forms
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