public PrtgResponse(Stream stream) { if (stream == null) { throw new ArgumentNullException(nameof(stream)); } streamValue = stream; Type = PrtgResponseType.Stream; }
public PrtgResponse(string str, bool isDirty) { if (str == null) { throw new ArgumentNullException(nameof(str)); } stringValue = str; Type = PrtgResponseType.String; this.isDirty = isDirty; }