public void GetChannelInformation() { TestWrapper(async(TwitchConnection connection) => { UserModel channel = await UsersServiceUnitTests.GetCurrentUser(connection); ChannelInformationModel result = await connection.NewAPI.Channels.GetChannelInformation(channel); Assert.IsNotNull(result); Assert.AreEqual(result.broadcaster_id, channel.id); }); }
/// <summary> /// Updates channel information for the specified channel information. /// </summary> /// <param name="channelInformation">The channel to update channel information for</param> /// <param name="title">The optional title to update to</param> /// <param name="gameID">The optional game ID to update to</param> /// <param name="broadcasterLanguage">The optional broadcast language to update to</param> /// <returns>Whether the update was successful or not</returns> public async Task <bool> UpdateChannelInformation(ChannelInformationModel channelInformation, string title = null, string gameID = null, string broadcasterLanguage = null) { Validator.ValidateVariable(channelInformation, "channelInformation"); return(await this.UpdateChannelInformation(channelInformation.broadcaster_id, title, gameID, broadcasterLanguage)); }