Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StreamResponse" /> class.
 /// </summary>
 /// <param name="StreamLocation">The actual location of the stream (required).</param>
 public StreamResponse(StreamLocation StreamLocation = default(StreamLocation))
 {
     // to ensure "StreamLocation" is required (not null)
     if (StreamLocation == null)
     {
         throw new InvalidDataException("StreamLocation is a required property for StreamResponse and cannot be null");
     }
     else
     {
         this.StreamLocation = StreamLocation;
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Stream" /> class.
 /// </summary>
 /// <param name="StreamLocation">The location of the classification result..</param>
 public Stream(StreamLocation StreamLocation = default(StreamLocation))
 {
     this.StreamLocation = StreamLocation;
 }