활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.
Hi,
I am trying to use LaunchManager Api to Promote the launch, but I am unable to set LaunchPromotion Parameters.
Code :
Launch launch = res.adaptTo(Launch.class); // Launch Path
LaunchManager launchManager = res.adaptTo(LaunchManager.class); // LaunchManager object
launchManager.promoteLaunch(launch, launchParameters?);
if anyone has a sample code snippet, that would be helpful.
Thanks in advance.
해결되었습니다! 솔루션으로 이동.
조회 수
답글
좋아요 수
Here's the sample implementation for promoting a launch programmatically, which you can refer to:
I believe you just have to create a new Java POJO class which will implement LaunchPromotionParameters interface. Implement the methods of the interface and pass the POJO object to the promoteLaunch method.
조회 수
답글
좋아요 수
Just override those getters in your implementation class and pass the instance to the API method.
조회 수
답글
좋아요 수
Here's the sample implementation for promoting a launch programmatically, which you can refer to: