internal new static RestChannelSubscription Create(BaseTwitchClient client, Model model)
        {
            var entity = new RestChannelSubscription(client, model.Id);

            entity.Update(model);
            return(entity);
        }
예제 #2
0
        //// Heartbeat
        //public static async Task CreateHeartbeatAsync(BaseTwitchClient client, ulong userId, RequestOptions options)
        //{
        //    var model = await client.ApiClient.CreateHeartbeatAsync(userId, options).ConfigureAwait(false);
        //}

        //public static async Task<string> GetHeartbeatAsync(BaseTwitchClient client, ulong userId, RequestOptions options)
        //{
        //    throw new NotImplementedException();
        //}

        //public static async Task DeleteHeartbeatAsync(BaseTwitchClient client, ulong userId, RequestOptions options)
        //{
        //    throw new NotImplementedException();
        //}

        // Subscriptions
        public static async Task <RestChannelSubscription> GetSubscrptionAsync(BaseTwitchClient client, ulong userId, ulong channelId, RequestOptions options)
        {
            var model = await client.ApiClient.GetUserSubscriptionAsync(userId, channelId, options).ConfigureAwait(false);

            return(RestChannelSubscription.Create(client, model));
        }