Esempio n. 1
0
 public void Handle(WallPostPinnedUnpinned message)
 {
     if (message.OwnerId == -this._gid)
     {
         this.LoadGroupData(true, false);
     }
 }
Esempio n. 2
0
 public void Handle(WallPostPinnedUnpinned message)
 {
     if (message.OwnerId != this.CommonParameters.OwnerId || message.PostId != this.CommonParameters.PostId)
     {
         return;
     }
     this.Refresh();
 }
Esempio n. 3
0
 public static void PinUnpin(this WallPost wallPost, Action <bool> callback)
 {
     WallService.Current.PinUnpin(wallPost.is_pinned == 0, wallPost.owner_id, wallPost.id, (Action <BackendResult <ResponseWithId, ResultCode> >)(res =>
     {
         if (res.ResultCode == ResultCode.Succeeded)
         {
             EventAggregator current = EventAggregator.Current;
             WallPostPinnedUnpinned postPinnedUnpinned = new WallPostPinnedUnpinned();
             postPinnedUnpinned.OwnerId = wallPost.owner_id;
             postPinnedUnpinned.PostId  = wallPost.id;
             int num = wallPost.is_pinned == 0 ? 1 : 0;
             postPinnedUnpinned.Pinned = num != 0;
             current.Publish((object)postPinnedUnpinned);
             wallPost.is_pinned = wallPost.is_pinned != 0 ? 0 : 1;
             SocialDataManager.Instance.MarkFeedAsStale(wallPost.owner_id);
         }
         callback(res.ResultCode == ResultCode.Succeeded);
     }));
 }