package com.nisemoe.nise.osu

fun OsuApiModels.Beatmap.toScoreBeatmap(): OsuApiModels.ScoreBeatmap =
    OsuApiModels.ScoreBeatmap(
        id = this.id,
        checksum = this.checksum,
        difficulty_rating = this.difficulty_rating,
        version = this.version,
        max_combo = this.max_combo,
        total_length = this.total_length,
        bpm = this.bpm,
        accuracy = this.accuracy,
        ar = this.ar,
        cs = this.cs,
        drain = this.drain,
        count_circles = this.count_circles,
        count_sliders = this.count_sliders,
        count_spinners = this.count_spinners,
    )

fun OsuApiModels.BeatmapSet.toScoreBeatmapSet(): OsuApiModels.ScoreBeatmapset =
    OsuApiModels.ScoreBeatmapset(
        id = this.id,
        title = this.title,
        artist = this.artist,
        creator = this.creator,
        source = this.source,
    )