Skip to content

Instantly share code, notes, and snippets.

@willbuildapps

willbuildapps/Models.cs

Last active Jan 17, 2017
Embed
What would you like to do?
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