/// <summary> /// Copy Constructor /// </summary> /// <param name="other"></param> /// <param name="parent"></param> /// <returns>InitializeConnectionResponse</returns> public InitializeConnectionResponse(InitializeConnectionResponse other, BaseAggregate parent) : base(other, parent) { DeviceId = new BaseField <string>(other.DeviceId, this); RequestApproved = new BaseField <bool>(other.RequestApproved, this); PushFields(); }
/// <summary> /// Equals /// </summary> /// <param name="other"></param> /// <returns></returns> public bool Equals(InitializeConnectionResponse other) { if (other is null) { return(false); } if (DeviceId != other.DeviceId) { return(false); } if (RequestApproved != other.RequestApproved) { return(false); } return(true); }