-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created SubmitPostResult as a result when posting post to database, i…
…ssue #11
- Loading branch information
Ilpo Juvander
committed
Mar 24, 2017
1 parent
6aeed6a
commit 6dbd1a1
Showing
7 changed files
with
230 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
branches/DotNetNuke.Forum.Library/Data/SubmitPostResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace DotNetNuke.Forum.Library.Data | ||
{ | ||
public enum PostMessage | ||
{ | ||
ForumClosed = 0, | ||
ForumDoesntExist = 1, | ||
ForumIsParent = 2, | ||
ForumNoAttachments = 3, | ||
PostApproved = 4, | ||
PostEditExpired = 5, | ||
PostInvalidBody = 6, | ||
PostInvalidSubject = 7, | ||
PostModerated = 8, | ||
ThreadLocked = 9, | ||
UserAttachmentPerms = 10, | ||
UserBanned = 11, | ||
UserCannotEditPost = 12, | ||
UserCannotPostReply = 13, | ||
UserCannotStartThread = 14, | ||
UserCannotViewForum = 15 | ||
}; | ||
|
||
/// <summary> | ||
/// Struct to return result after post is submitted to db | ||
/// </summary> | ||
public class SubmitPostResult | ||
{ | ||
/// <summary> | ||
/// PostId of either existing or new post that was submitted. | ||
/// Note that depending on the Result returned this value may or may not be actual PostId found in database. | ||
/// </summary> | ||
public int PostId; | ||
/// <summary> | ||
/// Post result | ||
/// </summary> | ||
public PostMessage Result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters