// Token: 0x06004D5D RID: 19805 RVA: 0x0017A894 File Offset: 0x00178A94
        public bool SetTeamRoomInviteInfo(TeamRoomInviteInfo info)
        {
            string key = this.BuildInviteInfoKey(info.SessionId, info.RoomId);

            if (this.m_inviteInfos.ContainsKey(key))
            {
                return(false);
            }
            this.m_inviteInfos.Add(key, info);
            return(true);
        }
Example #2
0
 // Token: 0x06003CDF RID: 15583 RVA: 0x001136D0 File Offset: 0x001118D0
 public static ProTeamRoomInviteInfo TeamRoomInviteInfoToPbTeamRoomInviteInfo(TeamRoomInviteInfo info)
 {
     return(new ProTeamRoomInviteInfo
     {
         ChannelId = info.ChannelId,
         SessionId = info.SessionId,
         Level = info.Level,
         Name = info.Name,
         GameFunctionTypeId = info.GameFunctionTypeId,
         LocationId = info.LocationId,
         RoomId = info.RoomId,
         TimeOut = info.TimeOut.Ticks
     });
 }
        // Token: 0x06004D5B RID: 19803 RVA: 0x0017A7B0 File Offset: 0x001789B0
        public override object SerializeToClient()
        {
            DSTeamNtf dsteamNtf = new DSTeamNtf();

            dsteamNtf.RoomId                = this.RoomId;
            dsteamNtf.GameFunctionTypeId    = (int)this.GameFunctionTypeId;
            dsteamNtf.LocationId            = this.LocationId;
            dsteamNtf.WaitingFunctionTypeId = (int)this.WaitingFunctionTypeId;
            dsteamNtf.WaitingLocationId     = this.WaitingLocationId;
            dsteamNtf.LastInviteSendTime    = this.LastInviteSendTime.Ticks;
            foreach (KeyValuePair <string, TeamRoomInviteInfo> keyValuePair in this.m_inviteInfos)
            {
                dsteamNtf.InviteInfos.Add(TeamRoomInviteInfo.TeamRoomInviteInfoToPbTeamRoomInviteInfo(keyValuePair.Value));
            }
            return(dsteamNtf);
        }