public void OnNavigatingTo(NavigationParameters parameters) { if (parameters.ContainsKey("ThreadViewData")) { ThreadDetails = (ThreadViewData)parameters["ThreadViewData"]; } GetPostsCommand.Execute(null); }
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); }