Exemple #1
0
 public void AttachSelfProfileScreenOrLoadRemoteUserProfile(NodeAddedEvent e, ProfileScreenNode profileScreen, [JoinByScreen] ProfileScreenContextNode profileScreenContext, [JoinAll] SelfUserNode selfUser)
 {
     if (profileScreenContext.profileScreenContext.UserId.Equals(selfUser.Entity.Id))
     {
         selfUser.userGroup.Attach(profileScreen.Entity);
     }
     else
     {
         base.ScheduleEvent(new RequestLoadUserProfileEvent(profileScreenContext.profileScreenContext.UserId), selfUser);
     }
 }
Exemple #2
0
 public void SendRequestUnloadUserProfile(NodeRemoveEvent e, ProfileScreenContextNode context, [JoinByScreen] ProfileScreenNode profileScreen, [JoinAll] SelfUserNode selfUser)
 {
     if (!context.profileScreenContext.UserId.Equals(selfUser.Entity.Id))
     {
         base.ScheduleEvent(new RequestUnloadUserProfileEvent(context.profileScreenContext.UserId), selfUser);
     }
 }
Exemple #3
0
 public void AttachProfileScreenToUserGroup(UserProfileLoadedEvent e, RemoteUserNode remoteUser, [JoinAll] ProfileScreenNode screen, [JoinByScreen] ProfileScreenContextNode profileScreenContext)
 {
     if (remoteUser.Entity.Id.Equals(profileScreenContext.profileScreenContext.UserId))
     {
         remoteUser.userGroup.Attach(screen.Entity);
     }
 }