Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateManagementUnitRequest" /> class.
 /// </summary>
 /// <param name="Name">The new name of the management unit.</param>
 /// <param name="DivisionId">The new division id for the management unit.</param>
 /// <param name="Settings">Updated settings for the management unit.</param>
 public UpdateManagementUnitRequest(string Name = null, string DivisionId = null, ManagementUnitSettings Settings = null)
 {
     this.Name       = Name;
     this.DivisionId = DivisionId;
     this.Settings   = Settings;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ManagementUnit" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Division">The division to which this entity belongs..</param>
 /// <param name="StartDayOfWeek">Start day of week for scheduling and forecasting purposes.</param>
 /// <param name="TimeZone">The time zone for the management unit in standard Olson format.</param>
 /// <param name="Settings">The configuration settings for this management unit.</param>
 /// <param name="Metadata">Version info metadata for this management unit. Deprecated, use settings.metadata.</param>
 /// <param name="ModifiedBy">The user who last modified this entity.  Deprecated, use field from settings.metadata instead.</param>
 public ManagementUnit(string Name = null, Division Division = null, StartDayOfWeekEnum?StartDayOfWeek = null, string TimeZone = null, ManagementUnitSettings Settings = null, WfmVersionedEntityMetadata Metadata = null, UserReference ModifiedBy = null)
 {
     this.Name           = Name;
     this.Division       = Division;
     this.StartDayOfWeek = StartDayOfWeek;
     this.TimeZone       = TimeZone;
     this.Settings       = Settings;
     this.Metadata       = Metadata;
     this.ModifiedBy     = ModifiedBy;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ManagementUnit" /> class.
        /// </summary>



        /// <param name="Name">Name.</param>



        /// <param name="Division">The division to which this entity belongs..</param>



        /// <param name="StartDayOfWeek">Start day of week for scheduling and forecasting purposes.</param>



        /// <param name="TimeZone">The time zone for the management unit in standard Olson Format (See https://en.wikipedia.org/wiki/Tz_database).</param>



        /// <param name="Settings">The configuration settings for this management unit.</param>



        /// <param name="Version">The version of the underlying entity.  Deprecated, use metadata field instead (required).</param>



        /// <param name="ModifiedBy">The user who last modified this entity.  Deprecated, use metadata field instead.</param>



        /// <param name="Metadata">Version info metadata for this management unit (required).</param>



        public ManagementUnit(string Name = null, Division Division = null, StartDayOfWeekEnum?StartDayOfWeek = null, string TimeZone = null, ManagementUnitSettings Settings = null, int?Version = null, UserReference ModifiedBy = null, WfmVersionedEntityMetadata Metadata = null)
        {
            // to ensure "Version" is required (not null)
            if (Version == null)
            {
                throw new InvalidDataException("Version is a required property for ManagementUnit and cannot be null");
            }
            else
            {
                this.Version = Version;
            }



            // to ensure "Metadata" is required (not null)
            if (Metadata == null)
            {
                throw new InvalidDataException("Metadata is a required property for ManagementUnit and cannot be null");
            }
            else
            {
                this.Metadata = Metadata;
            }



            this.Name = Name;



            this.Division = Division;



            this.StartDayOfWeek = StartDayOfWeek;



            this.TimeZone = TimeZone;



            this.Settings = Settings;



            this.ModifiedBy = ModifiedBy;
        }