示例#1
0
        public static RootFolder ToModel(this RootFolderResource resource)
        {
            if (resource == null)
            {
                return(null);
            }

            return(new RootFolder
            {
                Id = resource.Id,

                Path = resource.Path,
                //FreeSpace
                //UnmappedFolders
            });
        }
示例#2
0
        public static RootFolder ToModel(this RootFolderResource resource)
        {
            if (resource == null)
            {
                return(null);
            }

            return(new RootFolder
            {
                Id = resource.Id,
                Name = resource.Name,
                Path = resource.Path,

                DefaultMetadataProfileId = resource.DefaultMetadataProfileId,
                DefaultQualityProfileId = resource.DefaultQualityProfileId,
                DefaultMonitorOption = resource.DefaultMonitorOption,
                DefaultTags = resource.DefaultTags
            });
        }