/// <summary> /// Pages another <see cref="MessengerContact"/> /// </summary> /// <param name="contact">The contact to be paged to.</param> public static void Page(this MessengerContact contact) { if (contact.CanPage) { Messenger.Page(contact._contact); } else { throw new Exception("This contact can't be paged."); } }
/// <summary> /// Views the profile of another <see cref="MessengerContact"/>, /// may cause crashes. /// </summary> public static void ViewProfile(this MessengerContact contact) => Messenger.ViewProfile(contact);
public static void StartVoiceCall(MessengerContact contact) => Messenger.StartVoice(contact._contact);
public static void StartVideoCall(MessengerContact contact) => Messenger.StartVideo(contact._contact);
/// <summary> /// Opens a new instant message window. /// (INFO) When called the window gets focused, so it is recommended to keep the conversation window object. /// </summary> public static MessengerConversationWindow OpenIMWindow(this MessengerContact contact) => (MessengerConversationWindow)Messenger.InstantMessage(contact._contact);