aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Timeline.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-11-18 19:29:37 +0800
committercrupest <crupest@outlook.com>2019-11-18 19:29:37 +0800
commit06a5d9aae4a348ff93aeaa40ac3d3ae2e7354f0f (patch)
tree047960f05911f7c841223f7b6528fe30b8e52088 /Timeline/Models/Timeline.cs
parent59c10650fc36e8c79c1def088240fd90a5151250 (diff)
downloadtimeline-06a5d9aae4a348ff93aeaa40ac3d3ae2e7354f0f.tar.gz
timeline-06a5d9aae4a348ff93aeaa40ac3d3ae2e7354f0f.tar.bz2
timeline-06a5d9aae4a348ff93aeaa40ac3d3ae2e7354f0f.zip
Write tests and fix bugs found via tests.
Diffstat (limited to 'Timeline/Models/Timeline.cs')
-rw-r--r--Timeline/Models/Timeline.cs18
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; }