getChannels abstract method

  1. @Get()
Future<Response<AlifResponse<GetChannelsBody>>> getChannels({
  1. @Query('device_id') int? deviceId,
  2. @Query('filter_c_name') String? filterChannelName,
  3. @Query('filter_c_description') String? filterChannelDescription,
  4. @Query('filter_c_location') String? filterChannelLocation,
  5. @Query('filter_favourites') String? filterFavourites,
  6. @Query() int page = 1,
  7. @Query('results_per_page') int resultsPerPage = 1000,
  8. @Query() required String token,
  9. @Query('v') int version = 11,
  10. @Query() String method = 'get_channels',
})

Returns a list of channels available to the authenticated user, for a specific receiver.

Implementation

@Get()
Future<Response<AlifResponse<GetChannelsBody>>> getChannels({
  /// ID of the receiver that this channel will be connected to.
  /// Recommended to ensure full checks for connection mode availability.
  @Query('device_id') int? deviceId,

  /// channel name search string
  @Query('filter_c_name') String? filterChannelName,

  /// channel description search string
  @Query('filter_c_description') String? filterChannelDescription,

  /// channel location search string
  @Query('filter_c_location') String? filterChannelLocation,

  /// set this non-empty to only show a user's favourites
  @Query('filter_favourites') String? filterFavourites,

  /// Page number to start showing results for, default = 1
  @Query() int page = 1,

  /// Number of results per page, default = 1000
  @Query('results_per_page') int resultsPerPage = 1000,

  /// Authentication token of a currently logged-in user (active session)
  @Query() required String token,

  /// The AIM API version this request is designed for
  @Query('v') int version = 11,

  /// The remote procedure to call. Do not edit this
  @Query() String method = 'get_channels',
});