Skip to content

Instantly share code, notes, and snippets.

Created December 24, 2012 01:54
Show Gist options
  • Save anonymous/4367099 to your computer and use it in GitHub Desktop.
Save anonymous/4367099 to your computer and use it in GitHub Desktop.
Issue DOM
namespace IssueDOM
{
public class Issue
{
public string Title { get; set; }
public string Description { get; set; }
public string State { get; set; }
public Link[] People { get; set; }
public Link[] AvailableStateTransitions { get; set; }
public string[] Tags { get; set; } // Simple boolean tags
public CategoryAttribute[] CategoryAttributes { get; set; } // Selected values with a predefined domain
public KeyValuePair<string, string> Facts { get; set; } // Arbitrary key value pairs
public string[] Comments { get; set; }
public Event[] History { get; set; }
public Link[] Documents { get; set; }
}
public class Link {
public string Rel { get; set; }
public string Href { get; set; }
public string Title { get; set; }
}
public class Comment {
public Link Author { get; set; }
public string Text { get; set; }
}
public class CategoryAttribute
{
public string Name { get; set; }
public string Value { get; set; }
public Link Domain { get; set; }
}
public class Event {
public DateTime When { get; set; }
public Link Who { get; set; }
public string What { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment