package io.delphiplatform.api.v3.model.mapper;

import com.sonymusic.delphi.etl.apps.proto.Youtube.YoutubeEngagement;

import fr.xebia.extras.selma.IgnoreMissing;
import fr.xebia.extras.selma.Mapper;
import io.delphiplatform.api.v3.model.video.YouTubeMetrics;

@Mapper(withIgnoreMissing = IgnoreMissing.ALL, withCustom = JsonNullableMappings.class,
    withIgnoreFields = {
        "ageBandViewsPercentages",
        "genderViewsPercentages",
        "trafficSourceTypes",
        "deviceType",
        "operatingSystem"
    })
public interface YouTubeMetricsMapper {

    YouTubeMetrics fillMetrics(YouTubeMetrics target, YoutubeEngagement sourceEngagement);

}
