public JSONWrappers.VideoInfo ToJSON() { JSONWrappers.VideoInfo jsonInfo = new JSONWrappers.VideoInfo { Url = VideosDataBase.ConvertPathToUrl(Path), Type = Type.ToString("G") }; return(jsonInfo); }
public static VideoInfo FromJSON(JSONWrappers.VideoInfo jsonInfo) { return(new VideoInfo(VideosDataBase.ConvertUrlToPath(jsonInfo.Url))); }