Ejemplo n.º 1
0
 /// <summary>
 /// Enables to set the StatusCode
 /// </summary>
 /// <param name="severity"></param>
 public DsoHttpResult(SeverityEnum severity)
 {
     StatusCode    = EnumSeverity.GetCode(severity);
     Notifications = new List <DsoHttpResultNotification>();
     MutationCode  = EnumMutation
                     .GetCode(MutationEnum.None);
 }
Ejemplo n.º 2
0
 protected DsoHttpResult(
     SeverityEnum severity,
     bool hasMoreResults,
     MutationEnum mutation = MutationEnum.None) :
     this()
 {
     StatusCode     = EnumSeverity.GetCode(severity);
     MutationCode   = EnumMutation.GetCode(mutation);
     HasMoreResults = hasMoreResults;
 }