Пример #1
0
        async Task SendPost()
        {
            string message = Message;

            Message = string.Empty;
            var createPostResponse = await ApiManager.CreatePost(SessionData.username, SessionData.password, _threadDetails.Tid, _threadDetails.Fid, SessionData.ip, message);

            if (!createPostResponse.IsSuccessStatusCode)
            {
                throw new Exception(createPostResponse.StatusCode.ToString());
            }

            GetPostsCommand.Execute(null);
        }