// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Profiles {
    public var topClips: TopClips {
        TopClips(path: path + "/top_clips")
    }

    public struct TopClips {
        /// Path: `/api/profiles/top_clips`
        public let path: String

        /// Get User Top Clips
        public func get(size: Int? = nil) -> Request<GenAPI.TopUserClipsResponse> {
            Request(path: path, method: "GET", query: makeGetQuery(size), id: "studio_api_bots_profiles_api_get_user_top_clips")
        }

        private func makeGetQuery(_ size: Int?) -> [(String, String?)] {
            let encoder = URLQueryEncoder()
            encoder.encode(size, forKey: "size")
            return encoder.items
        }
    }
}
