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); }
public static Drupal.Catalogue With_Name(this Drupal.Catalogue catalogue, string catalogueName) { catalogue.Name = new List <FieldString> { new FieldString { Value = catalogueName } }; return(catalogue); }
public static Drupal.Catalogue With_Type(this Drupal.Catalogue catalogue, string catalogueType) { catalogue.Type = new List <FieldType> { new FieldType { Label = catalogueType } }; return(catalogue); }
public static Drupal.Catalogue With_Id(this Drupal.Catalogue catalogue, int catalogueId) { catalogue.Id = new List <FieldInt> { new FieldInt { Value = catalogueId } }; return(catalogue); }