Skip to content

Instantly share code, notes, and snippets.

@mikebrind
Created July 12, 2018 07:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikebrind/a481ccd2b459fa1482a5ecd773c19bb8 to your computer and use it in GitHub Desktop.
Save mikebrind/a481ccd2b459fa1482a5ecd773c19bb8 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
namespace KnockoutTS.Models
{
public class WebMail
{
public List<Folder> Folders { get; set; } = new List<Folder>();
}
public class Mail
{
public int Id { get; set; }
public string From { get; set; }
public string To { get; set; }
public DateTime Date { get; set; }
public string Subject { get; set; }
public string Folder { get; set; }
public string MessageContent { get; set; }
}
public class Folder
{
public string Id { get; set; }
public List<Mail> Mails { get; set; } = new List<Mail>();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment