/// <summary> /// Filters launches by site 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 site id filter. /// </summary> /// <param name="siteId">The launchpad ID (CcafsSlc40, Stls, etc).</param> /// <returns>The launch builder.</returns> public TBuilder WithSiteId(LaunchpadId siteId) { AddFilter("site_id", siteId.GetEnumMemberAttributeValue(siteId)); return((TBuilder)this); }
/// <summary> /// Filters launchpad information by the specified launchpad 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 launchpad type filter. /// </summary> /// <param name="type">The launchpad type (CcafsLc13, Stls, etc).</param> /// <returns>The launchpad builder.</returns> public LaunchpadBuilder WithType(LaunchpadId type) { _launchpadType = type; return(this); }
/// <summary> /// Gets information about the specified launchpad. 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="launchpadType">The launchpad type.</param> /// <returns>The launchpad builder.</returns> public LaunchpadBuilder GetAbout(LaunchpadId launchpadType) { return(new LaunchpadBuilder(_httpClient, _builderDelegatesContainer).WithType(launchpadType)); }