public void CreateClip()
        {
            TestWrapper(async(MixerConnection connection) =>
            {
                BroadcastModel broadcast = await connection.Broadcasts.GetCurrentBroadcast();

                Assert.IsNotNull(broadcast);
                Assert.IsTrue(broadcast.id != Guid.Empty);

                bool canClipBeMade = await connection.Clips.CanClipBeMade(broadcast);

                Assert.IsTrue(canClipBeMade);

                ClipRequestModel clipRequest = new ClipRequestModel()
                {
                    broadcastId           = broadcast.id.ToString(),
                    highlightTitle        = "Test Clip " + DateTimeOffset.Now.ToString(),
                    clipDurationInSeconds = 30
                };

                ClipModel createdClip = await connection.Clips.CreateClip(clipRequest);

                Assert.IsNotNull(createdClip);
            });
        }
        /// <summary>
        /// Creates a clip with the specified request data.
        /// </summary>
        /// <param name="clipRequest">The request data for the clip</param>
        /// <returns>Whether the clip request was processed successfully</returns>
        public async Task <bool> CreateClip(ClipRequestModel clipRequest)
        {
            Validator.ValidateVariable(clipRequest, "clipRequest");

            HttpResponseMessage response = await this.PostAsync("clips/create", this.CreateContentFromObject(clipRequest));

            return(response.IsSuccessStatusCode);
        }
        /// <summary>
        /// Creates a clip with the specified request data.
        /// </summary>
        /// <param name="clipRequest">The request data for the clip</param>
        /// <returns>The clip information if the request was processed successfully</returns>
        public async Task <ClipModel> CreateClip(ClipRequestModel clipRequest)
        {
            Validator.ValidateVariable(clipRequest, "clipRequest");

            return(await this.PostAsync <ClipModel>("clips/create", this.CreateContentFromObject(clipRequest)));
        }
 public async Task <ClipModel> CreateClip(ClipRequestModel clipRequest)
 {
     return(await this.RunAsync(this.Connection.Clips.CreateClip(clipRequest)));
 }