-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some PostConnector (public API) improvements #11
Comments
Need to see, especially this new post id is buried quite deep. |
Added another SubmitExternalPost with IsPinned as a new parameter |
Wow, thanks for About new post id: it could be resolved by returning some structure (or class) like that: public struct SubmitPostResult
{
public int PostId;
public PostMessage PostMessage;
} It can be extended in the future to have more fields to return. But surely it looks like major change in API. Similar approach could be applied to pass parameters to public struct SubmitPostParams
{
public int TabId;
public int ModuleId;
public int ForumId;
public int UserId;
...
public List<Term> Terms;
}
public SubmitPostResult SubmitExternalPost (SubmitPostParams postParams); |
That was my idea as well, but yes, there is lots of places where this is checked. Need to review this carefully. |
Did a quick refactoring, see with this https://github.com/juvander/DotNetNuke-Forum/releases/tag/05.01.00_DNN8 |
Thanks, I'll check it. |
Seems to work as intended. |
Excellent! |
Some nice things to have in public API:
IsPinned
then callingSubmitExternalPost()
- currently alwaysFalse
, andPostValidation()
method is private.PostToDatabase()
returns it, but it also private and heavily wrapped inPostValidation()
.The text was updated successfully, but these errors were encountered: