/// <summary> /// Initializes a new instance of the class <see cref="ATCommandResponse"/>. /// </summary> /// <param name="command">The <see cref="ATCommand"/> that generated the response.</param> /// <param name="response">The command response in byte array format.</param> /// <param name="status">The <see cref="ATCommandStatus"/> containing the response status.</param> /// <exception cref="ArgumentNullException">if <paramref name="command"/> is <c>null</c>.</exception> /// <seealso cref="ATCommand"/> /// <seealso cref="ATCommandStatus"/> public ATCommandResponse(ATCommand command, byte[] response, ATCommandStatus status) { Command = command ?? throw new ArgumentNullException("Command cannot be null."); Response = response; Status = status; }
/// <summary> /// Initializes a new instance of the class <see cref="ATCommandResponse"/>. /// </summary> /// <param name="command">The <see cref="ATCommand"/> that generated the response.</param> /// <param name="status">The <see cref="ATCommandStatus"/> containing the response status.</param> /// <exception cref="ArgumentNullException">If <paramref name="command"/> is <c>null</c>.</exception> /// <seealso cref="ATCommand"/> /// <seealso cref="ATCommandStatus"/> public ATCommandResponse(ATCommand command, ATCommandStatus status) : this(command, null, status) { }
/// <summary> /// Initializes a new instance of the class <see cref="ATCommandResponse"/>. /// </summary> /// <param name="command">The <see cref="ATCommand"/> that generated the response.</param> /// <param name="response">The command response in byte array format.</param> /// <exception cref="ArgumentNullException">if <paramref name="command"/> is <c>null</c>.</exception> /// <seealso cref="ATCommand"/> public ATCommandResponse(ATCommand command, byte[] response) : this(command, response, ATCommandStatus.OK) { }
/// <summary> /// Initializes a new instance of the class <see cref="ATCommandResponse"/>. /// </summary> /// <param name="command">The <see cref="ATCommand"/> that generated the response.</param> /// <exception cref="ArgumentNullException">If <paramref name="command"/> is <c>null</c>.</exception> /// <seealso cref="ATCommand"/> public ATCommandResponse(ATCommand command) : this(command, null, ATCommandStatus.OK) { }