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)); }
public EditorPackage(EditorIntent intent, string postUriForm) { this.Intent = intent; this.PostUriForm = postUriForm; }