예제 #1
0
 public void AddSubscriber(IMessageProc newMember)
 {
     if (subscribers.Contains(newMember) == false)
     {
         subscribers.Add(newMember);
     }
 }
예제 #2
0
 public void RemoveSubscriber(IMessageProc remMember)
 {
     if (subscribers.Contains(remMember) == true)
     {
         subscribers.Remove(remMember);
     }
 }
예제 #3
0
 public void Set(IMessageProc <Message> sender, IMessageProc <Message> receiver, int messageID, float dispatchTime)
 {
     Sender       = sender;
     Receiver     = receiver;
     DispatchTime = dispatchTime;
     ID           = messageID;
 }
예제 #4
0
 public void Set(IMessageProc<Message> sender, IMessageProc<Message> receiver, int messageID, float dispatchTime)
 {
     Sender = sender;
     Receiver = receiver;
     DispatchTime = dispatchTime;
     ID = messageID;
 }
예제 #5
0
 public Service()
 {
     _Process    = CicadaFacade.Container.Resolve <IMessageProc>();
     _ApplePush  = CicadaFacade.Container.Resolve <IMessagePush>("ApplePush");
     _XiaoMiPush = CicadaFacade.Container.Resolve <IMessagePush>("XiaoMiPush");
     _HuaWeiPush = CicadaFacade.Container.Resolve <IMessagePush>("HuaWeiPush");
     //_FeedBackCheck= CicadaFacade.Container.Resolve<IMessagePush>("FeedBackCheck");
 }
예제 #6
0
 public void Set(IMessageProc<Message> sender, IMessageProc<Message> receiver, int messageID, float dispatchTime,
     MessageExtraInfo extraInfo)
 {
     Sender = sender;
     Receiver = receiver;
     DispatchTime = dispatchTime;
     ExtraInfo = extraInfo;
     ID = messageID;
 }
예제 #7
0
 public virtual void Set(IMessageProc sender, IMessageProc receiver, int messageID, float dispatchTime,
                         bool swallow)
 {
     Sender       = sender;
     Receiver     = receiver;
     DispatchTime = dispatchTime;
     ID           = messageID;
     SwallowMSG   = swallow;
 }
예제 #8
0
 public void Set(IMessageProc <Message> sender, IMessageProc <Message> receiver, int messageID, float dispatchTime,
                 MessageExtraInfo extraInfo)
 {
     Sender       = sender;
     Receiver     = receiver;
     DispatchTime = dispatchTime;
     ExtraInfo    = extraInfo;
     ID           = messageID;
 }
예제 #9
0
 public void SetReceiver(IMessageProc<Message> newReceiver)
 {
     Receiver = newReceiver;
 }
예제 #10
0
 public Message(IMessageProc<Message> sender, IMessageProc<Message> receiver, int messageID, float dispatchTime,
     MessageExtraInfo extraInfo)
 {
     Set(sender, receiver, messageID, dispatchTime, extraInfo);
 }
예제 #11
0
 public virtual void SetReceiver(IMessageProc newReceiver)
 {
     Receiver = newReceiver;
 }
예제 #12
0
 public PrivateMessageCenter(IMessageProc newOwner)
 {
     owner = newOwner;
 }
예제 #13
0
 public void Set(IMessageProc sender, IMessageProc receiver, int messageID, float dispatchTime,
                 bool swallow, MessageExtraInfoEx extraInfo)
 {
     Set(sender, receiver, messageID, dispatchTime, swallow);
     ExtraInfo = extraInfo;
 }
예제 #14
0
 public Message(IMessageProc <Message> sender, IMessageProc <Message> receiver, int messageID, float dispatchTime,
                MessageExtraInfo extraInfo)
 {
     Set(sender, receiver, messageID, dispatchTime, extraInfo);
 }
예제 #15
0
 public void SetReceiver(IMessageProc <Message> newReceiver)
 {
     Receiver = newReceiver;
 }