@@ -37,11 +37,11 @@ public async Task<SubscribeResult> SubscribeAsync(IEnumerable<string> events, Su
3737 return await Broker . ExecuteCommandAsync ( new ( @params ) , options , JsonContext . SubscribeCommand , JsonContext . SubscribeResult ) . ConfigureAwait ( false ) ;
3838 }
3939
40- public async Task < EmptyResult > UnsubscribeAsync ( IEnumerable < Subscription > subscriptions , UnsubscribeByIdOptions ? options = null )
40+ public async Task < UnsubscribeResult > UnsubscribeAsync ( IEnumerable < Subscription > subscriptions , UnsubscribeByIdOptions ? options = null )
4141 {
4242 var @params = new UnsubscribeByIdParameters ( subscriptions ) ;
4343
44- return await Broker . ExecuteCommandAsync ( new UnsubscribeByIdCommand ( @params ) , options , JsonContext . UnsubscribeByIdCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
44+ return await Broker . ExecuteCommandAsync ( new UnsubscribeByIdCommand ( @params ) , options , JsonContext . UnsubscribeByIdCommand , JsonContext . UnsubscribeResult ) . ConfigureAwait ( false ) ;
4545 }
4646
4747 public async Task < NewResult > NewAsync ( CapabilitiesRequest capabilitiesRequest , NewOptions ? options = null )
@@ -51,8 +51,8 @@ public async Task<NewResult> NewAsync(CapabilitiesRequest capabilitiesRequest, N
5151 return await Broker . ExecuteCommandAsync ( new NewCommand ( @params ) , options , JsonContext . NewCommand , JsonContext . NewResult ) . ConfigureAwait ( false ) ;
5252 }
5353
54- public async Task < EmptyResult > EndAsync ( EndOptions ? options = null )
54+ public async Task < EndResult > EndAsync ( EndOptions ? options = null )
5555 {
56- return await Broker . ExecuteCommandAsync ( new EndCommand ( ) , options , JsonContext . EndCommand , JsonContext . EmptyResult ) . ConfigureAwait ( false ) ;
56+ return await Broker . ExecuteCommandAsync ( new EndCommand ( ) , options , JsonContext . EndCommand , JsonContext . EndResult ) . ConfigureAwait ( false ) ;
5757 }
5858}
0 commit comments