public void notifyStateChange(int id) { INotifyData notifyData = new INotifyData(); notifyData.id = id; notify(notifyData); }
virtual public void onNotify(INotifyData msg) { if (_notifyAction.ContainsKey(msg.id) && _notifyAction[msg.id] != null) { _notifyAction[msg.id](msg); } }
public void notify(INotifyData msg) { if (_recipientsMap.ContainsKey(msg.id)) { List <Recipient> recipients = _recipientsMap[msg.id]; for (int i = 0; i < recipients.Count; i++) { recipients[i].onNotify(msg); } } }