コード例 #1
0
        public static Drupal.Catalogue With_LastUpdateDateTime(this Drupal.Catalogue catalogue, DateTime lastUpdateDateTime)
        {
            catalogue.LastUpdated = new List <FieldLong> {
                new FieldLong {
                    Value = ((DateTimeOffset)lastUpdateDateTime).ToUnixTimeSeconds()
                }
            };

            return(catalogue);
        }
コード例 #2
0
        public static Drupal.Catalogue With_Name(this Drupal.Catalogue catalogue, string catalogueName)
        {
            catalogue.Name = new List <FieldString> {
                new FieldString {
                    Value = catalogueName
                }
            };

            return(catalogue);
        }
コード例 #3
0
        public static Drupal.Catalogue With_Type(this Drupal.Catalogue catalogue, string catalogueType)
        {
            catalogue.Type = new List <FieldType> {
                new FieldType {
                    Label = catalogueType
                }
            };

            return(catalogue);
        }
コード例 #4
0
        public static Drupal.Catalogue With_Id(this Drupal.Catalogue catalogue, int catalogueId)
        {
            catalogue.Id = new List <FieldInt> {
                new FieldInt {
                    Value = catalogueId
                }
            };

            return(catalogue);
        }