private void OnStreamAdded(Club.ClubStreamAddedEvent newStreamEvent) { if (CommunityData.m_communityDictionary.ContainsKey(newStreamEvent.ClubID)) { CommunityData.m_communityDictionary[newStreamEvent.ClubID].HandleStreamAddedEvent(newStreamEvent); this.FireChannelRefreshCallback(newStreamEvent.ClubID); } }
public void HandleStreamAddedEvent(Club.ClubStreamAddedEvent streamAddedEvent) { ClubStreamInfo?streamInfo = Club.GetStreamInfo(streamAddedEvent.ClubID, streamAddedEvent.StreamID); if (streamInfo != null) { this.AddStream(streamInfo.Value); } }