Ejemplo n.º 1
0
        /// <summary>
        /// Instance message is received, display it.
        /// </summary>
        /// <param name="eventSource"></param>
        /// <param name="eventData"></param>
        void _IUccInstantMessagingSessionParticipantEvents.OnInstantMessageReceived(
            UccInstantMessagingSessionParticipant eventSource,
            UccIncomingInstantMessageEvent eventData)
        {
            string formatMessage = string.Format("{0}: \r\n {1}",
                                                 eventData.ParticipantEndpoint.Participant.Uri,
                                                 eventData.Content);

            this.mainForm.WriteIMMessage(formatMessage);
        }
Ejemplo n.º 2
0
        public void OnInstantMessageReceived(UccInstantMessagingSessionParticipant pEventSource, UccIncomingInstantMessageEvent pEventData)
        {
            IUccSession session = null;

            if (this._sessions.TryGetValue(pEventData.ParticipantEndpoint.Uri.Value.ToLower(), out session))
            {
                if (MessageReceived != null)
                {
                    MessageReceived(session as IUccInstantMessagingSession, pEventData);
                }
            }
        }
Ejemplo n.º 3
0
        void _IUccInstantMessagingSessionParticipantEvents.OnInstantMessageReceived(UccInstantMessagingSessionParticipant eventSource, UccIncomingInstantMessageEvent eventData)
        {
            if (eventData.ContentType == MessageContentType.FileData)
            {
                transfersManager.ProcessTransferMessage(eventData.Content, eventData.ParticipantEndpoint.Participant.Uri.Value);
            }
            else if (this.IncomingMessage != null)
            {
                IncomingMessage message = this.CreateIncomingMessage(
                    eventData.ParticipantEndpoint.Participant.Uri.Value,
                    eventData.ContentType,
                    eventData.Content
                    );

                this.IncomingMessage(this, new ImSessionEventArgs2(message));
            }
        }
Ejemplo n.º 4
0
 void _IUccInstantMessagingSessionParticipantEvents.OnIdle(
     UccInstantMessagingSessionParticipant eventSource,
     UccInstantMessagingComposingEvent eventData)
 {
 }
 void _IUccInstantMessagingSessionParticipantEvents.OnIdle(
                 UccInstantMessagingSessionParticipant eventSource,
                 UccInstantMessagingComposingEvent eventData)
 {
 }
 /// <summary>
 /// Instance message is received, display it.
 /// </summary>
 /// <param name="eventSource"></param>
 /// <param name="eventData"></param>
 void _IUccInstantMessagingSessionParticipantEvents.OnInstantMessageReceived(
                 UccInstantMessagingSessionParticipant eventSource,
                 UccIncomingInstantMessageEvent eventData)
 {
     string formatMessage = string.Format("{0}: \r\n {1}",
                 eventData.ParticipantEndpoint.Participant.Uri,
                 eventData.Content);
     this.mainForm.WriteIMMessage(formatMessage);
 }
Ejemplo n.º 7
0
 public void OnIdle(UccInstantMessagingSessionParticipant pEventSource, UccInstantMessagingComposingEvent pEventData)
 {
 }
Ejemplo n.º 8
0
 void _IUccInstantMessagingSessionParticipantEvents.OnIdle(UccInstantMessagingSessionParticipant eventSource, UccInstantMessagingComposingEvent eventData)
 {
     base.GetPartipantLog(eventData.ParticipantEndpoint.Participant).IsComposing = eventSource.IsComposing;
 }