public BookingRequest( string identifier, SupportedMaintenanceServices maintenanceServiceNeeded, string descriptionOfRequiredService, string deliveryLocation, DateTime timeOfServiceDelivery, ConversationChannelData conversationChannelData, SupportedLanguage userPreferredLanguage) : this(maintenanceServiceNeeded, descriptionOfRequiredService, deliveryLocation, timeOfServiceDelivery, conversationChannelData, userPreferredLanguage) { this.SetRequestId(identifier); }
public BookingRequest( SupportedMaintenanceServices maintenanceServiceNeeded, string descriptionOfRequiredService, string deliveryLocation, DateTime timeOfServiceDelivery, ConversationChannelData conversationChannelData, SupportedLanguage userPreferredLanguage) { this.UserPreferredLanguage = userPreferredLanguage; this.ConversationChannelData = conversationChannelData ?? throw new ArgumentNullException(nameof(conversationChannelData)); this.DeliveryLocation = deliveryLocation ?? throw new ArgumentNullException(nameof(deliveryLocation)); this.MaintenanceServiceNeeded = maintenanceServiceNeeded; this.TimeOfServiceDelivery = timeOfServiceDelivery; this.DescriptionOfRequiredService = descriptionOfRequiredService ?? throw new ArgumentNullException(nameof(descriptionOfRequiredService)); }