All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mServer.crawler.sender.wdr.WdrVideoDto Maven / Gradle / Ivy

There is a newer version: 3.1.64
Show newest version
package mServer.crawler.sender.wdr;

import java.util.HashMap;
import java.util.Map;

import mServer.crawler.sender.newsearch.Qualities;

public class WdrVideoDto {
    private final Map videoUrls;
    private String subtitleUrl = "";
    
    public WdrVideoDto()
    {
        videoUrls=new HashMap<>();
    }
    
    public void addVideo(Qualities aQualitie, String aUrl)
    {
        videoUrls.put(aQualitie,aUrl);
    }
    
    public Map getVideoUrls()
    {
        return videoUrls;
    }
    
    public String getUrl(Qualities aQualitie)
    {
        String url = videoUrls.get(aQualitie);
        if(url != null) {
            return url;
        }
        
        return "";
    }
    
    public void setSubtitleUrl(String aUrl) {
        this.subtitleUrl = aUrl;
    }
    
    public String getSubtitleUrl() {
        return subtitleUrl;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy