コード例 #1
0
 public static View_WS view(this View_V3 viewV3, Library_WS library, Folder_WS folder)
 {
     var view = new View_WS()
                     {
                         Name 	= viewV3.caption,
                         Id   	= viewV3.viewId,
                         Library = library,
                         Folder  = folder
                     };
     foreach(var guid in viewV3.guidanceItems)
         view.Articles.Add(guid.article(library, view));
     return view;
 }
コード例 #2
0
 public static View_WS add_View(this Library_WS library, Folder_WS folder, string name)
 {
     var folderId = (folder.notNull())
                         ? folder.Id
                         : Guid.Empty;
         var view = new View();
         view.library = library.Id.str();
         view.caption = name;
         view.id = Guid.Empty.str();
     var newView = library.tmWebServices.webServices.CreateView(folderId,view);
     return newView.view(library, folder);
 }
コード例 #3
0
 public static Folder_WS folder(this Folder_V3 folderV3 , Library_WS library)
 {
     var folder = new Folder_WS()
                         {
                             Library = library,
                             Name 	= folderV3.name,
                             Id 		= folderV3.folderId
                         };
     foreach(var view in folderV3.views)
         folder.Views.Add(library.tmWebServices.webServices.GetViewById(view.viewId.str())
                                                           .view(library, folder));
     return folder;
 }
コード例 #4
0
 public static Folder_WS add_Folder(this Library_WS library, Folder_WS parentFolder, string name)
 {
     var parentId = (parentFolder.notNull())
                         ? parentFolder.Id
                         : Guid.Empty;
     var newFolder = library.tmWebServices.webServices.CreateFolder(library.Id, parentId, name);
     return newFolder.folder(library);
 }