Beispiel #1
0
        public async Task <bool> UpdateItemAsync(Note item)
        {
            items.Clear();
            items.AddRange(await WebDataService.UpdateNote(item));

            return(await Task.FromResult(true));
        }
Beispiel #2
0
        public async Task <bool> AddCommentAsync(Comment comment)
        {
            await WebDataService.AddComment(comment);

            items.Clear();
            items.AddRange(await GetItemsAsync());
            return(await Task.FromResult(true));
        }
Beispiel #3
0
        public async Task <IEnumerable <Note> > GetItemsAsync(bool forceRefresh = false)
        {
            var app      = zakajo.Mobile.App.Current as zakajo.Mobile.App;
            var userguid = app.DeviceId;

            items.Clear();
            items.AddRange(await WebDataService.GetNotesByUserIdAsync(userguid));
            return(items);
        }
Beispiel #4
0
 public async Task <IEnumerable <NoteType> > GetItemsAsync(bool forceRefresh = false)
 {
     items.Clear();
     items.AddRange(await WebDataService.GetNoteTypes());
     return(items);
 }