diff options
author | 2023-12-31 16:24:51 -0500 | |
---|---|---|
committer | 2024-01-03 18:23:52 -0500 | |
commit | 4742fde5c48726357cc8db06d237e9db6c3df608 (patch) | |
tree | dcca2b3e3c6cb3a4a46b7ae603f64fa9ce5a086c /protos/lib/src/generated/todo.pbgrpc.dart | |
parent | fcd868bd73d35bd79074f3425317152565aeb275 (diff) |
Initial radio implementation
Notable changes:
- Add radio gRPC API protobuf definitation and generated files.
- Reworked existing single gRPC APIs library to split it into
per-API libraries to avoid name collision issues.
- Add radio gRPC client class and associated radio state class
and RiverPod providers.
- Split media controls and play list table classes into media
player and radio specific versions to facilitate customization
and wiring up their appropriate backends in a straightforward
fashion. Some potential rationalization of styling widgets
may be done as a follow up to avoid some duplication.
- Added radio configuration and presets loading. The presets
will be populated with the contents of a radio-presets.yaml
file from the configured location, the default location is
the /etc/xdg/AGL/ics-homescreen directory.
- Implemented FM radio player against the radio gRPC API.
For the sake of expediency, no attempt has been made to make
the player able to handle AM band support.
- Reworked media page navigation state so that active player is
restored when coming back to the page. Logic has been added to
start/stop the radio on navigating to or leaving the FM radio
sub-page. This will potentially be reworked before CES to work
with the pause/stop button present on the other pages.
- Started pruning down global exports.dart a bit to remove files
only used in a specific page/hierarchy, starting with media.
Bug-AGL: SPEC-5029
Change-Id: I1ae0aca4a7a8218e69e4286c863f01509a1cccb7
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'protos/lib/src/generated/todo.pbgrpc.dart')
-rw-r--r-- | protos/lib/src/generated/todo.pbgrpc.dart | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/protos/lib/src/generated/todo.pbgrpc.dart b/protos/lib/src/generated/todo.pbgrpc.dart deleted file mode 100644 index 35e0860..0000000 --- a/protos/lib/src/generated/todo.pbgrpc.dart +++ /dev/null @@ -1,79 +0,0 @@ -// -// Generated code. Do not modify. -// source: todo.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import - -import 'dart:async' as $async; -import 'dart:core' as $core; - -import 'package:grpc/service_api.dart' as $grpc; -import 'package:protobuf/protobuf.dart' as $pb; - -import 'todo.pb.dart' as $0; - -export 'todo.pb.dart'; - -@$pb.GrpcServiceName('TodoService') -class TodoServiceClient extends $grpc.Client { - static final _$getTodo = $grpc.ClientMethod<$0.GetTodoByIdRequest, $0.Todo>( - '/TodoService/getTodo', - ($0.GetTodoByIdRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.Todo.fromBuffer(value)); - static final _$getTodoStream = $grpc.ClientMethod<$0.GetTodoByIdRequest, $0.Todo>( - '/TodoService/getTodoStream', - ($0.GetTodoByIdRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.Todo.fromBuffer(value)); - - TodoServiceClient($grpc.ClientChannel channel, - {$grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors}) - : super(channel, options: options, - interceptors: interceptors); - - $grpc.ResponseFuture<$0.Todo> getTodo($0.GetTodoByIdRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getTodo, request, options: options); - } - - $grpc.ResponseStream<$0.Todo> getTodoStream($0.GetTodoByIdRequest request, {$grpc.CallOptions? options}) { - return $createStreamingCall(_$getTodoStream, $async.Stream.fromIterable([request]), options: options); - } -} - -@$pb.GrpcServiceName('TodoService') -abstract class TodoServiceBase extends $grpc.Service { - $core.String get $name => 'TodoService'; - - TodoServiceBase() { - $addMethod($grpc.ServiceMethod<$0.GetTodoByIdRequest, $0.Todo>( - 'getTodo', - getTodo_Pre, - false, - false, - ($core.List<$core.int> value) => $0.GetTodoByIdRequest.fromBuffer(value), - ($0.Todo value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetTodoByIdRequest, $0.Todo>( - 'getTodoStream', - getTodoStream_Pre, - false, - true, - ($core.List<$core.int> value) => $0.GetTodoByIdRequest.fromBuffer(value), - ($0.Todo value) => value.writeToBuffer())); - } - - $async.Future<$0.Todo> getTodo_Pre($grpc.ServiceCall call, $async.Future<$0.GetTodoByIdRequest> request) async { - return getTodo(call, await request); - } - - $async.Stream<$0.Todo> getTodoStream_Pre($grpc.ServiceCall call, $async.Future<$0.GetTodoByIdRequest> request) async* { - yield* getTodoStream(call, await request); - } - - $async.Future<$0.Todo> getTodo($grpc.ServiceCall call, $0.GetTodoByIdRequest request); - $async.Stream<$0.Todo> getTodoStream($grpc.ServiceCall call, $0.GetTodoByIdRequest request); -} |