public BaseData(BaseData data) { this.Id = data.Id; this.From = data.From; this.To = data.To; this.Timestamp = data.Timestamp; this.Error = data.Error; }
public ErrorIQ(DataError error) { if (error == null) { throw new ArgumentNullException(); } this.Type = IQ.IQType.Error; this.Error = error; }