/// <summary> /// Destroys the specified <paramref name="statusMessage"/>. The authenticating user must be the author of the /// specified status message. Returns the destroyed status message if successful. /// </summary> /// <param name="statusMessage">The status meessage to be destroyed.</param> /// <returns>An instance of <see cref="TwitterDestroyStatusMessageResponse"/> representing the response.</returns> public TwitterDestroyStatusMessageResponse DestroyStatusMessage(TwitterStatusMessage statusMessage) { return(TwitterDestroyStatusMessageResponse.ParseResponse(Raw.DestroyStatusMessage(statusMessage))); }
/// <summary> /// Destroys the specified <paramref name="statusMessage"/>. The authenticating user must be the author of the /// specified status message. Returns the destroyed status message if successful. /// </summary> /// <param name="statusMessage">The status meessage to be destroyed.</param> /// <param name="trimUser">When set to <code>true</code>, each tweet returned in a timeline will include a user /// object including only the status authors numerical ID. Omit this parameter to receive the complete user /// object.</param> /// <returns>An instance of <see cref="TwitterDestroyStatusMessageResponse"/> representing the response.</returns> public TwitterDestroyStatusMessageResponse DestroyStatusMessage(TwitterStatusMessage statusMessage, bool trimUser) { return(TwitterDestroyStatusMessageResponse.ParseResponse(Raw.DestroyStatusMessage(statusMessage, trimUser))); }
/// <summary> /// Destroys the status message with the specified <paramref name="statusId"/>. The authenticating user must be /// the author of the specified status message. Returns the destroyed status message if successful. /// </summary> /// <param name="statusId">The ID of the status message to be destroyed.</param> /// <returns>An instance of <see cref="TwitterDestroyStatusMessageResponse"/> representing the response.</returns> /// <see> /// <cref>https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id</cref> /// </see> public TwitterDestroyStatusMessageResponse DestroyStatusMessage(long statusId) { return(TwitterDestroyStatusMessageResponse.ParseResponse(Raw.DestroyStatusMessage(statusId))); }