/// <summary> /// Constructs a new <see cref="EntityType3ForwardRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="ToRecipients">A ToRecipients parameter for the OData method call.</param> /// <param name="SingleRecipient">A SingleRecipient parameter for the OData method call.</param> /// <param name="MultipleSessions">A MultipleSessions parameter for the OData method call.</param> /// <param name="SingleSession">A SingleSession parameter for the OData method call.</param> /// <param name="Comment">A Comment parameter for the OData method call.</param> public EntityType3ForwardRequestBuilder( string requestUrl, IBaseClient client, IEnumerable <Recipient> ToRecipients, Recipient SingleRecipient, IEnumerable <Microsoft.Graph2.CallRecords.Session> MultipleSessions, Microsoft.Graph2.CallRecords.Session SingleSession, string Comment) : base(requestUrl, client) { this.SetParameter("toRecipients", ToRecipients, false); this.SetParameter("singleRecipient", SingleRecipient, false); this.SetParameter("multipleSessions", MultipleSessions, false); this.SetParameter("singleSession", SingleSession, false); this.SetParameter("comment", Comment, true); }
/// <summary> /// Gets the request builder for EntityType3Forward. /// </summary> /// <returns>The <see cref="IEntityType3ForwardRequestBuilder"/>.</returns> public IEntityType3ForwardRequestBuilder Forward( IEnumerable <Recipient> ToRecipients, Recipient SingleRecipient, IEnumerable <Microsoft.Graph2.CallRecords.Session> MultipleSessions, Microsoft.Graph2.CallRecords.Session SingleSession, string Comment = null) { return(new EntityType3ForwardRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.forward"), this.Client, ToRecipients, SingleRecipient, MultipleSessions, SingleSession, Comment)); }