示例#1
0
        public StatusResponse(StatusRequest request,
                              ComponentState state,
                              String?stateText,
                              IEnumerable <Component>?components)
            :
            base(request)
        {
            this.State     = state;
            this.StateText = stateText;

            if (components is not null)
            {
                this.Components.AddRange(components);
            }
        }
示例#2
0
 public StatusResponse(StatusRequest request,
                       ComponentState state)
     :
     this(request, state, stateText : null, components : null)
 {
 }