DeleteUserPost
public BackendReturnObject DeleteUserPost(string postIndate);
Note
This function provides the same feature as Social.Post.SendPost of the previous mail function.
Parameter
Value | Type | Description |
---|---|---|
postIndate | string | indate of the user mail to delete |
Description
Deletes a user mail from the mail list. Admin mail cannot be deleted.
Upon deletion, any items that have not been claimed will also be deleted.
Example
Synchronous
// Get the inDate of the user mail to delete.
var bro = Backend.UPost.GetPostList(PostType.User);
string postIndate = bro.GetReturnValuetoJSON()["postList"][0]["inDate"].ToString();
Backend.UPost.DeleteUserPost(postIndate);
Asynchronous
// Get the inDate of the user mail to delete.
Backend.UPost.GetPostList(PostType.User, callback =>
{
string postIndate = callback.GetReturnValuetoJSON()["postList"][0]["inDate"].ToString();
Backend.UPost.DeleteUserPost(postIndate, callback2 =>
{
// Post-process
});
});
SendQueue
// Get the inDate of the user mail to delete.
SendQueue.Enqueue(Backend.UPost.GetPostList, PostType.User, callback =>
{
string postIndate = callback.GetReturnValuetoJSON()["postList"][0]["inDate"].ToString();
SendQueue.Enqueue(Backend.UPost.DeleteUserPost, postIndate, callback2 =>
{
// Post-process
});
});
Return cases
Success cases
When the deletion is successful
statusCode : 204
Error cases
When a non-existent postIndate is entered
statusCode : 400
errorCode : ConditionalCheckFailedException