This repository was archived by the owner on Apr 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 29 files changed +800
-1
lines changed
Expand file tree Collapse file tree 29 files changed +800
-1
lines changed Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ public class Authorization
4+ {
5+ public string WebLogId { get ; set ; }
6+
7+ public string Level { get ; set ; }
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ public static class AuthorizationLevel
4+ {
5+ const string Administrator = "Administrator" ;
6+
7+ const string User = "User" ;
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ using Newtonsoft . Json ;
4+ using System . Collections . Generic ;
5+
6+ public class Category
7+ {
8+ [ JsonProperty ( "id" ) ]
9+ public string Id { get ; set ; }
10+
11+ public string WebLogId { get ; set ; }
12+
13+ public string Name { get ; set ; }
14+
15+ public string Slug { get ; set ; }
16+
17+ public string Description { get ; set ; }
18+
19+ public string ParentId { get ; set ; }
20+
21+ public ICollection < string > Children { get ; set ; } = new List < string > ( ) ;
22+ }
23+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ using Newtonsoft . Json ;
4+
5+ public class Comment
6+ {
7+ [ JsonProperty ( "id" ) ]
8+ public string Id { get ; set ; }
9+
10+ public string PostId { get ; set ; }
11+
12+ public string InReplyToId { get ; set ; }
13+
14+ public string Name { get ; set ; }
15+
16+ public string EmailAddress { get ; set ; }
17+
18+ public string Url { get ; set ; }
19+
20+ public string Status { get ; set ; }
21+
22+ public long PostedOn { get ; set ; }
23+
24+ public string Text { get ; set ; }
25+ }
26+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ public static class CommentStatus
4+ {
5+ const string Approved = "Approved" ;
6+
7+ const string Pending = "Pending" ;
8+
9+ const string Spam = "Spam" ;
10+ }
11+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ using Newtonsoft . Json ;
4+ using System . Collections . Generic ;
5+
6+ public class Page
7+ {
8+ [ JsonProperty ( "id" ) ]
9+ public string Id { get ; set ; }
10+
11+ public string WebLogId { get ; set ; }
12+
13+ public string AuthorId { get ; set ; }
14+
15+ public string Title { get ; set ; }
16+
17+ public string Permalink { get ; set ; }
18+
19+ public long PublishedOn { get ; set ; }
20+
21+ public long UpdatedOn { get ; set ; }
22+
23+ public bool ShowInPageList { get ; set ; }
24+
25+ public string Text { get ; set ; }
26+
27+ public ICollection < Revision > Revisions { get ; set ; } = new List < Revision > ( ) ;
28+ }
29+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ using Newtonsoft . Json ;
4+ using System . Collections . Generic ;
5+
6+ public class Post
7+ {
8+ [ JsonProperty ( "id" ) ]
9+ public string Id { get ; set ; }
10+
11+ public string WebLogId { get ; set ; }
12+
13+ public string AuthorId { get ; set ; }
14+
15+ public string Status { get ; set ; }
16+
17+ public string Title { get ; set ; }
18+
19+ public string Permalink { get ; set ; }
20+
21+ public long PostedOn { get ; set ; }
22+
23+ public long UpdatedOn { get ; set ; }
24+
25+ public string Text { get ; set ; }
26+
27+ public ICollection < string > CategoryIds { get ; set ; } = new List < string > ( ) ;
28+
29+ public ICollection < string > Tags { get ; set ; } = new List < string > ( ) ;
30+
31+ public ICollection < Revision > Revisions { get ; set ; } = new List < Revision > ( ) ;
32+ }
33+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ public static class PostStatus
4+ {
5+ const string Published = "Published" ;
6+
7+ const string Draft = "Draft" ;
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ public class Revision
4+ {
5+ public long AsOf { get ; set ; }
6+
7+ public string Text { get ; set ; }
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ namespace Uno . Entities
2+ {
3+ using Newtonsoft . Json ;
4+ using System . Collections . Generic ;
5+
6+ public class User
7+ {
8+ [ JsonProperty ( "id" ) ]
9+ public string Id { get ; set ; }
10+
11+ public string EmailAddress { get ; set ; }
12+
13+ public string PasswordHash { get ; set ; }
14+
15+ public string FirstName { get ; set ; }
16+
17+ public string LastName { get ; set ; }
18+
19+ public string PreferredName { get ; set ; }
20+
21+ public string Url { get ; set ; }
22+
23+ public ICollection < Authorization > Authorizations { get ; set ; } = new List < Authorization > ( ) ;
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments