diff options
author | crupest <crupest@outlook.com> | 2019-11-18 19:29:37 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-11-18 19:29:37 +0800 |
commit | 468d7f4c416d4469375b7170beb5e388737c0970 (patch) | |
tree | 047960f05911f7c841223f7b6528fe30b8e52088 /Timeline/Models | |
parent | 5b5bb69c3ba2150816f120860be46d49c5bc37aa (diff) | |
download | timeline-468d7f4c416d4469375b7170beb5e388737c0970.tar.gz timeline-468d7f4c416d4469375b7170beb5e388737c0970.tar.bz2 timeline-468d7f4c416d4469375b7170beb5e388737c0970.zip |
Write tests and fix bugs found via tests.
Diffstat (limited to 'Timeline/Models')
-rw-r--r-- | Timeline/Models/Timeline.cs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs index 26012878..85fefff5 100644 --- a/Timeline/Models/Timeline.cs +++ b/Timeline/Models/Timeline.cs @@ -1,11 +1,25 @@ using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
using Timeline.Entities;
namespace Timeline.Models
{
+ public enum TimelineVisibility
+ {
+ /// <summary>
+ /// All people including those without accounts.
+ /// </summary>
+ Public,
+ /// <summary>
+ /// Only people signed in.
+ /// </summary>
+ Register,
+ /// <summary>
+ /// Only member.
+ /// </summary>
+ Private
+ }
+
public class TimelinePostInfo
{
public long Id { get; set; }
|