/// <summary> /// This will be called when an instant message received through a call. /// </summary> private void Call_InstantMessageDataReceived(object sender, VoIPEventArgs <MessageDataPackage> e) { IPhoneCall call = sender as IPhoneCall; if (call == null) { return; } MessageDataPackage data = e.Item; OnCallInstantMessageReceived(new PhoneCallInstantMessageArgs(call, data)); }
/// <summary> /// This will be called when an instant message received through a phone line. /// </summary> private void Line_OutofDialogInstantMessageReceived(object sender, VoIPEventArgs <MessageDataPackage> e) { IPhoneLine line = sender as IPhoneLine; if (line == null) { return; } MessageDataPackage data = e.Item; AddInstantMessage(data.Originator, data.Data); }
public PhoneLineInstantMessageArgs(IPhoneLine phoneLine, MessageDataPackage message) { PhoneLine = phoneLine; Message = message; }
public PhoneCallInstantMessageArgs(IPhoneCall phoneCall, MessageDataPackage message) { PhoneCall = phoneCall; Message = message; }