Esempio n. 1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (SourceReport == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "SourceReport");
     }
     if (SourceReport != null)
     {
         SourceReport.Validate();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the UpdateReportContentRequest class.
 /// </summary>
 /// <param name="sourceType">The source type for the content update.
 /// Possible values include: 'ExistingReport'</param>
 public UpdateReportContentRequest(string sourceType = default(string), SourceReport sourceReport = default(SourceReport))
 {
     SourceType   = sourceType;
     SourceReport = sourceReport;
     CustomInit();
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the UpdateReportContentRequest class.
 /// </summary>
 public UpdateReportContentRequest(SourceReport sourceReport)
 {
     SourceReport = sourceReport;
     CustomInit();
 }