/// <summary>
        /// Invoked when the add new post button is clicked.
        /// </summary>
        /// <param name="obj">The Object</param>
        private void AddNewPost(object obj)
        {
            if (string.IsNullOrEmpty(NewPostText))
            {
                MainPage.DisplayAlert("Alert", "Please add a message.", "OK");

                return;
            }

            Post post = new Post(this)
            {
                ID    = postId,
                Owner = LoggedInUser
            };

            MessagePostViewModel.AddNewPost(ref post, LoggedInUser, NewPostText);

            Posts.Insert(0, post);

            NewPostText = string.Empty;

            IKeyboardHelper dependencyService = DependencyService.Get <IKeyboardHelper>();

            dependencyService?.HideKeyboard();
        }
        private Post CreatePost(Person person)
        {
            Post post = new Post(this);

            post.ID = postId;

            switch (postId)
            {
            case 1:
                MessagePostViewModel.CreateMessagePost001(ref post, person);
                break;

            case 2:
                MessagePostViewModel.CreateMessagePost002(ref post, person);
                break;

            case 3:
                MessagePostViewModel.CreateMessagePost003(ref post, person);
                break;

            case 4:
                MessagePostViewModel.CreateMessagePost004(ref post, person);
                break;

            case 5:
                MessagePostViewModel.CreateMessagePost005(ref post, person);
                break;

            case 6:
                PicturePostViewModel.CreatePicturePost001(ref post, person, person.Images[0]);
                break;

            case 7:
                PicturePostViewModel.CreatePicturePost002(ref post, person, person.Images[0]);
                break;

            case 8:
                PicturePostViewModel.CreatePicturePost003(ref post, person, person.Images[0]);
                break;

            case 9:
                PicturePostViewModel.CreatePicturePost004(ref post, person, person.Images[0]);
                break;

            case 10:
                PicturePostViewModel.CreatePicturePost005(ref post, person, person.Images[0]);
                break;

            case 11:
                PicturePostViewModel.CreatePicturePost006(ref post, person, person.Images[1]);
                break;

            case 12:
                PicturePostViewModel.CreatePicturePost007(ref post, person, person.Images[1]);
                break;

            case 13:
                PicturePostViewModel.CreatePicturePost008(ref post, person, person.Images[1]);
                break;

            case 14:
                PicturePostViewModel.CreatePicturePost009(ref post, person, person.Images[1]);
                break;

            case 15:
                PicturePostViewModel.CreatePicturePost010(ref post, person, person.Images[1]);
                break;

            case 16:
                MessagePostViewModel.CreateMessagePost006(ref post, person);
                break;

            case 17:
                MessagePostViewModel.CreateMessagePost007(ref post, person);
                break;

            case 18:
                MessagePostViewModel.CreateMessagePost008(ref post, person);
                break;

            case 19:
                MessagePostViewModel.CreateMessagePost009(ref post, person);
                break;

            case 20:
                MessagePostViewModel.CreateMessagePost010(ref post, person);
                break;

            case 21:
                VideoPostViewModel.CreateVideoPost001(ref post, person);
                break;

            case 22:
                VideoPostViewModel.CreateVideoPost002(ref post, person);
                break;

            case 23:
                VideoPostViewModel.CreateVideoPost003(ref post, person);
                break;

            case 24:
                VideoPostViewModel.CreateVideoPost004(ref post, person);
                break;

            case 25:
                VideoPostViewModel.CreateVideoPost005(ref post, person);
                break;

            default:
                break;
            }
            post.ShortCommentsVisibility = true;
            postId++;
            return(post);
        }