Esempio n. 1
0
 public void Update(Stickers stickers, bool raise = false)
 {
     if (raise)
     {
         Stickers.ReplaceWith(stickers.StickersValue.Select(x => new StickerViewModel(x)));
     }
     else
     {
         Stickers = new MvxObservableCollection <StickerViewModel>(stickers.StickersValue.Select(x => new StickerViewModel(x)));
     }
 }
 public virtual void Update(Stickers stickers, bool raise = false)
 {
     if (raise)
     {
         Stickers.ReplaceWith(stickers.StickersValue.Select(x => new StickerViewModel(_protoService, _aggregator, x)));
     }
     else
     {
         Stickers = new MvxObservableCollection <StickerViewModel>(stickers.StickersValue.Select(x => new StickerViewModel(_protoService, _aggregator, x)));
     }
 }
Esempio n. 3
0
 public virtual void Update(IEnumerable <Sticker> stickers, bool raise = false)
 {
     if (raise)
     {
         Stickers.ReplaceWith(stickers.Select(x => new StickerViewModel(_protoService, x)));
     }
     else
     {
         Stickers = new MvxObservableCollection <StickerViewModel>(stickers.Select(x => new StickerViewModel(_protoService, x)));
     }
 }
        public void Update(long chatId, StickerSet set, bool reset = true)
        {
            _info.Id = set.Id;
            ChatId   = chatId;

            if (reset)
            {
                Stickers = new MvxObservableCollection <StickerViewModel>(set.Stickers.Select(x => new StickerViewModel(_protoService, _aggregator, x)));
            }
            else
            {
                Stickers.ReplaceWith(set.Stickers.Select(x => new StickerViewModel(_protoService, _aggregator, x)));
            }
        }