Ejemplo n.º 1
0
        public void Handle(PhotoSetAsAlbumCover message)
        {
            Photo  photo1 = message.Photo;
            string str    = photo1 != null ? photo1.photo_807 : (string)null;

            if (str == null)
            {
                Photo photo2 = message.Photo;
                str = photo2 != null ? photo2.src_big : (string)null;
            }
            this.ThumbSrc = str;
        }
Ejemplo n.º 2
0
 public void Handle(PhotoSetAsAlbumCover message)
 {
     this.ApplyAlbumAction(message.aid, (Action <AlbumHeader>)(a =>
     {
         AlbumHeader albumHeader1 = a;
         Photo photo1             = message.Photo;
         string str1                = photo1 != null ? photo1.src_big :  null;
         albumHeader1.ImageUri      = str1;
         AlbumHeader albumHeader2   = a;
         Photo photo2               = message.Photo;
         string str2                = photo2 != null ? photo2.src :  null;
         albumHeader2.ImageUriSmall = str2;
     }));
 }