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