Example #1
0
 public Group(string name, string slug, string metaDescription, string phoneNumber, string email, string website,
              string twitter, string facebook, string address, string description, string imageUrl,
              string thumbnailImageUrl, List <GroupCategory> categoriesReference, List <GroupSubCategory> subCategories, List <Crumb> breadcrumbs,
              MapPosition mapPosition, bool volunteering, GroupAdministrators groupAdministrators,
              DateTime?dateHiddenFrom, DateTime?dateHiddenTo, string status, List <string> cost, string costText, string abilityLevel, string volunteeringText,
              Organisation organisation, bool donations, string accessibleTransportLink, List <GroupBranding> groupBranding, List <string> tags, string additionalInformation, List <Document> additionalDocuments,
              DateTime?dateLastModified, List <string> suitableFor, List <string> ageRange, string donationsText, string donationsUrl, IEnumerable <Alert> alerts)
 {
     Name                    = name;
     Slug                    = slug;
     MetaDescription         = metaDescription;
     PhoneNumber             = phoneNumber;
     Email                   = email;
     Website                 = website;
     Twitter                 = twitter;
     Facebook                = facebook;
     Address                 = address;
     Description             = description;
     ImageUrl                = imageUrl;
     ThumbnailImageUrl       = thumbnailImageUrl;
     CategoriesReference     = categoriesReference;
     SubCategories           = subCategories;
     Breadcrumbs             = breadcrumbs;
     MapPosition             = mapPosition;
     Volunteering            = volunteering;
     Donations               = donations;
     GroupAdministrators     = groupAdministrators;
     DateHiddenFrom          = dateHiddenFrom;
     DateHiddenTo            = dateHiddenTo;
     Status                  = status;
     Cost                    = cost;
     CostText                = costText;
     AbilityLevel            = abilityLevel;
     VolunteeringText        = volunteeringText;
     Organisation            = organisation;
     AccessibleTransportLink = accessibleTransportLink;
     GroupBranding           = groupBranding;
     Tags                    = tags.Select(s => s.ToLower()).ToList();
     AdditionalInformation   = additionalInformation;
     AdditionalDocuments     = additionalDocuments;
     DateLastModified        = dateLastModified;
     SuitableFor             = suitableFor;
     AgeRange                = ageRange;
     DonationsText           = donationsText;
     DonationsUrl            = donationsUrl;
     Alerts                  = alerts;
 }
Example #2
0
 public Event(string title, string slug, string teaser, string imageUrl, string description, string fee,
              string location, string submittedBy, DateTime eventDate, string startTime, string endTime,
              int occurences, EventFrequency frequency, List <Crumb> breadcrumbs, string thumbnailImageUrl,
              List <Document> documents, List <string> categories, MapPosition mapPosition, bool featured,
              string bookingInformation, DateTime?updatedAt, List <string> tags, Group group, List <Alert> alerts, List <EventCategory> eventCategories, bool?free, bool?paid, string accessibleTransportLink, string metaDescription)
 {
     Title                   = title;
     Slug                    = slug;
     Teaser                  = teaser;
     Description             = description;
     Fee                     = fee;
     Location                = location;
     SubmittedBy             = submittedBy;
     EventDate               = eventDate;
     StartTime               = startTime;
     EndTime                 = endTime;
     Occurences              = occurences;
     EventFrequency          = frequency;
     Breadcrumbs             = breadcrumbs;
     ThumbnailImageUrl       = thumbnailImageUrl;
     ImageUrl                = imageUrl;
     Documents               = documents;
     Categories              = categories.Select(s => s).ToList();
     MapPosition             = mapPosition;
     BookingInformation      = bookingInformation;
     Featured                = featured;
     UpdatedAt               = updatedAt;
     Tags                    = tags.Select(s => s.ToLower()).ToList();
     Group                   = group;
     Alerts                  = alerts;
     EventCategories         = eventCategories;
     Paid                    = paid;
     Free                    = free;
     Coord                   = MapPosition == null ? null : new GeoCoordinate(MapPosition.Lat, MapPosition.Lon);
     AccessibleTransportLink = accessibleTransportLink;
     MetaDescription         = metaDescription;
 }