예제 #1
0
        private void HandleChannelInvitation_NotifyReceivedInvitationAdded(RPCContext context)
        {
            base.ApiLog.LogDebug("HandleChannelInvitation_NotifyReceivedInvitationAdded");
            InvitationAddedNotification invitationAddedNotification = InvitationAddedNotification.ParseFrom(context.Payload);

            if (invitationAddedNotification.Invitation.HasChannelInvitation)
            {
                ChannelInvitation channelInvitation          = invitationAddedNotification.Invitation.ChannelInvitation;
                ChannelAPI.InvitationServiceType serviceType = (ChannelAPI.InvitationServiceType)channelInvitation.ServiceType;
                List <ChannelAPI.ReceivedInvite> list;
                if (!this.m_receivedInvitations.TryGetValue(serviceType, out list))
                {
                    list = new List <ChannelAPI.ReceivedInvite>();
                    this.m_receivedInvitations[serviceType] = list;
                }
                list.Add(new ChannelAPI.ReceivedInvite(channelInvitation, invitationAddedNotification.Invitation));
                if (serviceType == ChannelAPI.InvitationServiceType.INVITATION_SERVICE_TYPE_PARTY)
                {
                    this.m_battleNet.Party.ReceivedInvitationAdded(invitationAddedNotification, channelInvitation);
                }
            }
        }
예제 #2
0
 public override void NotifyReceivedInvitationAdded(Google.ProtocolBuffers.IRpcController controller, InvitationAddedNotification request, Action <bnet.protocol.NO_RESPONSE> done)
 {
     throw new NotImplementedException();
 }
예제 #3
0
		public override void NotifyReceivedInvitationAdded(Google.ProtocolBuffers.IRpcController controller, InvitationAddedNotification request, Action<bnet.protocol.NO_RESPONSE> done) {
			throw new NotImplementedException();
		}