Ejemplo n.º 1
0
        public override async Task InitAsync()
        {
            IsBusy = true;

            _nicWritesService = ServiceContainer.Resolve <INicWritesService>();

            await AddCategory("Articles", () => _nicWritesService.GetArticlesAsync());
            await AddCategory("Play Scripts", () => _nicWritesService.GetScriptsAsync());
            await AddCategory("Promotional Copy", () => _nicWritesService.GetPromoCopyAsync());
            await AddCategory("Screenplays", () => _nicWritesService.GetScreenplaysAsync());
            await AddCategory("Reviews", () => _nicWritesService.GetReviewsAsync());
            await AddCategory("ShortStories", () => _nicWritesService.GetShortStoriesAsync());
            await AddSocialMediaCategory();

            IsBusy = false;
        }
Ejemplo n.º 2
0
        public SocialMediaViewModel()
        {
            SocialPosts = new ObservableCollection <SocialPost>();

            _nicWritesService = ServiceContainer.Resolve <INicWritesService>();
        }