Example #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
            });
        }
Example #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
            });
        }