public async Task UpdateV5Channel(V5API.Channel.ChannelModel channel, string status = null, GameModel game = null) { ChannelUpdateModel update = new ChannelUpdateModel() { status = (!string.IsNullOrEmpty(status)) ? status : null, game = (game != null) ? game.name : null }; await AsyncRunner.RunAsync(this.Connection.V5API.Channels.UpdateChannel(channel, update)); }
public async Task <V5API.Streams.StreamModel> GetV5LiveStream(V5API.Channel.ChannelModel channel) { return(await AsyncRunner.RunAsync(this.Connection.V5API.Streams.GetChannelStream(channel))); }
public async Task <long> GetSubscriberCountV5(V5API.Channel.ChannelModel channel) { return(await AsyncRunner.RunAsync(this.Connection.V5API.Channels.GetChannelSubscribersCount(channel))); }
public async Task <IEnumerable <V5API.Users.UserSubscriptionModel> > GetSubscribersV5(V5API.Channel.ChannelModel channel, int maxResults = 1) { return(await this.RunAsync(this.Connection.V5API.Channels.GetChannelSubscribers(channel, maxResults))); }
public async Task <V5API.Users.UserSubscriptionModel> CheckIfSubscribedV5(V5API.Channel.ChannelModel channel, V5API.Users.UserModel userToCheck) { return(await AsyncRunner.RunAsync(this.Connection.V5API.Channels.GetChannelUserSubscription(channel, userToCheck))); }
public async Task <IEnumerable <V5API.Users.UserModel> > GetV5APIChannelEditors(V5API.Channel.ChannelModel channel) { return(await this.RunAsync(this.Connection.V5API.Channels.GetChannelEditors(channel))); }