Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Appointment"/> class.
 /// </summary>
 /// <param name="moduleId">The module id.</param>
 /// <param name="appointmentTypeId">The appointment type id.</param>
 /// <param name="title">The title of the event.</param>
 /// <param name="description">The event description.</param>
 /// <param name="notes">The notes.</param>
 /// <param name="address1">The address1.</param>
 /// <param name="address2">The address2.</param>
 /// <param name="city">The city of the appointment.</param>
 /// <param name="regionId">The region id.</param>
 /// <param name="postalCode">The postal code.</param>
 /// <param name="phone">The phone number.</param>
 /// <param name="additionalAddressInfo">The additional address info.</param>
 /// <param name="contactStreet">The contact street.</param>
 /// <param name="contactPhone">The contact phone.</param>
 /// <param name="requestorName">Name of the requestor.</param>
 /// <param name="requestorPhoneType">Type of the requestor phone.</param>
 /// <param name="requestorPhone">The requestor phone.</param>
 /// <param name="requestorEmail">The requestor email.</param>
 /// <param name="requestorAltPhoneType">Type of the requestor alt phone.</param>
 /// <param name="requestorAltPhone">The requestor alt phone.</param>
 /// <param name="start">The start of the appointment.</param>
 /// <param name="end">The end of the appointment.</param>
 /// <param name="timeZoneOffset">The time zone offset.</param>
 /// <param name="numberOfParticipants">The number of participants.</param>
 /// <param name="participantGender">The participant gender.</param>
 /// <param name="isPresenterSpecial">The participant flag.</param>
 /// <param name="participantInstructions">The participant instructions.</param>
 /// <param name="numberOfSpecialParticipants">The number of special participants.</param>
 /// <param name="custom1">The first custom field.</param>
 /// <param name="custom2">The second custom field.</param>
 /// <param name="custom3">The third custom field.</param>
 /// <param name="custom4">The fourth custom field.</param>
 /// <param name="custom5">The fifth custom field.</param>
 /// <param name="custom6">The sixth custom field.</param>
 /// <param name="custom7">The seventh custom field.</param>
 /// <param name="custom8">The eighth custom field.</param>
 /// <param name="custom9">The ninth custom field.</param>
 /// <param name="custom10">The tenth custom field.</param>
 /// <param name="isAccepted"><c>null</c>if the <see cref="Appointment"/> has not bee accepted or declined yet,
 /// otherwise <c>true</c> for an accepted appointment, or <c>false</c> for a declined appointment.</param>
 private Appointment(
     int moduleId,
     int appointmentTypeId,
     string title,
     string description,
     string notes,
     string address1,
     string address2,
     string city,
     int?regionId,
     string postalCode,
     string phone,
     string additionalAddressInfo,
     string contactStreet,
     string contactPhone,
     string requestorName,
     PhoneType requestorPhoneType,
     string requestorPhone,
     string requestorEmail,
     PhoneType requestorAltPhoneType,
     string requestorAltPhone,
     DateTime start,
     DateTime end,
     TimeSpan timeZoneOffset,
     int numberOfParticipants,
     GroupGender participantGender,
     bool isPresenterSpecial,
     string participantInstructions,
     int numberOfSpecialParticipants,
     string custom1,
     string custom2,
     string custom3,
     string custom4,
     string custom5,
     string custom6,
     string custom7,
     string custom8,
     string custom9,
     string custom10,
     bool?isAccepted)
     : this()
 {
     this.ModuleId          = moduleId;
     this.AppointmentTypeId = appointmentTypeId;
     this.Title             = title;
     this.Description       = description;
     this.Notes             = notes;
     this.Address1          = address1;
     this.Address2          = address2;
     this.City                        = city;
     this.RegionId                    = regionId;
     this.PostalCode                  = postalCode;
     this.Phone                       = phone;
     this.AdditionalAddressInfo       = additionalAddressInfo;
     this.ContactStreet               = contactStreet;
     this.ContactPhone                = contactPhone;
     this.RequestorName               = requestorName;
     this.RequestorPhoneType          = requestorPhoneType;
     this.RequestorPhone              = requestorPhone;
     this.RequestorEmail              = requestorEmail;
     this.RequestorAltPhoneType       = requestorAltPhoneType;
     this.RequestorAltPhone           = requestorAltPhone;
     this.StartDateTime               = start;
     this.EndDateTime                 = end;
     this.NumberOfParticipants        = numberOfParticipants;
     this.ParticipantGender           = participantGender;
     this.IsPresenterSpecial          = isPresenterSpecial;
     this.TimeZoneOffset              = timeZoneOffset;
     this.ParticipantInstructions     = participantInstructions;
     this.NumberOfSpecialParticipants = numberOfSpecialParticipants;
     this.Custom1                     = custom1;
     this.Custom2                     = custom2;
     this.Custom3                     = custom3;
     this.Custom4                     = custom4;
     this.Custom5                     = custom5;
     this.Custom6                     = custom6;
     this.Custom7                     = custom7;
     this.Custom8                     = custom8;
     this.Custom9                     = custom9;
     this.Custom10                    = custom10;
     this.IsAccepted                  = isAccepted;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Appointment"/> class.
 /// </summary>
 /// <param name="moduleId">The module id.</param>
 /// <param name="appointmentTypeId">The appointment type id.</param>
 /// <param name="title">The title of the event.</param>
 /// <param name="description">The event description.</param>
 /// <param name="notes">The notes.</param>
 /// <param name="address1">The address1.</param>
 /// <param name="address2">The address2.</param>
 /// <param name="city">The city of the appointment.</param>
 /// <param name="regionId">The region id.</param>
 /// <param name="postalCode">The postal code.</param>
 /// <param name="phone">The phone number.</param>
 /// <param name="additionalAddressInfo">The additional address info.</param>
 /// <param name="contactStreet">The contact street.</param>
 /// <param name="contactPhone">The contact phone.</param>
 /// <param name="requestorName">Name of the requestor.</param>
 /// <param name="requestorPhoneType">Type of the requestor phone.</param>
 /// <param name="requestorPhone">The requestor phone.</param>
 /// <param name="requestorEmail">The requestor email.</param>
 /// <param name="requestorAltPhoneType">Type of the requestor alt phone.</param>
 /// <param name="requestorAltPhone">The requestor alt phone.</param>
 /// <param name="start">The start of the appointment.</param>
 /// <param name="end">The end of the appointment.</param>
 /// <param name="timeZoneOffset">The time zone offset.</param>
 /// <param name="numberOfParticipants">The number of participants.</param>
 /// <param name="participantGender">The participant gender.</param>
 /// <param name="isPresenterSpecial">The participant flag.</param>
 /// <param name="participantInstructions">The participant instructions.</param>
 /// <param name="numberOfSpecialParticipants">The number of special participants.</param>
 /// <param name="custom1">The first custom field.</param>
 /// <param name="custom2">The second custom field.</param>
 /// <param name="custom3">The third custom field.</param>
 /// <param name="custom4">The fourth custom field.</param>
 /// <param name="custom5">The fifth custom field.</param>
 /// <param name="custom6">The sixth custom field.</param>
 /// <param name="custom7">The seventh custom field.</param>
 /// <param name="custom8">The eighth custom field.</param>
 /// <param name="custom9">The ninth custom field.</param>
 /// <param name="custom10">The tenth custom field.</param>
 /// <param name="isAccepted"><c>null</c>if the <see cref="Appointment"/> has not bee accepted or declined yet,
 /// otherwise <c>true</c> for an accepted appointment, or <c>false</c> for a declined appointment.</param>
 private Appointment(
     int moduleId,
     int appointmentTypeId,
     string title,
     string description,
     string notes,
     string address1,
     string address2,
     string city,
     int? regionId,
     string postalCode,
     string phone,
     string additionalAddressInfo,
     string contactStreet,
     string contactPhone,
     string requestorName,
     PhoneType requestorPhoneType,
     string requestorPhone,
     string requestorEmail,
     PhoneType requestorAltPhoneType,
     string requestorAltPhone,
     DateTime start,
     DateTime end,
     TimeSpan timeZoneOffset,
     int numberOfParticipants,
     GroupGender participantGender,
     bool isPresenterSpecial,
     string participantInstructions,
     int numberOfSpecialParticipants,
     string custom1,
     string custom2,
     string custom3,
     string custom4,
     string custom5,
     string custom6,
     string custom7,
     string custom8,
     string custom9,
     string custom10,
     bool? isAccepted)
     : this()
 {
     this.ModuleId = moduleId;
     this.AppointmentTypeId = appointmentTypeId;
     this.Title = title;
     this.Description = description;
     this.Notes = notes;
     this.Address1 = address1;
     this.Address2 = address2;
     this.City = city;
     this.RegionId = regionId;
     this.PostalCode = postalCode;
     this.Phone = phone;
     this.AdditionalAddressInfo = additionalAddressInfo;
     this.ContactStreet = contactStreet;
     this.ContactPhone = contactPhone;
     this.RequestorName = requestorName;
     this.RequestorPhoneType = requestorPhoneType;
     this.RequestorPhone = requestorPhone;
     this.RequestorEmail = requestorEmail;
     this.RequestorAltPhoneType = requestorAltPhoneType;
     this.RequestorAltPhone = requestorAltPhone;
     this.StartDateTime = start;
     this.EndDateTime = end;
     this.NumberOfParticipants = numberOfParticipants;
     this.ParticipantGender = participantGender;
     this.IsPresenterSpecial = isPresenterSpecial;
     this.TimeZoneOffset = timeZoneOffset;
     this.ParticipantInstructions = participantInstructions;
     this.NumberOfSpecialParticipants = numberOfSpecialParticipants;
     this.Custom1 = custom1;
     this.Custom2 = custom2;
     this.Custom3 = custom3;
     this.Custom4 = custom4;
     this.Custom5 = custom5;
     this.Custom6 = custom6;
     this.Custom7 = custom7;
     this.Custom8 = custom8;
     this.Custom9 = custom9;
     this.Custom10 = custom10;
     this.IsAccepted = isAccepted;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates the specified <see cref="Appointment"/>.
 /// </summary>
 /// <param name="moduleId">The module ID.</param>
 /// <param name="appointmentTypeId">The appointment type ID of this appointment.</param>
 /// <param name="title">The title of this appointment.</param>
 /// <param name="description">The description.</param>
 /// <param name="notes">The notes.</param>
 /// <param name="address1">The address1.</param>
 /// <param name="address2">The address2.</param>
 /// <param name="city">The city of the appointment.</param>
 /// <param name="regionId">The region id.</param>
 /// <param name="postalCode">The postal code.</param>
 /// <param name="phone">The phone number.</param>
 /// <param name="additionalAddressInfo">The additional address info.</param>
 /// <param name="contactStreet">The contact street.</param>
 /// <param name="contactPhone">The contact phone.</param>
 /// <param name="requestorName">Name of the requestor.</param>
 /// <param name="requestorPhoneType">Type of the requestor phone.</param>
 /// <param name="requestorPhone">The requestor phone.</param>
 /// <param name="requestorEmail">The requestor email.</param>
 /// <param name="requestorAltPhoneType">Type of the requestor alt phone.</param>
 /// <param name="requestorAltPhone">The requestor alt phone.</param>
 /// <param name="start">The start of the appointment.</param>
 /// <param name="end">The end of the appointment.</param>
 /// <param name="timeZoneOffset">The time zone offset.</param>
 /// <param name="numberOfParticipants">The number of participants.</param>
 /// <param name="participantGender">The participant gender.</param>
 /// <param name="isPresenterSpecial">The participant flag.</param>
 /// <param name="participantInstructions">The participant instructions.</param>
 /// <param name="numberOfSpecialParticipants">The number of special participants.</param>
 /// <param name="custom1">The first custom field.</param>
 /// <param name="custom2">The second custom field.</param>
 /// <param name="custom3">The third custom field.</param>
 /// <param name="custom4">The fourth custom field.</param>
 /// <param name="custom5">The fifth custom field.</param>
 /// <param name="custom6">The sixth custom field.</param>
 /// <param name="custom7">The seventh custom field.</param>
 /// <param name="custom8">The eighth custom field.</param>
 /// <param name="custom9">The ninth custom field.</param>
 /// <param name="custom10">The tenth custom field.</param>
 /// <param name="isAccepted"><c>null</c>if the <see cref="Appointment"/> has not bee accepted or declined yet,
 /// otherwise <c>true</c> for an accepted appointment, or <c>false</c> for a declined appointment.</param>
 /// <returns>
 /// A new <see cref="Appointment"/> instance.
 /// </returns>
 public static Appointment Create(
     int moduleId,
     int appointmentTypeId,
     string title,
     string description,
     string notes,
     string address1,
     string address2,
     string city,
     int?regionId,
     string postalCode,
     string phone,
     string additionalAddressInfo,
     string contactStreet,
     string contactPhone,
     string requestorName,
     PhoneType requestorPhoneType,
     string requestorPhone,
     string requestorEmail,
     PhoneType requestorAltPhoneType,
     string requestorAltPhone,
     DateTime start,
     DateTime end,
     TimeSpan timeZoneOffset,
     int numberOfParticipants,
     GroupGender participantGender,
     bool isPresenterSpecial,
     string participantInstructions,
     int numberOfSpecialParticipants,
     string custom1,
     string custom2,
     string custom3,
     string custom4,
     string custom5,
     string custom6,
     string custom7,
     string custom8,
     string custom9,
     string custom10,
     bool?isAccepted)
 {
     return(new Appointment(
                moduleId,
                appointmentTypeId,
                title,
                description,
                notes,
                address1,
                address2,
                city,
                regionId,
                postalCode,
                phone,
                additionalAddressInfo,
                contactStreet,
                contactPhone,
                requestorName,
                requestorPhoneType,
                requestorPhone,
                requestorEmail,
                requestorAltPhoneType,
                requestorAltPhone,
                start,
                end,
                timeZoneOffset,
                numberOfParticipants,
                participantGender,
                isPresenterSpecial,
                participantInstructions,
                numberOfSpecialParticipants,
                custom1,
                custom2,
                custom3,
                custom4,
                custom5,
                custom6,
                custom7,
                custom8,
                custom9,
                custom10,
                isAccepted));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Creates the specified <see cref="Appointment"/>.
 /// </summary>
 /// <param name="moduleId">The module ID.</param>
 /// <param name="appointmentTypeId">The appointment type ID of this appointment.</param>
 /// <param name="title">The title of this appointment.</param>
 /// <param name="description">The description.</param>
 /// <param name="notes">The notes.</param>
 /// <param name="address1">The address1.</param>
 /// <param name="address2">The address2.</param>
 /// <param name="city">The city of the appointment.</param>
 /// <param name="regionId">The region id.</param>
 /// <param name="postalCode">The postal code.</param>
 /// <param name="phone">The phone number.</param>
 /// <param name="additionalAddressInfo">The additional address info.</param>
 /// <param name="contactStreet">The contact street.</param>
 /// <param name="contactPhone">The contact phone.</param>
 /// <param name="requestorName">Name of the requestor.</param>
 /// <param name="requestorPhoneType">Type of the requestor phone.</param>
 /// <param name="requestorPhone">The requestor phone.</param>
 /// <param name="requestorEmail">The requestor email.</param>
 /// <param name="requestorAltPhoneType">Type of the requestor alt phone.</param>
 /// <param name="requestorAltPhone">The requestor alt phone.</param>
 /// <param name="start">The start of the appointment.</param>
 /// <param name="end">The end of the appointment.</param>
 /// <param name="timeZoneOffset">The time zone offset.</param>
 /// <param name="numberOfParticipants">The number of participants.</param>
 /// <param name="participantGender">The participant gender.</param>
 /// <param name="isPresenterSpecial">The participant flag.</param>
 /// <param name="participantInstructions">The participant instructions.</param>
 /// <param name="numberOfSpecialParticipants">The number of special participants.</param>
 /// <param name="custom1">The first custom field.</param>
 /// <param name="custom2">The second custom field.</param>
 /// <param name="custom3">The third custom field.</param>
 /// <param name="custom4">The fourth custom field.</param>
 /// <param name="custom5">The fifth custom field.</param>
 /// <param name="custom6">The sixth custom field.</param>
 /// <param name="custom7">The seventh custom field.</param>
 /// <param name="custom8">The eighth custom field.</param>
 /// <param name="custom9">The ninth custom field.</param>
 /// <param name="custom10">The tenth custom field.</param>
 /// <param name="isAccepted"><c>null</c>if the <see cref="Appointment"/> has not bee accepted or declined yet,
 /// otherwise <c>true</c> for an accepted appointment, or <c>false</c> for a declined appointment.</param>
 /// <returns>
 /// A new <see cref="Appointment"/> instance.
 /// </returns>
 public static Appointment Create(
     int moduleId,
     int appointmentTypeId,
     string title,
     string description,
     string notes,
     string address1,
     string address2,
     string city,
     int? regionId,
     string postalCode,
     string phone,
     string additionalAddressInfo,
     string contactStreet,
     string contactPhone,
     string requestorName,
     PhoneType requestorPhoneType,
     string requestorPhone,
     string requestorEmail,
     PhoneType requestorAltPhoneType,
     string requestorAltPhone,
     DateTime start,
     DateTime end,
     TimeSpan timeZoneOffset,
     int numberOfParticipants,
     GroupGender participantGender,
     bool isPresenterSpecial,
     string participantInstructions,
     int numberOfSpecialParticipants,
     string custom1,
     string custom2,
     string custom3,
     string custom4,
     string custom5,
     string custom6,
     string custom7,
     string custom8,
     string custom9,
     string custom10,
     bool? isAccepted)
 {
     return new Appointment(
             moduleId,
             appointmentTypeId,
             title,
             description,
             notes,
             address1,
             address2,
             city,
             regionId,
             postalCode,
             phone,
             additionalAddressInfo,
             contactStreet,
             contactPhone,
             requestorName,
             requestorPhoneType,
             requestorPhone,
             requestorEmail,
             requestorAltPhoneType,
             requestorAltPhone,
             start,
             end,
             timeZoneOffset,
             numberOfParticipants,
             participantGender,
             isPresenterSpecial,
             participantInstructions,
             numberOfSpecialParticipants,
             custom1,
             custom2,
             custom3,
             custom4,
             custom5,
             custom6,
             custom7,
             custom8,
             custom9,
             custom10,
             isAccepted);
 }