/// <summary> /// Constructs a new <see cref="ChatSendActivityNotificationRequestBuilder"/>. /// </summary> /// <param name="requestUrl">The URL for the request.</param> /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param> /// <param name="topic">A topic parameter for the OData method call.</param> /// <param name="activityType">A activityType parameter for the OData method call.</param> /// <param name="chainId">A chainId parameter for the OData method call.</param> /// <param name="previewText">A previewText 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 ChatSendActivityNotificationRequestBuilder( string requestUrl, IBaseClient client, TeamworkActivityTopic topic, string activityType, Int64?chainId, ItemBody previewText, IEnumerable <KeyValuePair> templateParameters, TeamworkNotificationRecipient recipient) : base(requestUrl, client) { this.SetParameter("topic", topic, true); this.SetParameter("activityType", activityType, true); this.SetParameter("chainId", chainId, true); this.SetParameter("previewText", previewText, true); this.SetParameter("templateParameters", templateParameters, true); this.SetParameter("recipient", recipient, true); }
/// <summary> /// Gets the request builder for ChatSendActivityNotification. /// </summary> /// <returns>The <see cref="IChatSendActivityNotificationRequestBuilder"/>.</returns> public IChatSendActivityNotificationRequestBuilder SendActivityNotification( TeamworkActivityTopic topic = null, string activityType = null, Int64?chainId = null, ItemBody previewText = null, IEnumerable <KeyValuePair> templateParameters = null, TeamworkNotificationRecipient recipient = null) { return(new ChatSendActivityNotificationRequestBuilder( this.AppendSegmentToRequestUrl("microsoft.graph.sendActivityNotification"), this.Client, topic, activityType, chainId, previewText, templateParameters, recipient)); }