/// <summary> /// Filters launches by capsule id. Note that you have to call <see cref="BuilderBase{TReturn}.Execute"/> or <see cref="BuilderBase{TReturn}.ExecuteAsync"/> /// to get result from the API. Every next call of this method will override previously saved capsule id filter. /// </summary> /// <param name="capsuleId">The capsule id (Dragon 1, Dragon 2 etc).</param> /// <returns>The detailed capsules builder.</returns> public AllDetailedCapsulesBuilder WithCapsuleId(CapsuleId capsuleId) { AddFilter("capsule_id", capsuleId.GetEnumMemberAttributeValue(capsuleId)); return(this); }
/// <summary> /// Gets information about the specified capsule. This method returns only builder which doesn't retrieve data from API itself, so after apply /// all necessary filters you should call <see cref="BuilderBase{TReturn}.Execute"/> or <see cref="BuilderBase{TReturn}.ExecuteAsync"/> to /// get the data from SpaceX API. /// </summary> /// <param name="capsuleType">The capsule type.</param> /// <returns>The capsule builder.</returns> public CapsuleBuilder GetAbout(CapsuleId capsuleType) { return(new CapsuleBuilder(_httpClient, _builderDelegatesContainer).WithType(capsuleType)); }
/// <summary> /// Filters capsule information by the specified capsule type. Note that you have to call <see cref="BuilderBase{TReturn}.Execute"/> or /// <see cref="BuilderBase{TReturn}.ExecuteAsync"/> to get result from the API. Every next call of this method will override previously saved capsule type filter. /// </summary> /// <param name="type">The capsule type (Dragon1, Dragon2, etc).</param> /// <returns>The capsule information.</returns> public CapsuleBuilder WithType(CapsuleId type) { _capsuleType = type; return(this); }