예제 #1
0
 private void OnMemberUpdated(Club.ClubMemberUpdatedEvent updateMemberEvent)
 {
     if (CommunityData.m_communityDictionary.ContainsKey(updateMemberEvent.ClubID))
     {
         CommunityData.m_communityDictionary[updateMemberEvent.ClubID].HandleMemberUpdatedEvent(updateMemberEvent);
         this.FireRosterRefreshCallback(updateMemberEvent.ClubID);
     }
 }
예제 #2
0
 public void HandleMemberUpdatedEvent(Club.ClubMemberUpdatedEvent memberUpdatedEvent)
 {
     if (memberUpdatedEvent.ClubID == this.CommunityID && memberUpdatedEvent.MemberID == this.MemberID)
     {
         ClubMessageInfo?messageInfo = Club.GetMessageInfo(this.CommunityID, this.StreamID, this.MessageIdentifier);
         this.m_messageInfo = ((messageInfo == null) ? this.m_messageInfo : messageInfo.Value);
     }
 }
예제 #3
0
        public void HandleMemberUpdatedEvent(Club.ClubMemberUpdatedEvent memberUpdate)
        {
            ClubMemberInfo?memberInfo = Club.GetMemberInfo(this.m_clubId, this.MemberID);

            if (memberInfo != null)
            {
                this.m_clubMember = memberInfo.Value;
            }
        }
예제 #4
0
        public void HandleMemberUpdatedEvent(Club.ClubMemberUpdatedEvent updateMemberEvent)
        {
            CommunityMember communityMember = this.m_memberList.Find((CommunityMember member) => member.MemberID == updateMemberEvent.MemberID);

            if (communityMember != null)
            {
                communityMember.HandleMemberUpdatedEvent(updateMemberEvent);
            }
        }
예제 #5
0
 public void UpdatePendingMessages(Club.ClubMemberUpdatedEvent memberEvent)
 {
     if (this.m_community != null && this.m_community.ClubId == memberEvent.ClubID && this.m_pendingMemberIDs.Contains(memberEvent.MemberID))
     {
         IEnumerable <CommunityChatItem> enumerable = from item in this.m_chatContent.GetComponentsInChildren <CommunityChatItem>()
                                                      where item.PostMadeByMemberID(memberEvent.MemberID)
                                                      select item;
         foreach (CommunityChatItem communityChatItem in enumerable)
         {
             communityChatItem.HandleMemberUpdatedEvent(memberEvent);
         }
         this.m_pendingMemberIDs.Remove(memberEvent.MemberID);
         if (this.m_pendingMemberIDs.Count == 0)
         {
             Club.OnClubMemberUpdated -= new Club.ClubMemberUpdatedHandler(this.UpdatePendingMessages);
         }
     }
 }
예제 #6
0
 public void HandleMemberUpdatedEvent(Club.ClubMemberUpdatedEvent memberEvent)
 {
     this.m_message.HandleMemberUpdatedEvent(memberEvent);
     this.SetChatInfo(this.m_message);
 }