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