private void SetSearchResultProperties(CommunityCommandsSearchResult results)
        {
            this.ShowPreviousResults = results.HasPreviousResults;
            this.ShowNextResults     = results.HasNextResults;

            this.CurrentResultsPage = results.PageNumber;
            this.TotaResultsPages   = results.TotalPages;
        }
        private async Task PerformMyCommands()
        {
            this.MyCommands.Clear();

            CommunityCommandsSearchResult results = await ChannelSession.Services.CommunityCommandsService.GetMyCommands(this.GetResultsPageSkip, SearchResultsPageSize);

            foreach (CommunityCommandModel command in results.Results)
            {
                this.MyCommands.Add(new CommunityCommandViewModel(command));
            }
            this.SetSearchResultProperties(results);

            this.ClearAllShows();
            this.ShowMyCommands = true;
        }
        private async Task PerformSearch()
        {
            if (!string.IsNullOrWhiteSpace(this.SearchText))
            {
                this.SearchResults.Clear();

                CommunityCommandsSearchResult results = await ChannelSession.Services.CommunityCommandsService.SearchCommands(this.SearchText, this.GetResultsPageSkip, SearchResultsPageSize);

                foreach (CommunityCommandModel command in results.Results)
                {
                    this.SearchResults.Add(new CommunityCommandViewModel(command));
                }
                this.SetSearchResultProperties(results);

                this.ClearAllShows();
                this.ShowSearch = true;
            }
        }