public void RemoveFromBuddyList() { ExTraceGlobals.OehCallTracer.TraceDebug((long)this.GetHashCode(), "InstantMessageEventHandler.RemoveFromBuddyList"); this.ThowIfInvalidProvider("RemoveFromBuddyList"); string text = (string)base.GetParameter("lDn"); string text2 = (string)base.GetParameter("bdyAddr"); if (text != null) { text2 = this.GetSipUriFromLegacyDn(text, text2); this.ThrowIfSipInvalid(text2, false); } try { InstantMessageBuddy instantMessageBuddy = InstantMessageBuddy.Create((string)base.GetParameter("sGid"), text2, string.Empty); if (base.IsParameterSet("iType")) { instantMessageBuddy.AddressType = (int)base.GetParameter("iType"); } base.UserContext.InstantMessageManager.Provider.RemoveBuddy(instantMessageBuddy); if (text != null) { this.Writer.Write(text2); } } catch (ArgumentException innerException) { throw new OwaInvalidRequestException("The SipUri is not valid. SipUri:" + text2, innerException); } }
public AddImBuddy(CallContext callContext, InstantMessageBuddy instantMessageBuddy, InstantMessageGroup instantMessageGroup) : base(callContext) { WcfServiceCommandBase.ThrowIfNull(instantMessageBuddy, "instantMessageBuddy", "AddImBuddy"); WcfServiceCommandBase.ThrowIfNull(instantMessageGroup, "instantMessageGroup", "AddImBuddy"); this.instantMessageBuddy = instantMessageBuddy; this.instantMessageGroup = instantMessageGroup; }
public RemoveBuddy(CallContext callContext, InstantMessageBuddy instantMessageBuddy, ItemId personId) : base(callContext) { WcfServiceCommandBase.ThrowIfNull(instantMessageBuddy, "instantMessageBuddy", "RemoveBuddy"); WcfServiceCommandBase.ThrowIfNull(personId, "personId", "RemoveBuddy"); this.instantMessageBuddy = instantMessageBuddy; this.personId = IdConverter.EwsIdToPersonId(personId.Id); }
public void BlockBuddy() { ExTraceGlobals.OehCallTracer.TraceDebug((long)this.GetHashCode(), "InstantMessageEventHandler.BlockBuddy"); this.ThowIfInvalidProvider("BlockBuddy"); InstantMessageBuddy instantMessageBuddy = InstantMessageBuddy.Create(string.Empty, (string)base.GetParameter("bdyAddr"), string.Empty); if (base.IsParameterSet("iType")) { instantMessageBuddy.AddressType = (int)base.GetParameter("iType"); } base.UserContext.InstantMessageManager.Provider.BlockBuddy(instantMessageBuddy); }
public void AcceptBuddy() { ExTraceGlobals.OehCallTracer.TraceDebug((long)this.GetHashCode(), "InstantMessageEventHandler.AcceptBuddy"); this.ThowIfInvalidProvider("AcceptBuddy"); InstantMessageBuddy instantMessageBuddy = InstantMessageBuddy.Create(string.Empty, InstantMessageUtilities.ToSipFormat((string)base.GetParameter("bdyAddr")), string.Empty); InstantMessageGroup group = InstantMessageGroup.Create((string)base.GetParameter("grpId"), (string)base.GetParameter("grpNme"), InstantMessageGroupType.Standard); if (base.IsParameterSet("iType")) { instantMessageBuddy.AddressType = (int)base.GetParameter("iType"); } base.UserContext.InstantMessageManager.Provider.AcceptBuddy(instantMessageBuddy, group); }
public void CopyBuddy() { ExTraceGlobals.OehCallTracer.TraceDebug((long)this.GetHashCode(), "InstantMessageEventHandler.CopyBuddy"); this.ThowIfInvalidProvider("CopyBuddy"); InstantMessageGroup group = InstantMessageGroup.Create((string)base.GetParameter("grpId"), (string)base.GetParameter("grpNme")); InstantMessageBuddy instantMessageBuddy = InstantMessageBuddy.Create((string)base.GetParameter("sGid"), (string)base.GetParameter("bdyAddr"), (string)base.GetParameter("dName")); if (base.IsParameterSet("tag")) { instantMessageBuddy.Tagged = (bool)base.GetParameter("tag"); } instantMessageBuddy.AddGroups((string[])base.GetParameter("grpIds")); base.UserContext.InstantMessageManager.Provider.CopyBuddy(group, instantMessageBuddy); }
// Token: 0x060015B5 RID: 5557 RVA: 0x0004D584 File Offset: 0x0004B784 internal AddFavorite(IXSOFactory xsoFactory, IMailboxSession mailboxSession, InstantMessageBuddy imBuddy) { if (xsoFactory == null) { throw new ArgumentNullException("xsoFactory"); } if (mailboxSession == null) { throw new ArgumentNullException("mailboxSession"); } if (imBuddy == null) { throw new ArgumentNullException("imBuddy"); } if (imBuddy.EmailAddress == null && string.IsNullOrEmpty(imBuddy.SipUri)) { throw new ArgumentException("Either EmailAddress or SipUri is mandatory for imBuddy"); } this.xso = xsoFactory; this.session = mailboxSession; this.utilities = new UnifiedContactStoreUtilities(this.session, this.xso); this.buddy = imBuddy; }
public void AddBuddy() { ExTraceGlobals.OehCallTracer.TraceDebug((long)this.GetHashCode(), "InstantMessageEventHandler.AddBuddy"); this.ThowIfInvalidProvider("AddBuddy"); string text = (string)base.GetParameter("lDn"); string text2 = (string)base.GetParameter("bdyAddr"); string text3 = string.Empty; if (base.IsParameterSet("msg")) { text3 = (string)base.GetParameter("msg"); if (text3.Length > 300) { text3 = text3.Substring(0, 300); } } if (text != null) { text2 = this.GetSipUriFromLegacyDn(text, text2); this.ThrowIfSipInvalid(text2, false); } try { InstantMessageBuddy instantMessageBuddy = InstantMessageBuddy.Create((string)base.GetParameter("ID"), text2, (string)base.GetParameter("dName")); instantMessageBuddy.RequestMessage = text3; InstantMessageGroup group = InstantMessageGroup.Create((string)base.GetParameter("grpId"), (string)base.GetParameter("grpNme")); base.UserContext.InstantMessageManager.Provider.AddBuddy(instantMessageBuddy, group); if (text != null) { this.Writer.Write(text2); } } catch (ArgumentException innerException) { throw new OwaInvalidRequestException("The SipUri is not valid. SipUri:" + text2, innerException); } }
// Token: 0x060015C8 RID: 5576 RVA: 0x0004E2C3 File Offset: 0x0004C4C3 public AddFavoriteCommand(CallContext callContext, InstantMessageBuddy instantMessageBuddy) : base(callContext) { WcfServiceCommandBase.ThrowIfNull(instantMessageBuddy, "instantMessageBuddy", "AddFavoriteCommand"); this.instantMessageBuddy = instantMessageBuddy; }
public DeclineBuddy(CallContext callContext, InstantMessageBuddy instantMessageBuddy) : base(callContext) { WcfServiceCommandBase.ThrowIfNull(instantMessageBuddy, "instantMessageBuddy", "DeclineBuddy"); this.instantMessageBuddy = instantMessageBuddy; }