diff options
author | crupest <crupest@outlook.com> | 2020-03-12 19:56:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-12 19:56:20 +0800 |
commit | d51954c2eaf07769e045270a02c19e46e01fe73f (patch) | |
tree | 70681348ddfc3bc8c3d9a92ae010a02020830573 /Timeline/Services/TimelinePostNotExistException.cs | |
parent | eb9554b4fe78eaced12329e7fd7d8d62a58a1c6c (diff) | |
parent | 45527eb0c836d14725019c3facdff6c8391531cf (diff) | |
download | timeline-d51954c2eaf07769e045270a02c19e46e01fe73f.tar.gz timeline-d51954c2eaf07769e045270a02c19e46e01fe73f.tar.bz2 timeline-d51954c2eaf07769e045270a02c19e46e01fe73f.zip |
Merge pull request #69 from crupest/image
Post image feature.
Diffstat (limited to 'Timeline/Services/TimelinePostNotExistException.cs')
-rw-r--r-- | Timeline/Services/TimelinePostNotExistException.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Timeline/Services/TimelinePostNotExistException.cs b/Timeline/Services/TimelinePostNotExistException.cs index 97e5d550..c542e63e 100644 --- a/Timeline/Services/TimelinePostNotExistException.cs +++ b/Timeline/Services/TimelinePostNotExistException.cs @@ -12,12 +12,17 @@ namespace Timeline.Services System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
- public TimelinePostNotExistException(long id) : base(Resources.Services.Exception.TimelinePostNotExistException) { Id = id; }
+ public TimelinePostNotExistException(string timelineName, long id, bool isDelete = false) : base(Resources.Services.Exception.TimelinePostNotExistException) { TimelineName = timelineName; Id = id; IsDelete = isDelete; }
- public TimelinePostNotExistException(long id, string message) : base(message) { Id = id; }
+ public TimelinePostNotExistException(string timelineName, long id, bool isDelete, string message) : base(message) { TimelineName = timelineName; Id = id; IsDelete = isDelete; }
- public TimelinePostNotExistException(long id, string message, Exception inner) : base(message, inner) { Id = id; }
+ public TimelinePostNotExistException(string timelineName, long id, bool isDelete, string message, Exception inner) : base(message, inner) { TimelineName = timelineName; Id = id; IsDelete = isDelete; }
+ public string TimelineName { get; set; } = "";
public long Id { get; set; }
+ /// <summary>
+ /// True if the post is deleted. False if the post does not exist at all.
+ /// </summary>
+ public bool IsDelete { get; set; } = false;
}
}
|