Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 02647ca

Browse files
Brought step 2 forward into .NET Core 2
2 parents 5272c9a + 7591d2f commit 02647ca

29 files changed

+800
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Uno.Entities
2+
{
3+
public static class AuthorizationLevel
4+
{
5+
const string Administrator = "Administrator";
6+
7+
const string User = "User";
8+
}
9+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Uno.Entities
2+
{
3+
public static class PostStatus
4+
{
5+
const string Published = "Published";
6+
7+
const string Draft = "Draft";
8+
}
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
}

0 commit comments

Comments
 (0)