public static ChangeField WithFields(bool id                   = false,
                                      bool version              = false,
                                      bool username             = false,
                                      bool href                 = false,
                                      bool weburl               = false,
                                      bool weblink              = false,
                                      bool date                 = false,
                                      bool comment              = false,
                                      bool personal             = false,
                                      UserField userField       = null,
                                      FilesField filesField     = null,
                                      VcsRootField vcsRootField = null,
                                      VcsRootInstanceField vcsRootInstanceField             = null,
                                      ChangeVcsRootInstanceField changeVcsRootInstanceField = null)
 {
     return(new ChangeField
     {
         Id = id,
         Version = version,
         Username = username,
         Href = href,
         WebUrl = weburl,
         WebLink = weblink,
         Date = date,
         Comment = comment,
         Personal = personal,
         UserField = userField,
         FilesField = filesField,
         VcsRootField = vcsRootField,
         VcsRootInstanceField = vcsRootInstanceField,
         ChangeVcsRootInstanceField = changeVcsRootInstanceField
     });
 }
Esempio n. 2
0
 public static VcsRootsField WithFields(VcsRootField vcsRoot = null,
                                        bool count           = true)
 {
     return(new VcsRootsField
     {
         VcsRoot = vcsRoot,
         Count = count
     });
 }
 public static VcsRootEntryField WithFields(VcsRootField vcsRoot = null,
                                            bool id            = false,
                                            bool checkoutRules = false)
 {
     return(new VcsRootEntryField
     {
         VcsRoot = vcsRoot,
         Id = id,
         CheckoutRules = checkoutRules,
     });
 }