Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the EnvironmentDto class.
 /// </summary>
 /// <param name="name">A custom name for the environment.</param>
 /// <param name="description">Used to add additional information about
 /// an environment in order to better identify it.</param>
 /// <param name="robots">The collection of robots associated with the
 /// current environment.</param>
 /// <param name="type">DEPRECATED. The environment type specifies how
 /// it should be used.
 /// This property is deprecated and should no longer be used. Possible
 /// values include: 'Dev', 'Test', 'Prod'</param>
 public EnvironmentDto(string name, string description = default(string), IList <SimpleRobotDto> robots = default(IList <SimpleRobotDto>), EnvironmentDtoType?type = default(EnvironmentDtoType?), long?id = default(long?))
 {
     Name        = name;
     Description = description;
     Robots      = robots;
     Type        = type;
     Id          = id;
     CustomInit();
 }
 internal static string ToSerializedValue(this EnvironmentDtoType?value)
 {
     return(value == null ? null : ((EnvironmentDtoType)value).ToSerializedValue());
 }