/// <summary> /// Constructs a new <see cref="TeamworkGenerateActivityNotificationRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="about">A about parameter for the OData method call.</param> /// <param name="activityType">A activityType parameter for the OData method call.</param> /// <param name="aggregationId">A aggregationId parameter for the OData method call.</param> /// <param name="onClickWebUrl">A onClickWebUrl parameter for the OData method call.</param> /// <param name="previewText">A previewText parameter for the OData method call.</param> /// <param name="teamsAppId">A teamsAppId parameter for the OData method call.</param> /// <param name="templateParameters">A templateParameters parameter for the OData method call.</param> /// <param name="recipient">A recipient parameter for the OData method call.</param> public TeamworkGenerateActivityNotificationRequestBuilder( string requestUrl, IBaseClient client, string about, string activityType, Int64?aggregationId, string onClickWebUrl, string previewText, string teamsAppId, IEnumerable <KeyValuePair> templateParameters, TeamworkNotificationAudience recipient) : base(requestUrl, client) { this.SetParameter("about", about, true); this.SetParameter("activityType", activityType, true); this.SetParameter("aggregationId", aggregationId, true); this.SetParameter("onClickWebUrl", onClickWebUrl, true); this.SetParameter("previewText", previewText, true); this.SetParameter("teamsAppId", teamsAppId, true); this.SetParameter("templateParameters", templateParameters, true); this.SetParameter("recipient", recipient, true); }
/// <summary> /// Gets the request builder for TeamworkGenerateActivityNotification. /// </summary> /// <returns>The <see cref="ITeamworkGenerateActivityNotificationRequestBuilder"/>.</returns> public ITeamworkGenerateActivityNotificationRequestBuilder GenerateActivityNotification( string about = null, string activityType = null, Int64?aggregationId = null, string onClickWebUrl = null, string previewText = null, string teamsAppId = null, IEnumerable <KeyValuePair> templateParameters = null, TeamworkNotificationAudience recipient = null) { return(new TeamworkGenerateActivityNotificationRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.generateActivityNotification"), this.Client, about, activityType, aggregationId, onClickWebUrl, previewText, teamsAppId, templateParameters, recipient)); }