示例#1
0
        public JSONWrappers.VideoInfo ToJSON()
        {
            JSONWrappers.VideoInfo jsonInfo = new JSONWrappers.VideoInfo
            {
                Url  = VideosDataBase.ConvertPathToUrl(Path),
                Type = Type.ToString("G")
            };

            return(jsonInfo);
        }
示例#2
0
 public static VideoInfo FromJSON(JSONWrappers.VideoInfo jsonInfo)
 {
     return(new VideoInfo(VideosDataBase.ConvertUrlToPath(jsonInfo.Url)));
 }