Example #1
0
        public async Task RefreshPage(EditorIntent editorIntent)
        {
            await ThreadUI.Invoke(() =>
            {
                switch (editorIntent)
                {
                case EditorIntent.New:
                case EditorIntent.Quote:
                case EditorIntent.MultiQuote:
                    CurrentTopic.TopicCurrentPage = CurrentTopic.TopicNbPage;
                    break;

                case EditorIntent.Edit:
                    break;

                default:
                    break;
                }
            });

            await Task.Run(async() => await TopicFetcher.GetPosts(CurrentTopic));
        }
Example #2
0
 public EditorPackage(EditorIntent intent, string postUriForm)
 {
     this.Intent      = intent;
     this.PostUriForm = postUriForm;
 }