示例#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  = EnumDsoHttpResultMutation
                     .GetCode(DsoHttpResultMutationEnum.None);
 }
示例#2
0
 protected DsoHttpResult(
     SeverityEnum severity,
     bool hasMoreResults,
     DsoHttpResultMutationEnum mutation = DsoHttpResultMutationEnum.None) :
     this()
 {
     StatusCode     = EnumSeverity.GetCode(severity);
     MutationCode   = EnumDsoHttpResultMutation.GetCode(mutation);
     HasMoreResults = hasMoreResults;
 }