private void HandleChannelInvitation_NotifyReceivedInvitationRemoved(RPCContext context) { base.ApiLog.LogDebug("HandleChannelInvitation_NotifyReceivedInvitationRemoved"); InvitationRemovedNotification invitationRemovedNotification = InvitationRemovedNotification.ParseFrom(context.Payload); if (invitationRemovedNotification.Invitation.HasChannelInvitation) { ChannelInvitation channelInvitation = invitationRemovedNotification.Invitation.ChannelInvitation; ChannelAPI.InvitationServiceType serviceType = (ChannelAPI.InvitationServiceType)channelInvitation.ServiceType; ulong id = invitationRemovedNotification.Invitation.Id; string szPartyType = string.Empty; if (serviceType == ChannelAPI.InvitationServiceType.INVITATION_SERVICE_TYPE_PARTY) { szPartyType = this.m_battleNet.Party.GetReceivedInvitationPartyType(id); } List <ChannelAPI.ReceivedInvite> list; if (this.m_receivedInvitations.TryGetValue(serviceType, out list)) { for (int i = 0; i < list.get_Count(); i++) { if (list.get_Item(i).Invitation.Id == id) { list.RemoveAt(i); break; } } if (list.get_Count() == 0) { this.m_receivedInvitations.Remove(serviceType); } } ChannelAPI.InvitationServiceType invitationServiceType = serviceType; if (invitationServiceType == ChannelAPI.InvitationServiceType.INVITATION_SERVICE_TYPE_PARTY) { this.m_battleNet.Party.ReceivedInvitationRemoved(szPartyType, invitationRemovedNotification, channelInvitation); } } }
public override void NotifyReceivedInvitationRemoved(Google.ProtocolBuffers.IRpcController controller, InvitationRemovedNotification request, Action <bnet.protocol.NO_RESPONSE> done) { throw new NotImplementedException(); }
public override void NotifyReceivedInvitationRemoved(Google.ProtocolBuffers.IRpcController controller, InvitationRemovedNotification request, Action<bnet.protocol.NO_RESPONSE> done) { throw new NotImplementedException(); }