From df404b1a5a74be0e58961120ff1c0a5513035553 Mon Sep 17 00:00:00 2001 From: Saina Amiri <90347142+Sainaamr@users.noreply.github.com> Date: Sun, 28 Jan 2024 14:00:27 +0100 Subject: [PATCH] 221 create quiz (#251) * update protofiles * add poll handler, state model, view model * create placeholder for poll, separate the inactive overlay from chat view * clean the unused parameters * update protofile, convert int64 to int * fix the trailing comma * fix the trailing comma --- android/app/src/main/AndroidManifest.xml | 2 +- lib/base/networking/api/gocast/api_v2.pb.dart | 2137 ++++++++++++----- .../networking/api/gocast/api_v2.pbjson.dart | 143 +- .../networking/api/handler/chat_handler.dart | 42 +- .../networking/api/handler/poll_handler.dart | 44 + .../api/handler/stream_handler.dart | 13 +- lib/models/poll/poll_state_model.dart | 57 + lib/providers.dart | 5 + lib/view_models/chat_view_model.dart | 36 +- lib/view_models/poll_view_model.dart | 55 + lib/view_models/stream_view_model.dart | 14 +- lib/views/chat_view/chat_view.dart | 6 +- lib/views/chat_view/chat_view_state.dart | 98 +- lib/views/chat_view/inactive_view.dart | 92 + lib/views/chat_view/poll_view.dart | 15 + lib/views/chat_view/poll_view_state.dart | 289 +++ .../offline_video_player.dart | 4 +- .../utils/custom_video_control_bar.dart | 16 +- .../utils/video_player_handler.dart | 6 +- lib/views/video_view/video_player.dart | 27 +- 20 files changed, 2250 insertions(+), 851 deletions(-) create mode 100644 lib/base/networking/api/handler/poll_handler.dart create mode 100644 lib/models/poll/poll_state_model.dart create mode 100644 lib/view_models/poll_view_model.dart create mode 100644 lib/views/chat_view/inactive_view.dart create mode 100644 lib/views/chat_view/poll_view.dart create mode 100644 lib/views/chat_view/poll_view_state.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 5d939348..b684550e 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,5 @@ - + i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory ChatReaction.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory ChatReaction.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory ChatReaction.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ChatReaction', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, - protoName: 'chatID') + protoName: 'chatID', + ) ..a<$core.int>(2, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, - protoName: 'userID') + protoName: 'userID', + ) ..aOS(3, _omitFieldNames ? '' : 'username') ..aOS(4, _omitFieldNames ? '' : 'emoji') ..hasRequiredFields = false; @@ -64,6 +73,7 @@ class ChatReaction extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ChatReaction clone() => ChatReaction()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -76,6 +86,7 @@ class ChatReaction extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static ChatReaction create() => ChatReaction._(); ChatReaction createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -147,17 +158,24 @@ class AddressedUser extends $pb.GeneratedMessage { return $result; } AddressedUser._() : super(); - factory AddressedUser.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory AddressedUser.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory AddressedUser.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory AddressedUser.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'AddressedUser', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'username') ..hasRequiredFields = false; @@ -166,6 +184,7 @@ class AddressedUser extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') AddressedUser clone() => AddressedUser()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -178,6 +197,7 @@ class AddressedUser extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static AddressedUser create() => AddressedUser._(); AddressedUser createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -273,38 +293,53 @@ class ChatMessage extends $pb.GeneratedMessage { return $result; } ChatMessage._() : super(); - factory ChatMessage.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory ChatMessage.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory ChatMessage.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory ChatMessage.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'ChatMessage', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'userID', protoName: 'userID') ..aOS(3, _omitFieldNames ? '' : 'username') - ..aOS(4, _omitFieldNames ? '' : 'message') - ..aOS(5, _omitFieldNames ? '' : 'sanitizedMessage', - protoName: 'sanitizedMessage') + ..aOS(4, _omitFieldNames ? '' : 'message')..aOS( + 5, _omitFieldNames ? '' : 'sanitizedMessage', + protoName: 'sanitizedMessage', + ) ..a<$core.int>(6, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..aOS(7, _omitFieldNames ? '' : 'color') ..aOB(8, _omitFieldNames ? '' : 'isVisible', protoName: 'isVisible') ..pc( 9, _omitFieldNames ? '' : 'reactions', $pb.PbFieldType.PM, - subBuilder: ChatReaction.create) + subBuilder: ChatReaction.create, + ) ..pc(10, _omitFieldNames ? '' : 'replies', $pb.PbFieldType.PM, - subBuilder: ChatMessage.create) + subBuilder: ChatMessage.create, + ) ..pc( 11, _omitFieldNames ? '' : 'addressedUsers', $pb.PbFieldType.PM, - protoName: 'addressedUsers', subBuilder: AddressedUser.create) + protoName: 'addressedUsers', + subBuilder: AddressedUser.create, + ) ..aOB(12, _omitFieldNames ? '' : 'isResolved', protoName: 'isResolved') ..aOM<$1.Timestamp>(13, _omitFieldNames ? '' : 'createdAt', - protoName: 'createdAt', subBuilder: $1.Timestamp.create) + protoName: 'createdAt', + subBuilder: $1.Timestamp.create, + ) ..aOB(14, _omitFieldNames ? '' : 'isAdmin', protoName: 'isAdmin') ..hasRequiredFields = false; @@ -312,6 +347,7 @@ class ChatMessage extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') ChatMessage clone() => ChatMessage()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -485,19 +521,27 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { return $result; } GetChatMessagesRequest._() : super(); - factory GetChatMessagesRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetChatMessagesRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetChatMessagesRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetChatMessagesRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetChatMessagesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -505,11 +549,13 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetChatMessagesRequest clone() => GetChatMessagesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetChatMessagesRequest copyWith( - void Function(GetChatMessagesRequest) updates) => + void Function(GetChatMessagesRequest) updates, + ) => super.copyWith((message) => updates(message as GetChatMessagesRequest)) as GetChatMessagesRequest; @@ -518,6 +564,7 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetChatMessagesRequest create() => GetChatMessagesRequest._(); GetChatMessagesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -553,20 +600,28 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { return $result; } PostChatMessageRequest._() : super(); - factory PostChatMessageRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatMessageRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostChatMessageRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatMessageRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostChatMessageRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'message') ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -574,11 +629,13 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') PostChatMessageRequest clone() => PostChatMessageRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostChatMessageRequest copyWith( - void Function(PostChatMessageRequest) updates) => + void Function(PostChatMessageRequest) updates, + ) => super.copyWith((message) => updates(message as PostChatMessageRequest)) as PostChatMessageRequest; @@ -587,6 +644,7 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostChatMessageRequest create() => PostChatMessageRequest._(); PostChatMessageRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -638,22 +696,31 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { return $result; } PostChatReactionRequest._() : super(); - factory PostChatReactionRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReactionRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostChatReactionRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReactionRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostChatReactionRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'emoji') ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..a<$core.int>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, - protoName: 'chatID') + protoName: 'chatID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -661,11 +728,13 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') PostChatReactionRequest clone() => PostChatReactionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostChatReactionRequest copyWith( - void Function(PostChatReactionRequest) updates) => + void Function(PostChatReactionRequest) updates, + ) => super.copyWith((message) => updates(message as PostChatReactionRequest)) as PostChatReactionRequest; @@ -674,6 +743,7 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostChatReactionRequest create() => PostChatReactionRequest._(); PostChatReactionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -737,23 +807,33 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { return $result; } DeleteChatReactionRequest._() : super(); - factory DeleteChatReactionRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteChatReactionRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeleteChatReactionRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteChatReactionRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeleteChatReactionRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, - protoName: 'chatID') + protoName: 'chatID', + ) ..a<$core.int>(3, _omitFieldNames ? '' : 'reactionID', $pb.PbFieldType.OU3, - protoName: 'reactionID') + protoName: 'reactionID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -761,11 +841,13 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteChatReactionRequest clone() => DeleteChatReactionRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteChatReactionRequest copyWith( - void Function(DeleteChatReactionRequest) updates) => + void Function(DeleteChatReactionRequest) updates, + ) => super.copyWith((message) => updates(message as DeleteChatReactionRequest)) as DeleteChatReactionRequest; @@ -774,6 +856,7 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeleteChatReactionRequest create() => DeleteChatReactionRequest._(); DeleteChatReactionRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -837,22 +920,31 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { return $result; } PostChatReplyRequest._() : super(); - factory PostChatReplyRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReplyRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostChatReplyRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReplyRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostChatReplyRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'message') ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..a<$core.int>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, - protoName: 'chatID') + protoName: 'chatID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -860,6 +952,7 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') PostChatReplyRequest clone() => PostChatReplyRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -872,6 +965,7 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostChatReplyRequest create() => PostChatReplyRequest._(); PostChatReplyRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -931,21 +1025,30 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsResolvedRequest._() : super(); - factory MarkChatMessageAsResolvedRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsResolvedRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsResolvedRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsResolvedRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'MarkChatMessageAsResolvedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, - protoName: 'chatID') + protoName: 'chatID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -953,14 +1056,16 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') MarkChatMessageAsResolvedRequest clone() => MarkChatMessageAsResolvedRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MarkChatMessageAsResolvedRequest copyWith( - void Function(MarkChatMessageAsResolvedRequest) updates) => + void Function(MarkChatMessageAsResolvedRequest) updates, + ) => super.copyWith( - (message) => updates(message as MarkChatMessageAsResolvedRequest)) - as MarkChatMessageAsResolvedRequest; + (message) => updates(message as MarkChatMessageAsResolvedRequest), + ) as MarkChatMessageAsResolvedRequest; $pb.BuilderInfo get info_ => _i; @@ -968,12 +1073,14 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { static MarkChatMessageAsResolvedRequest create() => MarkChatMessageAsResolvedRequest._(); MarkChatMessageAsResolvedRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MarkChatMessageAsResolvedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static MarkChatMessageAsResolvedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -1016,21 +1123,30 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsUnresolvedRequest._() : super(); - factory MarkChatMessageAsUnresolvedRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsUnresolvedRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsUnresolvedRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsUnresolvedRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'MarkChatMessageAsUnresolvedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, - protoName: 'chatID') + protoName: 'chatID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1038,14 +1154,16 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') MarkChatMessageAsUnresolvedRequest clone() => MarkChatMessageAsUnresolvedRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MarkChatMessageAsUnresolvedRequest copyWith( - void Function(MarkChatMessageAsUnresolvedRequest) updates) => - super.copyWith((message) => - updates(message as MarkChatMessageAsUnresolvedRequest)) - as MarkChatMessageAsUnresolvedRequest; + void Function(MarkChatMessageAsUnresolvedRequest) updates, + ) => + super.copyWith( + (message) => updates(message as MarkChatMessageAsUnresolvedRequest), + ) as MarkChatMessageAsUnresolvedRequest; $pb.BuilderInfo get info_ => _i; @@ -1053,12 +1171,14 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { static MarkChatMessageAsUnresolvedRequest create() => MarkChatMessageAsUnresolvedRequest._(); MarkChatMessageAsUnresolvedRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MarkChatMessageAsUnresolvedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static MarkChatMessageAsUnresolvedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -1097,19 +1217,27 @@ class GetChatMessagesResponse extends $pb.GeneratedMessage { return $result; } GetChatMessagesResponse._() : super(); - factory GetChatMessagesResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetChatMessagesResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetChatMessagesResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetChatMessagesResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetChatMessagesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'messages', $pb.PbFieldType.PM, - subBuilder: ChatMessage.create) + subBuilder: ChatMessage.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1117,11 +1245,13 @@ class GetChatMessagesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetChatMessagesResponse clone() => GetChatMessagesResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetChatMessagesResponse copyWith( - void Function(GetChatMessagesResponse) updates) => + void Function(GetChatMessagesResponse) updates, + ) => super.copyWith((message) => updates(message as GetChatMessagesResponse)) as GetChatMessagesResponse; @@ -1130,6 +1260,7 @@ class GetChatMessagesResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetChatMessagesResponse create() => GetChatMessagesResponse._(); GetChatMessagesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1152,19 +1283,27 @@ class PostChatMessageResponse extends $pb.GeneratedMessage { return $result; } PostChatMessageResponse._() : super(); - factory PostChatMessageResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatMessageResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostChatMessageResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatMessageResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostChatMessageResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'message', - subBuilder: ChatMessage.create) + subBuilder: ChatMessage.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1172,11 +1311,13 @@ class PostChatMessageResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') PostChatMessageResponse clone() => PostChatMessageResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostChatMessageResponse copyWith( - void Function(PostChatMessageResponse) updates) => + void Function(PostChatMessageResponse) updates, + ) => super.copyWith((message) => updates(message as PostChatMessageResponse)) as PostChatMessageResponse; @@ -1185,6 +1326,7 @@ class PostChatMessageResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostChatMessageResponse create() => PostChatMessageResponse._(); PostChatMessageResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1218,19 +1360,27 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { return $result; } PostChatReactionResponse._() : super(); - factory PostChatReactionResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReactionResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostChatReactionResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReactionResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostChatReactionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'reaction', - subBuilder: ChatReaction.create) + subBuilder: ChatReaction.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1238,11 +1388,13 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') PostChatReactionResponse clone() => PostChatReactionResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostChatReactionResponse copyWith( - void Function(PostChatReactionResponse) updates) => + void Function(PostChatReactionResponse) updates, + ) => super.copyWith((message) => updates(message as PostChatReactionResponse)) as PostChatReactionResponse; @@ -1251,6 +1403,7 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostChatReactionResponse create() => PostChatReactionResponse._(); PostChatReactionResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1276,38 +1429,47 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { class DeleteChatReactionResponse extends $pb.GeneratedMessage { factory DeleteChatReactionResponse() => create(); DeleteChatReactionResponse._() : super(); - factory DeleteChatReactionResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteChatReactionResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeleteChatReactionResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteChatReactionResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeleteChatReactionResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DeleteChatReactionResponse clone() => DeleteChatReactionResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteChatReactionResponse copyWith( - void Function(DeleteChatReactionResponse) updates) => + void Function(DeleteChatReactionResponse) updates, + ) => super.copyWith( - (message) => updates(message as DeleteChatReactionResponse)) - as DeleteChatReactionResponse; + (message) => updates(message as DeleteChatReactionResponse), + ) as DeleteChatReactionResponse; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static DeleteChatReactionResponse create() => DeleteChatReactionResponse._(); DeleteChatReactionResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1327,19 +1489,27 @@ class PostChatReplyResponse extends $pb.GeneratedMessage { return $result; } PostChatReplyResponse._() : super(); - factory PostChatReplyResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReplyResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostChatReplyResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostChatReplyResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostChatReplyResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'reply', - subBuilder: ChatMessage.create) + subBuilder: ChatMessage.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1347,11 +1517,13 @@ class PostChatReplyResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') PostChatReplyResponse clone() => PostChatReplyResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostChatReplyResponse copyWith( - void Function(PostChatReplyResponse) updates) => + void Function(PostChatReplyResponse) updates, + ) => super.copyWith((message) => updates(message as PostChatReplyResponse)) as PostChatReplyResponse; @@ -1360,6 +1532,7 @@ class PostChatReplyResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostChatReplyResponse create() => PostChatReplyResponse._(); PostChatReplyResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1393,19 +1566,27 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsResolvedResponse._() : super(); - factory MarkChatMessageAsResolvedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsResolvedResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsResolvedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsResolvedResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'MarkChatMessageAsResolvedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'message', - subBuilder: ChatMessage.create) + subBuilder: ChatMessage.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1413,14 +1594,16 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') MarkChatMessageAsResolvedResponse clone() => MarkChatMessageAsResolvedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MarkChatMessageAsResolvedResponse copyWith( - void Function(MarkChatMessageAsResolvedResponse) updates) => - super.copyWith((message) => - updates(message as MarkChatMessageAsResolvedResponse)) - as MarkChatMessageAsResolvedResponse; + void Function(MarkChatMessageAsResolvedResponse) updates, + ) => + super.copyWith( + (message) => updates(message as MarkChatMessageAsResolvedResponse), + ) as MarkChatMessageAsResolvedResponse; $pb.BuilderInfo get info_ => _i; @@ -1428,12 +1611,14 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { static MarkChatMessageAsResolvedResponse create() => MarkChatMessageAsResolvedResponse._(); MarkChatMessageAsResolvedResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static MarkChatMessageAsResolvedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static MarkChatMessageAsResolvedResponse? _defaultInstance; @$pb.TagNumber(1) @@ -1462,20 +1647,27 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { return $result; } MarkChatMessageAsUnresolvedResponse._() : super(); + factory MarkChatMessageAsUnresolvedResponse.fromBuffer( - $core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory MarkChatMessageAsUnresolvedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkChatMessageAsUnresolvedResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'MarkChatMessageAsUnresolvedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'message', - subBuilder: ChatMessage.create) + subBuilder: ChatMessage.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1483,14 +1675,16 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') MarkChatMessageAsUnresolvedResponse clone() => MarkChatMessageAsUnresolvedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MarkChatMessageAsUnresolvedResponse copyWith( - void Function(MarkChatMessageAsUnresolvedResponse) updates) => - super.copyWith((message) => - updates(message as MarkChatMessageAsUnresolvedResponse)) - as MarkChatMessageAsUnresolvedResponse; + void Function(MarkChatMessageAsUnresolvedResponse) updates, + ) => + super.copyWith( + (message) => updates(message as MarkChatMessageAsUnresolvedResponse), + ) as MarkChatMessageAsUnresolvedResponse; $pb.BuilderInfo get info_ => _i; @@ -1498,6 +1692,7 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { static MarkChatMessageAsUnresolvedResponse create() => MarkChatMessageAsUnresolvedResponse._(); MarkChatMessageAsUnresolvedResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -1548,25 +1743,35 @@ class Poll extends $pb.GeneratedMessage { return $result; } Poll._() : super(); - factory Poll.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Poll.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Poll.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Poll.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Poll', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..aOS(3, _omitFieldNames ? '' : 'question') ..aOB(4, _omitFieldNames ? '' : 'active') ..pc( 5, _omitFieldNames ? '' : 'pollOptions', $pb.PbFieldType.PM, - protoName: 'pollOptions', subBuilder: PollOption.create) + protoName: 'pollOptions', + subBuilder: PollOption.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1665,17 +1870,24 @@ class PollOption extends $pb.GeneratedMessage { return $result; } PollOption._() : super(); - factory PollOption.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PollOption.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PollOption.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PollOption.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PollOption', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'answer') ..a<$core.int>(3, _omitFieldNames ? '' : 'votes', $pb.PbFieldType.OU3) @@ -1763,19 +1975,27 @@ class GetPollsRequest extends $pb.GeneratedMessage { return $result; } GetPollsRequest._() : super(); - factory GetPollsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPollsRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetPollsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPollsRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetPollsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1829,22 +2049,31 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { return $result; } PostPollVoteRequest._() : super(); - factory PostPollVoteRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPollVoteRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostPollVoteRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPollVoteRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostPollVoteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..a<$core.int>( 2, _omitFieldNames ? '' : 'pollOptionID', $pb.PbFieldType.OU3, - protoName: 'pollOptionID') + protoName: 'pollOptionID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1906,19 +2135,27 @@ class GetPollsResponse extends $pb.GeneratedMessage { return $result; } GetPollsResponse._() : super(); - factory GetPollsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPollsResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetPollsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPollsResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetPollsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'polls', $pb.PbFieldType.PM, - subBuilder: Poll.create) + subBuilder: Poll.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1951,18 +2188,24 @@ class GetPollsResponse extends $pb.GeneratedMessage { class PostPollVoteResponse extends $pb.GeneratedMessage { factory PostPollVoteResponse() => create(); PostPollVoteResponse._() : super(); - factory PostPollVoteResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPollVoteResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostPollVoteResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPollVoteResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostPollVoteResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' @@ -2044,42 +2287,58 @@ class User extends $pb.GeneratedMessage { return $result; } User._() : super(); - factory User.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory User.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory User.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory User.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'User', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'lastName', protoName: 'lastName') - ..aOS(4, _omitFieldNames ? '' : 'email') - ..aOS(5, _omitFieldNames ? '' : 'matriculationNumber', - protoName: 'matriculationNumber') + ..aOS(4, _omitFieldNames ? '' : 'email')..aOS( + 5, _omitFieldNames ? '' : 'matriculationNumber', + protoName: 'matriculationNumber', + ) ..aOS(6, _omitFieldNames ? '' : 'lrzID', protoName: 'lrzID') ..a<$core.int>(7, _omitFieldNames ? '' : 'role', $pb.PbFieldType.OU3) ..pc(8, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, - subBuilder: Course.create) + subBuilder: Course.create, + ) ..pc( 9, _omitFieldNames ? '' : 'administeredCourses', $pb.PbFieldType.PM, - protoName: 'administeredCourses', subBuilder: Course.create) + protoName: 'administeredCourses', + subBuilder: Course.create, + ) ..pc(10, _omitFieldNames ? '' : 'pinnedCourses', $pb.PbFieldType.PM, - protoName: 'pinnedCourses', subBuilder: Course.create) + protoName: 'pinnedCourses', + subBuilder: Course.create, + ) ..pc(11, _omitFieldNames ? '' : 'settings', $pb.PbFieldType.PM, - subBuilder: UserSetting.create) + subBuilder: UserSetting.create, + ) ..pc(12, _omitFieldNames ? '' : 'bookmarks', $pb.PbFieldType.PM, - subBuilder: Bookmark.create) + subBuilder: Bookmark.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') User clone() => User()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2212,21 +2471,29 @@ class UserSetting extends $pb.GeneratedMessage { return $result; } UserSetting._() : super(); - factory UserSetting.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory UserSetting.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory UserSetting.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory UserSetting.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'UserSetting', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..e(3, _omitFieldNames ? '' : 'type', $pb.PbFieldType.OE, defaultOrMaker: UserSettingType.PREFERRED_NAME, valueOf: UserSettingType.valueOf, - enumValues: UserSettingType.values) + enumValues: UserSettingType.values, + ) ..aOS(4, _omitFieldNames ? '' : 'value') ..hasRequiredFields = false; @@ -2234,6 +2501,7 @@ class UserSetting extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') UserSetting clone() => UserSetting()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2280,23 +2548,30 @@ class UserSetting extends $pb.GeneratedMessage { class GetUserRequest extends $pb.GeneratedMessage { factory GetUserRequest() => create(); GetUserRequest._() : super(); - factory GetUserRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetUserRequest clone() => GetUserRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2309,6 +2584,7 @@ class GetUserRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserRequest create() => GetUserRequest._(); GetUserRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2340,17 +2616,24 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { return $result; } GetUserCoursesRequest._() : super(); - factory GetUserCoursesRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserCoursesRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserCoursesRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserCoursesRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserCoursesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) @@ -2362,11 +2645,13 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetUserCoursesRequest clone() => GetUserCoursesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetUserCoursesRequest copyWith( - void Function(GetUserCoursesRequest) updates) => + void Function(GetUserCoursesRequest) updates, + ) => super.copyWith((message) => updates(message as GetUserCoursesRequest)) as GetUserCoursesRequest; @@ -2375,6 +2660,7 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserCoursesRequest create() => GetUserCoursesRequest._(); GetUserCoursesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2454,17 +2740,24 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { return $result; } GetUserPinnedRequest._() : super(); - factory GetUserPinnedRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserPinnedRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserPinnedRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserPinnedRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserPinnedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) @@ -2476,6 +2769,7 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetUserPinnedRequest clone() => GetUserPinnedRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2488,6 +2782,7 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserPinnedRequest create() => GetUserPinnedRequest._(); GetUserPinnedRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2547,23 +2842,30 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { class GetUserAdminRequest extends $pb.GeneratedMessage { factory GetUserAdminRequest() => create(); GetUserAdminRequest._() : super(); - factory GetUserAdminRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserAdminRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserAdminRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserAdminRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserAdminRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetUserAdminRequest clone() => GetUserAdminRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2576,6 +2878,7 @@ class GetUserAdminRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserAdminRequest create() => GetUserAdminRequest._(); GetUserAdminRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2587,29 +2890,37 @@ class GetUserAdminRequest extends $pb.GeneratedMessage { class GetUserSettingsRequest extends $pb.GeneratedMessage { factory GetUserSettingsRequest() => create(); GetUserSettingsRequest._() : super(); - factory GetUserSettingsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserSettingsRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserSettingsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserSettingsRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserSettingsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetUserSettingsRequest clone() => GetUserSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetUserSettingsRequest copyWith( - void Function(GetUserSettingsRequest) updates) => + void Function(GetUserSettingsRequest) updates, + ) => super.copyWith((message) => updates(message as GetUserSettingsRequest)) as GetUserSettingsRequest; @@ -2618,6 +2929,7 @@ class GetUserSettingsRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserSettingsRequest create() => GetUserSettingsRequest._(); GetUserSettingsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2637,20 +2949,29 @@ class PatchUserSettingsRequest extends $pb.GeneratedMessage { return $result; } PatchUserSettingsRequest._() : super(); - factory PatchUserSettingsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchUserSettingsRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PatchUserSettingsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchUserSettingsRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PatchUserSettingsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc( 1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, - protoName: 'userSettings', subBuilder: UserSetting.create) + protoName: 'userSettings', + subBuilder: UserSetting.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -2658,11 +2979,13 @@ class PatchUserSettingsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') PatchUserSettingsRequest clone() => PatchUserSettingsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PatchUserSettingsRequest copyWith( - void Function(PatchUserSettingsRequest) updates) => + void Function(PatchUserSettingsRequest) updates, + ) => super.copyWith((message) => updates(message as PatchUserSettingsRequest)) as PatchUserSettingsRequest; @@ -2671,6 +2994,7 @@ class PatchUserSettingsRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PatchUserSettingsRequest create() => PatchUserSettingsRequest._(); PatchUserSettingsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2693,20 +3017,29 @@ class PatchUserSettingsResponse extends $pb.GeneratedMessage { return $result; } PatchUserSettingsResponse._() : super(); - factory PatchUserSettingsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchUserSettingsResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PatchUserSettingsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchUserSettingsResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PatchUserSettingsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc( 1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, - protoName: 'userSettings', subBuilder: UserSetting.create) + protoName: 'userSettings', + subBuilder: UserSetting.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -2714,11 +3047,13 @@ class PatchUserSettingsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') PatchUserSettingsResponse clone() => PatchUserSettingsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PatchUserSettingsResponse copyWith( - void Function(PatchUserSettingsResponse) updates) => + void Function(PatchUserSettingsResponse) updates, + ) => super.copyWith((message) => updates(message as PatchUserSettingsResponse)) as PatchUserSettingsResponse; @@ -2727,6 +3062,7 @@ class PatchUserSettingsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PatchUserSettingsResponse create() => PatchUserSettingsResponse._(); PatchUserSettingsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2749,25 +3085,34 @@ class PostPinnedRequest extends $pb.GeneratedMessage { return $result; } PostPinnedRequest._() : super(); - factory PostPinnedRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPinnedRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostPinnedRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPinnedRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostPinnedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, - protoName: 'courseID') + protoName: 'courseID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PostPinnedRequest clone() => PostPinnedRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2780,6 +3125,7 @@ class PostPinnedRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostPinnedRequest create() => PostPinnedRequest._(); PostPinnedRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2811,25 +3157,34 @@ class DeletePinnedRequest extends $pb.GeneratedMessage { return $result; } DeletePinnedRequest._() : super(); - factory DeletePinnedRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeletePinnedRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeletePinnedRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeletePinnedRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeletePinnedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, - protoName: 'courseID') + protoName: 'courseID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DeletePinnedRequest clone() => DeletePinnedRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2842,6 +3197,7 @@ class DeletePinnedRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeletePinnedRequest create() => DeletePinnedRequest._(); DeletePinnedRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2873,17 +3229,24 @@ class GetUserResponse extends $pb.GeneratedMessage { return $result; } GetUserResponse._() : super(); - factory GetUserResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'user', subBuilder: User.create) ..hasRequiredFields = false; @@ -2891,6 +3254,7 @@ class GetUserResponse extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetUserResponse clone() => GetUserResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -2903,6 +3267,7 @@ class GetUserResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserResponse create() => GetUserResponse._(); GetUserResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2936,19 +3301,27 @@ class GetUserCoursesResponse extends $pb.GeneratedMessage { return $result; } GetUserCoursesResponse._() : super(); - factory GetUserCoursesResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserCoursesResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserCoursesResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserCoursesResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserCoursesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, - subBuilder: Course.create) + subBuilder: Course.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -2956,11 +3329,13 @@ class GetUserCoursesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetUserCoursesResponse clone() => GetUserCoursesResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetUserCoursesResponse copyWith( - void Function(GetUserCoursesResponse) updates) => + void Function(GetUserCoursesResponse) updates, + ) => super.copyWith((message) => updates(message as GetUserCoursesResponse)) as GetUserCoursesResponse; @@ -2969,6 +3344,7 @@ class GetUserCoursesResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserCoursesResponse create() => GetUserCoursesResponse._(); GetUserCoursesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -2991,19 +3367,27 @@ class GetUserPinnedResponse extends $pb.GeneratedMessage { return $result; } GetUserPinnedResponse._() : super(); - factory GetUserPinnedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserPinnedResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserPinnedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserPinnedResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserPinnedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, - subBuilder: Course.create) + subBuilder: Course.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3011,11 +3395,13 @@ class GetUserPinnedResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetUserPinnedResponse clone() => GetUserPinnedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetUserPinnedResponse copyWith( - void Function(GetUserPinnedResponse) updates) => + void Function(GetUserPinnedResponse) updates, + ) => super.copyWith((message) => updates(message as GetUserPinnedResponse)) as GetUserPinnedResponse; @@ -3024,6 +3410,7 @@ class GetUserPinnedResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserPinnedResponse create() => GetUserPinnedResponse._(); GetUserPinnedResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3046,19 +3433,27 @@ class GetUserAdminResponse extends $pb.GeneratedMessage { return $result; } GetUserAdminResponse._() : super(); - factory GetUserAdminResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserAdminResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserAdminResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserAdminResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserAdminResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, - subBuilder: Course.create) + subBuilder: Course.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3066,6 +3461,7 @@ class GetUserAdminResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetUserAdminResponse clone() => GetUserAdminResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3078,6 +3474,7 @@ class GetUserAdminResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserAdminResponse create() => GetUserAdminResponse._(); GetUserAdminResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3100,20 +3497,29 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { return $result; } GetUserSettingsResponse._() : super(); - factory GetUserSettingsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserSettingsResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetUserSettingsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetUserSettingsResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetUserSettingsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc( 1, _omitFieldNames ? '' : 'userSettings', $pb.PbFieldType.PM, - protoName: 'userSettings', subBuilder: UserSetting.create) + protoName: 'userSettings', + subBuilder: UserSetting.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3121,11 +3527,13 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetUserSettingsResponse clone() => GetUserSettingsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetUserSettingsResponse copyWith( - void Function(GetUserSettingsResponse) updates) => + void Function(GetUserSettingsResponse) updates, + ) => super.copyWith((message) => updates(message as GetUserSettingsResponse)) as GetUserSettingsResponse; @@ -3134,6 +3542,7 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetUserSettingsResponse create() => GetUserSettingsResponse._(); GetUserSettingsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3148,23 +3557,30 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { class PostPinnedResponse extends $pb.GeneratedMessage { factory PostPinnedResponse() => create(); PostPinnedResponse._() : super(); - factory PostPinnedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPinnedResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostPinnedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostPinnedResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostPinnedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PostPinnedResponse clone() => PostPinnedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3177,6 +3593,7 @@ class PostPinnedResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostPinnedResponse create() => PostPinnedResponse._(); PostPinnedResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3188,24 +3605,31 @@ class PostPinnedResponse extends $pb.GeneratedMessage { class DeletePinnedResponse extends $pb.GeneratedMessage { factory DeletePinnedResponse() => create(); DeletePinnedResponse._() : super(); - factory DeletePinnedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeletePinnedResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeletePinnedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeletePinnedResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeletePinnedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DeletePinnedResponse clone() => DeletePinnedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3218,6 +3642,7 @@ class DeletePinnedResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeletePinnedResponse create() => DeletePinnedResponse._(); DeletePinnedResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3261,32 +3686,45 @@ class Bookmark extends $pb.GeneratedMessage { return $result; } Bookmark._() : super(); - factory Bookmark.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Bookmark.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Bookmark.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Bookmark.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Bookmark', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'description') ..a<$core.int>(3, _omitFieldNames ? '' : 'hours', $pb.PbFieldType.OU3) ..a<$core.int>(4, _omitFieldNames ? '' : 'minutes', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3) - ..a<$core.int>(6, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, - protoName: 'userID') - ..a<$core.int>(7, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + ..a<$core.int>(5, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3)..a< + $core.int>(6, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, + protoName: 'userID', + ) + ..a<$core.int>( + 7, + _omitFieldNames ? '' : 'streamID', + $pb.PbFieldType.OU3, + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Bookmark clone() => Bookmark()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3400,25 +3838,34 @@ class GetBookmarksRequest extends $pb.GeneratedMessage { return $result; } GetBookmarksRequest._() : super(); - factory GetBookmarksRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBookmarksRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetBookmarksRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBookmarksRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetBookmarksRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetBookmarksRequest clone() => GetBookmarksRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3431,6 +3878,7 @@ class GetBookmarksRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetBookmarksRequest create() => GetBookmarksRequest._(); GetBookmarksRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3478,29 +3926,38 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { return $result; } PutBookmarkRequest._() : super(); - factory PutBookmarkRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutBookmarkRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PutBookmarkRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutBookmarkRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PutBookmarkRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'description') ..a<$core.int>(2, _omitFieldNames ? '' : 'hours', $pb.PbFieldType.OU3) ..a<$core.int>(3, _omitFieldNames ? '' : 'minutes', $pb.PbFieldType.OU3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3)..a< + $core.int>(5, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PutBookmarkRequest clone() => PutBookmarkRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3513,6 +3970,7 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PutBookmarkRequest create() => PutBookmarkRequest._(); PutBookmarkRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3608,23 +4066,31 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { return $result; } PatchBookmarkRequest._() : super(); - factory PatchBookmarkRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchBookmarkRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PatchBookmarkRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchBookmarkRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PatchBookmarkRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'description') ..a<$core.int>(2, _omitFieldNames ? '' : 'hours', $pb.PbFieldType.OU3) ..a<$core.int>(3, _omitFieldNames ? '' : 'minutes', $pb.PbFieldType.OU3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3) - ..a<$core.int>(5, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, - protoName: 'bookmarkID') + ..a<$core.int>(4, _omitFieldNames ? '' : 'seconds', $pb.PbFieldType.OU3)..a< + $core.int>(5, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, + protoName: 'bookmarkID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3632,6 +4098,7 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') PatchBookmarkRequest clone() => PatchBookmarkRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3644,6 +4111,7 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PatchBookmarkRequest create() => PatchBookmarkRequest._(); PatchBookmarkRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3723,19 +4191,27 @@ class DeleteBookmarkRequest extends $pb.GeneratedMessage { return $result; } DeleteBookmarkRequest._() : super(); - factory DeleteBookmarkRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteBookmarkRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeleteBookmarkRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteBookmarkRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeleteBookmarkRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'bookmarkID', $pb.PbFieldType.OU3, - protoName: 'bookmarkID') + protoName: 'bookmarkID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3743,11 +4219,13 @@ class DeleteBookmarkRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteBookmarkRequest clone() => DeleteBookmarkRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteBookmarkRequest copyWith( - void Function(DeleteBookmarkRequest) updates) => + void Function(DeleteBookmarkRequest) updates, + ) => super.copyWith((message) => updates(message as DeleteBookmarkRequest)) as DeleteBookmarkRequest; @@ -3756,6 +4234,7 @@ class DeleteBookmarkRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeleteBookmarkRequest create() => DeleteBookmarkRequest._(); DeleteBookmarkRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3787,19 +4266,27 @@ class GetBookmarksResponse extends $pb.GeneratedMessage { return $result; } GetBookmarksResponse._() : super(); - factory GetBookmarksResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBookmarksResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetBookmarksResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBookmarksResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetBookmarksResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'bookmarks', $pb.PbFieldType.PM, - subBuilder: Bookmark.create) + subBuilder: Bookmark.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3807,6 +4294,7 @@ class GetBookmarksResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetBookmarksResponse clone() => GetBookmarksResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3819,6 +4307,7 @@ class GetBookmarksResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetBookmarksResponse create() => GetBookmarksResponse._(); GetBookmarksResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3841,25 +4330,34 @@ class PutBookmarkResponse extends $pb.GeneratedMessage { return $result; } PutBookmarkResponse._() : super(); - factory PutBookmarkResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutBookmarkResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PutBookmarkResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutBookmarkResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PutBookmarkResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'bookmark', - subBuilder: Bookmark.create) + subBuilder: Bookmark.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PutBookmarkResponse clone() => PutBookmarkResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -3872,6 +4370,7 @@ class PutBookmarkResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PutBookmarkResponse create() => PutBookmarkResponse._(); PutBookmarkResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3905,19 +4404,27 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { return $result; } PatchBookmarkResponse._() : super(); - factory PatchBookmarkResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchBookmarkResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PatchBookmarkResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PatchBookmarkResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PatchBookmarkResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'bookmark', - subBuilder: Bookmark.create) + subBuilder: Bookmark.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3925,11 +4432,13 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') PatchBookmarkResponse clone() => PatchBookmarkResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PatchBookmarkResponse copyWith( - void Function(PatchBookmarkResponse) updates) => + void Function(PatchBookmarkResponse) updates, + ) => super.copyWith((message) => updates(message as PatchBookmarkResponse)) as PatchBookmarkResponse; @@ -3938,6 +4447,7 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PatchBookmarkResponse create() => PatchBookmarkResponse._(); PatchBookmarkResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -3963,29 +4473,37 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { class DeleteBookmarkResponse extends $pb.GeneratedMessage { factory DeleteBookmarkResponse() => create(); DeleteBookmarkResponse._() : super(); - factory DeleteBookmarkResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteBookmarkResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeleteBookmarkResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteBookmarkResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeleteBookmarkResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DeleteBookmarkResponse clone() => DeleteBookmarkResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteBookmarkResponse copyWith( - void Function(DeleteBookmarkResponse) updates) => + void Function(DeleteBookmarkResponse) updates, + ) => super.copyWith((message) => updates(message as DeleteBookmarkResponse)) as DeleteBookmarkResponse; @@ -3994,6 +4512,7 @@ class DeleteBookmarkResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeleteBookmarkResponse create() => DeleteBookmarkResponse._(); DeleteBookmarkResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4029,17 +4548,24 @@ class BannerAlert extends $pb.GeneratedMessage { return $result; } BannerAlert._() : super(); - factory BannerAlert.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory BannerAlert.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory BannerAlert.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory BannerAlert.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'BannerAlert', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'startsAt', protoName: 'startsAt') ..aOS(3, _omitFieldNames ? '' : 'expiresAt', protoName: 'expiresAt') @@ -4051,6 +4577,7 @@ class BannerAlert extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') BannerAlert clone() => BannerAlert()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -4153,28 +4680,37 @@ class FeatureNotification extends $pb.GeneratedMessage { return $result; } FeatureNotification._() : super(); - factory FeatureNotification.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory FeatureNotification.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory FeatureNotification.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory FeatureNotification.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'FeatureNotification', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'Title', protoName: 'Title') ..aOS(3, _omitFieldNames ? '' : 'Body', protoName: 'Body') ..a<$core.int>(4, _omitFieldNames ? '' : 'Target', $pb.PbFieldType.OU3, - protoName: 'Target') + protoName: 'Target', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') FeatureNotification clone() => FeatureNotification()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -4187,6 +4723,7 @@ class FeatureNotification extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static FeatureNotification create() => FeatureNotification._(); FeatureNotification createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4254,17 +4791,24 @@ class PostDeviceTokenRequest extends $pb.GeneratedMessage { return $result; } PostDeviceTokenRequest._() : super(); - factory PostDeviceTokenRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostDeviceTokenRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostDeviceTokenRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostDeviceTokenRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostDeviceTokenRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'deviceToken', protoName: 'deviceToken') ..hasRequiredFields = false; @@ -4273,11 +4817,13 @@ class PostDeviceTokenRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') PostDeviceTokenRequest clone() => PostDeviceTokenRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostDeviceTokenRequest copyWith( - void Function(PostDeviceTokenRequest) updates) => + void Function(PostDeviceTokenRequest) updates, + ) => super.copyWith((message) => updates(message as PostDeviceTokenRequest)) as PostDeviceTokenRequest; @@ -4286,6 +4832,7 @@ class PostDeviceTokenRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostDeviceTokenRequest create() => PostDeviceTokenRequest._(); PostDeviceTokenRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4317,17 +4864,24 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { return $result; } DeleteDeviceTokenRequest._() : super(); - factory DeleteDeviceTokenRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteDeviceTokenRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeleteDeviceTokenRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteDeviceTokenRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeleteDeviceTokenRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'deviceToken', protoName: 'deviceToken') ..hasRequiredFields = false; @@ -4336,11 +4890,13 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') DeleteDeviceTokenRequest clone() => DeleteDeviceTokenRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteDeviceTokenRequest copyWith( - void Function(DeleteDeviceTokenRequest) updates) => + void Function(DeleteDeviceTokenRequest) updates, + ) => super.copyWith((message) => updates(message as DeleteDeviceTokenRequest)) as DeleteDeviceTokenRequest; @@ -4349,6 +4905,7 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeleteDeviceTokenRequest create() => DeleteDeviceTokenRequest._(); DeleteDeviceTokenRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4372,29 +4929,37 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { class GetBannerAlertsRequest extends $pb.GeneratedMessage { factory GetBannerAlertsRequest() => create(); GetBannerAlertsRequest._() : super(); - factory GetBannerAlertsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBannerAlertsRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetBannerAlertsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBannerAlertsRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetBannerAlertsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetBannerAlertsRequest clone() => GetBannerAlertsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetBannerAlertsRequest copyWith( - void Function(GetBannerAlertsRequest) updates) => + void Function(GetBannerAlertsRequest) updates, + ) => super.copyWith((message) => updates(message as GetBannerAlertsRequest)) as GetBannerAlertsRequest; @@ -4403,6 +4968,7 @@ class GetBannerAlertsRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetBannerAlertsRequest create() => GetBannerAlertsRequest._(); GetBannerAlertsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4414,32 +4980,40 @@ class GetBannerAlertsRequest extends $pb.GeneratedMessage { class GetFeatureNotificationsRequest extends $pb.GeneratedMessage { factory GetFeatureNotificationsRequest() => create(); GetFeatureNotificationsRequest._() : super(); - factory GetFeatureNotificationsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetFeatureNotificationsRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetFeatureNotificationsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetFeatureNotificationsRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetFeatureNotificationsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetFeatureNotificationsRequest clone() => GetFeatureNotificationsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetFeatureNotificationsRequest copyWith( - void Function(GetFeatureNotificationsRequest) updates) => + void Function(GetFeatureNotificationsRequest) updates, + ) => super.copyWith( - (message) => updates(message as GetFeatureNotificationsRequest)) - as GetFeatureNotificationsRequest; + (message) => updates(message as GetFeatureNotificationsRequest), + ) as GetFeatureNotificationsRequest; $pb.BuilderInfo get info_ => _i; @@ -4447,6 +5021,7 @@ class GetFeatureNotificationsRequest extends $pb.GeneratedMessage { static GetFeatureNotificationsRequest create() => GetFeatureNotificationsRequest._(); GetFeatureNotificationsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4458,29 +5033,37 @@ class GetFeatureNotificationsRequest extends $pb.GeneratedMessage { class PostDeviceTokenResponse extends $pb.GeneratedMessage { factory PostDeviceTokenResponse() => create(); PostDeviceTokenResponse._() : super(); - factory PostDeviceTokenResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostDeviceTokenResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PostDeviceTokenResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PostDeviceTokenResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PostDeviceTokenResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PostDeviceTokenResponse clone() => PostDeviceTokenResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') PostDeviceTokenResponse copyWith( - void Function(PostDeviceTokenResponse) updates) => + void Function(PostDeviceTokenResponse) updates, + ) => super.copyWith((message) => updates(message as PostDeviceTokenResponse)) as PostDeviceTokenResponse; @@ -4489,6 +5072,7 @@ class PostDeviceTokenResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostDeviceTokenResponse create() => PostDeviceTokenResponse._(); PostDeviceTokenResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4500,29 +5084,37 @@ class PostDeviceTokenResponse extends $pb.GeneratedMessage { class DeleteDeviceTokenResponse extends $pb.GeneratedMessage { factory DeleteDeviceTokenResponse() => create(); DeleteDeviceTokenResponse._() : super(); - factory DeleteDeviceTokenResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteDeviceTokenResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory DeleteDeviceTokenResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory DeleteDeviceTokenResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'DeleteDeviceTokenResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') DeleteDeviceTokenResponse clone() => DeleteDeviceTokenResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') DeleteDeviceTokenResponse copyWith( - void Function(DeleteDeviceTokenResponse) updates) => + void Function(DeleteDeviceTokenResponse) updates, + ) => super.copyWith((message) => updates(message as DeleteDeviceTokenResponse)) as DeleteDeviceTokenResponse; @@ -4531,6 +5123,7 @@ class DeleteDeviceTokenResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static DeleteDeviceTokenResponse create() => DeleteDeviceTokenResponse._(); DeleteDeviceTokenResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4550,20 +5143,29 @@ class GetBannerAlertsResponse extends $pb.GeneratedMessage { return $result; } GetBannerAlertsResponse._() : super(); - factory GetBannerAlertsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBannerAlertsResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetBannerAlertsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetBannerAlertsResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetBannerAlertsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc( 1, _omitFieldNames ? '' : 'bannerAlerts', $pb.PbFieldType.PM, - protoName: 'bannerAlerts', subBuilder: BannerAlert.create) + protoName: 'bannerAlerts', + subBuilder: BannerAlert.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -4571,11 +5173,13 @@ class GetBannerAlertsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetBannerAlertsResponse clone() => GetBannerAlertsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetBannerAlertsResponse copyWith( - void Function(GetBannerAlertsResponse) updates) => + void Function(GetBannerAlertsResponse) updates, + ) => super.copyWith((message) => updates(message as GetBannerAlertsResponse)) as GetBannerAlertsResponse; @@ -4584,6 +5188,7 @@ class GetBannerAlertsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetBannerAlertsResponse create() => GetBannerAlertsResponse._(); GetBannerAlertsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -4606,21 +5211,29 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { return $result; } GetFeatureNotificationsResponse._() : super(); - factory GetFeatureNotificationsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetFeatureNotificationsResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetFeatureNotificationsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetFeatureNotificationsResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetFeatureNotificationsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc( 1, _omitFieldNames ? '' : 'featureNotifications', $pb.PbFieldType.PM, protoName: 'featureNotifications', - subBuilder: FeatureNotification.create) + subBuilder: FeatureNotification.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -4628,14 +5241,16 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetFeatureNotificationsResponse clone() => GetFeatureNotificationsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetFeatureNotificationsResponse copyWith( - void Function(GetFeatureNotificationsResponse) updates) => + void Function(GetFeatureNotificationsResponse) updates, + ) => super.copyWith( - (message) => updates(message as GetFeatureNotificationsResponse)) - as GetFeatureNotificationsResponse; + (message) => updates(message as GetFeatureNotificationsResponse), + ) as GetFeatureNotificationsResponse; $pb.BuilderInfo get info_ => _i; @@ -4643,12 +5258,14 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { static GetFeatureNotificationsResponse create() => GetFeatureNotificationsResponse._(); GetFeatureNotificationsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static GetFeatureNotificationsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static GetFeatureNotificationsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -4726,52 +5343,79 @@ class Course extends $pb.GeneratedMessage { return $result; } Course._() : super(); - factory Course.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Course.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Course.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Course.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Course', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'slug') ..aOM(4, _omitFieldNames ? '' : 'semester', - subBuilder: Semester.create) + subBuilder: Semester.create, + ) ..aOS(5, _omitFieldNames ? '' : 'TUMOnlineIdentifier', - protoName: 'TUMOnlineIdentifier') - ..aOB(6, _omitFieldNames ? '' : 'VODEnabled', protoName: 'VODEnabled') - ..aOB(7, _omitFieldNames ? '' : 'downloadsEnabled', - protoName: 'downloadsEnabled') - ..aOB(8, _omitFieldNames ? '' : 'chatEnabled', protoName: 'chatEnabled') - ..aOB(9, _omitFieldNames ? '' : 'anonymousChatEnabled', - protoName: 'anonymousChatEnabled') - ..aOB(10, _omitFieldNames ? '' : 'moderatedChatEnabled', - protoName: 'moderatedChatEnabled') - ..aOB(11, _omitFieldNames ? '' : 'vodChatEnabled', - protoName: 'vodChatEnabled') + protoName: 'TUMOnlineIdentifier', + ) + ..aOB(6, _omitFieldNames ? '' : 'VODEnabled', protoName: 'VODEnabled')..aOB( + 7, _omitFieldNames ? '' : 'downloadsEnabled', + protoName: 'downloadsEnabled', + ) + ..aOB(8, _omitFieldNames ? '' : 'chatEnabled', protoName: 'chatEnabled')..aOB( + 9, _omitFieldNames ? '' : 'anonymousChatEnabled', + protoName: 'anonymousChatEnabled', + ) + ..aOB( + 10, + _omitFieldNames ? '' : 'moderatedChatEnabled', + protoName: 'moderatedChatEnabled', + ) + ..aOB( + 11, + _omitFieldNames ? '' : 'vodChatEnabled', + protoName: 'vodChatEnabled', + ) ..pc(12, _omitFieldNames ? '' : 'streams', $pb.PbFieldType.PM, - subBuilder: Stream.create) + subBuilder: Stream.create, + ) ..aOS(13, _omitFieldNames ? '' : 'cameraPresetPreferences', - protoName: 'cameraPresetPreferences') - ..aOS(14, _omitFieldNames ? '' : 'sourcePreferences', - protoName: 'sourcePreferences') + protoName: 'cameraPresetPreferences', + ) + ..aOS( + 14, + _omitFieldNames ? '' : 'sourcePreferences', + protoName: 'sourcePreferences', + ) ..a<$core.int>( 15, _omitFieldNames ? '' : 'lastRecordingID', $pb.PbFieldType.OU3, - protoName: 'lastRecordingID') + protoName: 'lastRecordingID', + ) ..a<$core.int>( - 16, _omitFieldNames ? '' : 'nextLectureID', $pb.PbFieldType.OU3, - protoName: 'nextLectureID') + 16, + _omitFieldNames ? '' : 'nextLectureID', + $pb.PbFieldType.OU3, + protoName: 'nextLectureID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Course clone() => Course()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -4990,17 +5634,24 @@ class Semester extends $pb.GeneratedMessage { return $result; } Semester._() : super(); - factory Semester.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Semester.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Semester.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Semester.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Semester', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'teachingTerm', protoName: 'teachingTerm') ..a<$core.int>(2, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..hasRequiredFields = false; @@ -5009,6 +5660,7 @@ class Semester extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Semester clone() => Semester()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -5074,17 +5726,24 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { return $result; } GetPublicCoursesRequest._() : super(); - factory GetPublicCoursesRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPublicCoursesRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetPublicCoursesRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPublicCoursesRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetPublicCoursesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) @@ -5096,11 +5755,13 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetPublicCoursesRequest clone() => GetPublicCoursesRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetPublicCoursesRequest copyWith( - void Function(GetPublicCoursesRequest) updates) => + void Function(GetPublicCoursesRequest) updates, + ) => super.copyWith((message) => updates(message as GetPublicCoursesRequest)) as GetPublicCoursesRequest; @@ -5109,6 +5770,7 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetPublicCoursesRequest create() => GetPublicCoursesRequest._(); GetPublicCoursesRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -5168,23 +5830,30 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { class GetSemestersRequest extends $pb.GeneratedMessage { factory GetSemestersRequest() => create(); GetSemestersRequest._() : super(); - factory GetSemestersRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetSemestersRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetSemestersRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetSemestersRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetSemestersRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetSemestersRequest clone() => GetSemestersRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -5197,6 +5866,7 @@ class GetSemestersRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetSemestersRequest create() => GetSemestersRequest._(); GetSemestersRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -5216,19 +5886,27 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { return $result; } GetCourseStreamsRequest._() : super(); - factory GetCourseStreamsRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetCourseStreamsRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetCourseStreamsRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetCourseStreamsRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetCourseStreamsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, - protoName: 'courseID') + protoName: 'courseID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -5236,11 +5914,13 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetCourseStreamsRequest clone() => GetCourseStreamsRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetCourseStreamsRequest copyWith( - void Function(GetCourseStreamsRequest) updates) => + void Function(GetCourseStreamsRequest) updates, + ) => super.copyWith((message) => updates(message as GetCourseStreamsRequest)) as GetCourseStreamsRequest; @@ -5249,6 +5929,7 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetCourseStreamsRequest create() => GetCourseStreamsRequest._(); GetCourseStreamsRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -5280,19 +5961,27 @@ class GetPublicCoursesResponse extends $pb.GeneratedMessage { return $result; } GetPublicCoursesResponse._() : super(); - factory GetPublicCoursesResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPublicCoursesResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetPublicCoursesResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetPublicCoursesResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetPublicCoursesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'courses', $pb.PbFieldType.PM, - subBuilder: Course.create) + subBuilder: Course.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -5300,11 +5989,13 @@ class GetPublicCoursesResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetPublicCoursesResponse clone() => GetPublicCoursesResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetPublicCoursesResponse copyWith( - void Function(GetPublicCoursesResponse) updates) => + void Function(GetPublicCoursesResponse) updates, + ) => super.copyWith((message) => updates(message as GetPublicCoursesResponse)) as GetPublicCoursesResponse; @@ -5313,6 +6004,7 @@ class GetPublicCoursesResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetPublicCoursesResponse create() => GetPublicCoursesResponse._(); GetPublicCoursesResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -5339,21 +6031,30 @@ class GetSemestersResponse extends $pb.GeneratedMessage { return $result; } GetSemestersResponse._() : super(); - factory GetSemestersResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetSemestersResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetSemestersResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetSemestersResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetSemestersResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'current', - subBuilder: Semester.create) + subBuilder: Semester.create, + ) ..pc(2, _omitFieldNames ? '' : 'semesters', $pb.PbFieldType.PM, - subBuilder: Semester.create) + subBuilder: Semester.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -5361,6 +6062,7 @@ class GetSemestersResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetSemestersResponse clone() => GetSemestersResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -5373,6 +6075,7 @@ class GetSemestersResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetSemestersResponse create() => GetSemestersResponse._(); GetSemestersResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -5409,19 +6112,27 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { return $result; } GetCourseStreamsResponse._() : super(); - factory GetCourseStreamsResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetCourseStreamsResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetCourseStreamsResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetCourseStreamsResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetCourseStreamsResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'streams', $pb.PbFieldType.PM, - subBuilder: Stream.create) + subBuilder: Stream.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -5429,11 +6140,13 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetCourseStreamsResponse clone() => GetCourseStreamsResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetCourseStreamsResponse copyWith( - void Function(GetCourseStreamsResponse) updates) => + void Function(GetCourseStreamsResponse) updates, + ) => super.copyWith((message) => updates(message as GetCourseStreamsResponse)) as GetCourseStreamsResponse; @@ -5442,6 +6155,7 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetCourseStreamsResponse create() => GetCourseStreamsResponse._(); GetCourseStreamsResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -5572,57 +6286,80 @@ class Stream extends $pb.GeneratedMessage { return $result; } Stream._() : super(); - factory Stream.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Stream.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Stream.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Stream.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Stream', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') ..a<$core.int>(4, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, - protoName: 'courseID') + protoName: 'courseID', + ) ..aOM<$1.Timestamp>(5, _omitFieldNames ? '' : 'start', - subBuilder: $1.Timestamp.create) + subBuilder: $1.Timestamp.create, + ) ..aOM<$1.Timestamp>(6, _omitFieldNames ? '' : 'end', - subBuilder: $1.Timestamp.create) + subBuilder: $1.Timestamp.create, + ) ..aOB(7, _omitFieldNames ? '' : 'chatEnabled', protoName: 'chatEnabled') ..aOS(8, _omitFieldNames ? '' : 'roomName', protoName: 'roomName') - ..aOS(9, _omitFieldNames ? '' : 'roomCode', protoName: 'roomCode') - ..aOS(10, _omitFieldNames ? '' : 'eventTypeName', - protoName: 'eventTypeName') + ..aOS(9, _omitFieldNames ? '' : 'roomCode', protoName: 'roomCode')..aOS( + 10, _omitFieldNames ? '' : 'eventTypeName', + protoName: 'eventTypeName', + ) ..a<$core.int>( 11, _omitFieldNames ? '' : 'TUMOnlineEventID', $pb.PbFieldType.OU3, - protoName: 'TUMOnlineEventID') + protoName: 'TUMOnlineEventID', + ) ..aOS(12, _omitFieldNames ? '' : 'seriesIdentifier', - protoName: 'seriesIdentifier') - ..aOS(13, _omitFieldNames ? '' : 'playlistUrl', protoName: 'playlistUrl') - ..aOS(14, _omitFieldNames ? '' : 'playlistUrlPRES', - protoName: 'playlistUrlPRES') - ..aOS(15, _omitFieldNames ? '' : 'playlistUrlCAM', - protoName: 'playlistUrlCAM') + protoName: 'seriesIdentifier', + ) + ..aOS(13, _omitFieldNames ? '' : 'playlistUrl', protoName: 'playlistUrl')..aOS( + 14, _omitFieldNames ? '' : 'playlistUrlPRES', + protoName: 'playlistUrlPRES', + ) + ..aOS( + 15, + _omitFieldNames ? '' : 'playlistUrlCAM', + protoName: 'playlistUrlCAM', + ) ..aOB(16, _omitFieldNames ? '' : 'liveNow', protoName: 'liveNow') ..aOM<$1.Timestamp>(17, _omitFieldNames ? '' : 'liveNowTimestamp', - protoName: 'liveNowTimestamp', subBuilder: $1.Timestamp.create) + protoName: 'liveNowTimestamp', + subBuilder: $1.Timestamp.create, + ) ..aOB(18, _omitFieldNames ? '' : 'recording') ..aOB(19, _omitFieldNames ? '' : 'premiere') ..aOB(20, _omitFieldNames ? '' : 'ended') ..a<$core.int>(21, _omitFieldNames ? '' : 'vodViews', $pb.PbFieldType.OU3, - protoName: 'vodViews') + protoName: 'vodViews', + ) ..a<$core.int>( 22, _omitFieldNames ? '' : 'startOffset', $pb.PbFieldType.OU3, - protoName: 'startOffset') + protoName: 'startOffset', + ) ..a<$core.int>(23, _omitFieldNames ? '' : 'endOffset', $pb.PbFieldType.OU3, - protoName: 'endOffset') + protoName: 'endOffset', + ) ..a<$core.int>(28, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OU3) ..pc(29, _omitFieldNames ? '' : 'downloads', $pb.PbFieldType.PM, - subBuilder: Download.create) + subBuilder: Download.create, + ) ..aOB(30, _omitFieldNames ? '' : 'isPlanned', protoName: 'isPlanned') ..aOB(31, _omitFieldNames ? '' : 'isComingUp', protoName: 'isComingUp') ..aOS(32, _omitFieldNames ? '' : 'HLSUrl', protoName: 'HLSUrl') @@ -5632,6 +6369,7 @@ class Stream extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Stream clone() => Stream()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -5994,25 +6732,34 @@ class GetStreamRequest extends $pb.GeneratedMessage { return $result; } GetStreamRequest._() : super(); - factory GetStreamRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetStreamRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetStreamRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetStreamRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetStreamRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetStreamRequest clone() => GetStreamRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6025,6 +6772,7 @@ class GetStreamRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetStreamRequest create() => GetStreamRequest._(); GetStreamRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6048,23 +6796,30 @@ class GetStreamRequest extends $pb.GeneratedMessage { class GetNowLiveRequest extends $pb.GeneratedMessage { factory GetNowLiveRequest() => create(); GetNowLiveRequest._() : super(); - factory GetNowLiveRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetNowLiveRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetNowLiveRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetNowLiveRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetNowLiveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) - ..hasRequiredFields = false; + createEmptyInstance: create, + )..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetNowLiveRequest clone() => GetNowLiveRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6077,6 +6832,7 @@ class GetNowLiveRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetNowLiveRequest create() => GetNowLiveRequest._(); GetNowLiveRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6096,19 +6852,27 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { return $result; } GetThumbsLiveRequest._() : super(); - factory GetThumbsLiveRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsLiveRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetThumbsLiveRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsLiveRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetThumbsLiveRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -6116,6 +6880,7 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') GetThumbsLiveRequest clone() => GetThumbsLiveRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6128,6 +6893,7 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetThumbsLiveRequest create() => GetThumbsLiveRequest._(); GetThumbsLiveRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6159,25 +6925,34 @@ class GetThumbsVODRequest extends $pb.GeneratedMessage { return $result; } GetThumbsVODRequest._() : super(); - factory GetThumbsVODRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsVODRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetThumbsVODRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsVODRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetThumbsVODRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetThumbsVODRequest clone() => GetThumbsVODRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6190,6 +6965,7 @@ class GetThumbsVODRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetThumbsVODRequest create() => GetThumbsVODRequest._(); GetThumbsVODRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6221,17 +6997,24 @@ class GetStreamResponse extends $pb.GeneratedMessage { return $result; } GetStreamResponse._() : super(); - factory GetStreamResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetStreamResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetStreamResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetStreamResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetStreamResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'stream', subBuilder: Stream.create) ..hasRequiredFields = false; @@ -6239,6 +7022,7 @@ class GetStreamResponse extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetStreamResponse clone() => GetStreamResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6251,6 +7035,7 @@ class GetStreamResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetStreamResponse create() => GetStreamResponse._(); GetStreamResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6284,25 +7069,34 @@ class GetNowLiveResponse extends $pb.GeneratedMessage { return $result; } GetNowLiveResponse._() : super(); - factory GetNowLiveResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetNowLiveResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetNowLiveResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetNowLiveResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetNowLiveResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..pc(1, _omitFieldNames ? '' : 'stream', $pb.PbFieldType.PM, - subBuilder: Stream.create) + subBuilder: Stream.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetNowLiveResponse clone() => GetNowLiveResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6315,6 +7109,7 @@ class GetNowLiveResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetNowLiveResponse create() => GetNowLiveResponse._(); GetNowLiveResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6337,17 +7132,24 @@ class GetThumbsVODResponse extends $pb.GeneratedMessage { return $result; } GetThumbsVODResponse._() : super(); - factory GetThumbsVODResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsVODResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetThumbsVODResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsVODResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetThumbsVODResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'path') ..hasRequiredFields = false; @@ -6356,6 +7158,7 @@ class GetThumbsVODResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetThumbsVODResponse clone() => GetThumbsVODResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6368,6 +7171,7 @@ class GetThumbsVODResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetThumbsVODResponse create() => GetThumbsVODResponse._(); GetThumbsVODResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6399,17 +7203,24 @@ class GetThumbsLiveResponse extends $pb.GeneratedMessage { return $result; } GetThumbsLiveResponse._() : super(); - factory GetThumbsLiveResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsLiveResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetThumbsLiveResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetThumbsLiveResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetThumbsLiveResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'path') ..hasRequiredFields = false; @@ -6418,11 +7229,13 @@ class GetThumbsLiveResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') GetThumbsLiveResponse clone() => GetThumbsLiveResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') GetThumbsLiveResponse copyWith( - void Function(GetThumbsLiveResponse) updates) => + void Function(GetThumbsLiveResponse) updates, + ) => super.copyWith((message) => updates(message as GetThumbsLiveResponse)) as GetThumbsLiveResponse; @@ -6431,6 +7244,7 @@ class GetThumbsLiveResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetThumbsLiveResponse create() => GetThumbsLiveResponse._(); GetThumbsLiveResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6466,17 +7280,24 @@ class Download extends $pb.GeneratedMessage { return $result; } Download._() : super(); - factory Download.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Download.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Download.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Download.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Download', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOS(1, _omitFieldNames ? '' : 'friendlyName', protoName: 'friendlyName') ..aOS(2, _omitFieldNames ? '' : 'downloadURL', protoName: 'downloadURL') ..hasRequiredFields = false; @@ -6485,6 +7306,7 @@ class Download extends $pb.GeneratedMessage { 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Download clone() => Download()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6550,29 +7372,39 @@ class Progress extends $pb.GeneratedMessage { return $result; } Progress._() : super(); - factory Progress.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Progress.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory Progress.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory Progress.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'Progress', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.double>(1, _omitFieldNames ? '' : 'progress', $pb.PbFieldType.OF) ..aOB(2, _omitFieldNames ? '' : 'watched') ..a<$core.int>(3, _omitFieldNames ? '' : 'userID', $pb.PbFieldType.OU3, - protoName: 'userID') + protoName: 'userID', + ) ..a<$core.int>(4, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') Progress clone() => Progress()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6650,25 +7482,34 @@ class GetProgressRequest extends $pb.GeneratedMessage { return $result; } GetProgressRequest._() : super(); - factory GetProgressRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetProgressRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetProgressRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetProgressRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetProgressRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetProgressRequest clone() => GetProgressRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6681,6 +7522,7 @@ class GetProgressRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetProgressRequest create() => GetProgressRequest._(); GetProgressRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6716,26 +7558,35 @@ class PutProgressRequest extends $pb.GeneratedMessage { return $result; } PutProgressRequest._() : super(); - factory PutProgressRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutProgressRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PutProgressRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutProgressRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PutProgressRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.double>(1, _omitFieldNames ? '' : 'progress', $pb.PbFieldType.OF) ..a<$core.int>(3, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PutProgressRequest clone() => PutProgressRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6748,6 +7599,7 @@ class PutProgressRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PutProgressRequest create() => PutProgressRequest._(); PutProgressRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6791,19 +7643,27 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { return $result; } MarkAsWatchedRequest._() : super(); - factory MarkAsWatchedRequest.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkAsWatchedRequest.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory MarkAsWatchedRequest.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkAsWatchedRequest.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'MarkAsWatchedRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, - protoName: 'streamID') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -6811,6 +7671,7 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { 'Will be removed in next major version') MarkAsWatchedRequest clone() => MarkAsWatchedRequest()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6823,6 +7684,7 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static MarkAsWatchedRequest create() => MarkAsWatchedRequest._(); MarkAsWatchedRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6854,25 +7716,34 @@ class GetProgressResponse extends $pb.GeneratedMessage { return $result; } GetProgressResponse._() : super(); - factory GetProgressResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetProgressResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory GetProgressResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory GetProgressResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'GetProgressResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'progress', - subBuilder: Progress.create) + subBuilder: Progress.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') GetProgressResponse clone() => GetProgressResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6885,6 +7756,7 @@ class GetProgressResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetProgressResponse create() => GetProgressResponse._(); GetProgressResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6918,25 +7790,34 @@ class PutProgressResponse extends $pb.GeneratedMessage { return $result; } PutProgressResponse._() : super(); - factory PutProgressResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutProgressResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory PutProgressResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory PutProgressResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'PutProgressResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'progress', - subBuilder: Progress.create) + subBuilder: Progress.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') PutProgressResponse clone() => PutProgressResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') @@ -6949,6 +7830,7 @@ class PutProgressResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PutProgressResponse create() => PutProgressResponse._(); PutProgressResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') @@ -6982,19 +7864,27 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { return $result; } MarkAsWatchedResponse._() : super(); - factory MarkAsWatchedResponse.fromBuffer($core.List<$core.int> i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkAsWatchedResponse.fromBuffer( + $core.List<$core.int> i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromBuffer(i, r); - factory MarkAsWatchedResponse.fromJson($core.String i, - [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + + factory MarkAsWatchedResponse.fromJson( + $core.String i, [ + $pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY, + ]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo( _omitMessageNames ? '' : 'MarkAsWatchedResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), - createEmptyInstance: create) + createEmptyInstance: create, + ) ..aOM(1, _omitFieldNames ? '' : 'progress', - subBuilder: Progress.create) + subBuilder: Progress.create, + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -7002,11 +7892,13 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { 'Will be removed in next major version') MarkAsWatchedResponse clone() => MarkAsWatchedResponse()..mergeFromMessage(this); + @$core.Deprecated('Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') MarkAsWatchedResponse copyWith( - void Function(MarkAsWatchedResponse) updates) => + void Function(MarkAsWatchedResponse) updates, + ) => super.copyWith((message) => updates(message as MarkAsWatchedResponse)) as MarkAsWatchedResponse; @@ -7015,6 +7907,7 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static MarkAsWatchedResponse create() => MarkAsWatchedResponse._(); MarkAsWatchedResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') diff --git a/lib/base/networking/api/gocast/api_v2.pbjson.dart b/lib/base/networking/api/gocast/api_v2.pbjson.dart index 4bd311a1..11118b19 100644 --- a/lib/base/networking/api/gocast/api_v2.pbjson.dart +++ b/lib/base/networking/api/gocast/api_v2.pbjson.dart @@ -77,7 +77,7 @@ const ChatMessage$json = { '4': 3, '5': 11, '6': '.protobuf.ChatReaction', - '10': 'reactions' + '10': 'reactions', }, { '1': 'replies', @@ -85,7 +85,7 @@ const ChatMessage$json = { '4': 3, '5': 11, '6': '.protobuf.ChatMessage', - '10': 'replies' + '10': 'replies', }, { '1': 'addressedUsers', @@ -93,7 +93,7 @@ const ChatMessage$json = { '4': 3, '5': 11, '6': '.protobuf.AddressedUser', - '10': 'addressedUsers' + '10': 'addressedUsers', }, {'1': 'isResolved', '3': 12, '4': 1, '5': 8, '10': 'isResolved'}, { @@ -102,7 +102,7 @@ const ChatMessage$json = { '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', - '10': 'createdAt' + '10': 'createdAt', }, {'1': 'isAdmin', '3': 14, '4': 1, '5': 8, '10': 'isAdmin'}, ], @@ -132,7 +132,8 @@ const GetChatMessagesRequest$json = { /// Descriptor for `GetChatMessagesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getChatMessagesRequestDescriptor = $convert.base64Decode( - 'ChZHZXRDaGF0TWVzc2FnZXNSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); + 'ChZHZXRDaGF0TWVzc2FnZXNSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA==', +); @$core.Deprecated('Use postChatMessageRequestDescriptor instead') const PostChatMessageRequest$json = { @@ -235,7 +236,7 @@ const GetChatMessagesResponse$json = { '4': 3, '5': 11, '6': '.protobuf.ChatMessage', - '10': 'messages' + '10': 'messages', }, ], }; @@ -256,7 +257,7 @@ const PostChatMessageResponse$json = { '4': 1, '5': 11, '6': '.protobuf.ChatMessage', - '10': 'message' + '10': 'message', }, ], }; @@ -277,7 +278,7 @@ const PostChatReactionResponse$json = { '4': 1, '5': 11, '6': '.protobuf.ChatReaction', - '10': 'reaction' + '10': 'reaction', }, ], }; @@ -307,7 +308,7 @@ const PostChatReplyResponse$json = { '4': 1, '5': 11, '6': '.protobuf.ChatMessage', - '10': 'reply' + '10': 'reply', }, ], }; @@ -327,7 +328,7 @@ const MarkChatMessageAsResolvedResponse$json = { '4': 1, '5': 11, '6': '.protobuf.ChatMessage', - '10': 'message' + '10': 'message', }, ], }; @@ -348,7 +349,7 @@ const MarkChatMessageAsUnresolvedResponse$json = { '4': 1, '5': 11, '6': '.protobuf.ChatMessage', - '10': 'message' + '10': 'message', }, ], }; @@ -373,7 +374,7 @@ const Poll$json = { '4': 3, '5': 11, '6': '.protobuf.PollOption', - '10': 'pollOptions' + '10': 'pollOptions', }, ], }; @@ -410,7 +411,8 @@ const GetPollsRequest$json = { /// Descriptor for `GetPollsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPollsRequestDescriptor = $convert.base64Decode( - 'Cg9HZXRQb2xsc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE'); + 'Cg9HZXRQb2xsc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE', +); @$core.Deprecated('Use postPollVoteRequestDescriptor instead') const PostPollVoteRequest$json = { @@ -436,7 +438,7 @@ const GetPollsResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Poll', - '10': 'polls' + '10': 'polls', }, ], }; @@ -468,7 +470,7 @@ const User$json = { '3': 5, '4': 1, '5': 9, - '10': 'matriculationNumber' + '10': 'matriculationNumber', }, {'1': 'lrzID', '3': 6, '4': 1, '5': 9, '10': 'lrzID'}, {'1': 'role', '3': 7, '4': 1, '5': 13, '10': 'role'}, @@ -478,7 +480,7 @@ const User$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'courses' + '10': 'courses', }, { '1': 'administeredCourses', @@ -486,7 +488,7 @@ const User$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'administeredCourses' + '10': 'administeredCourses', }, { '1': 'pinnedCourses', @@ -494,7 +496,7 @@ const User$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'pinnedCourses' + '10': 'pinnedCourses', }, { '1': 'settings', @@ -502,7 +504,7 @@ const User$json = { '4': 3, '5': 11, '6': '.protobuf.UserSetting', - '10': 'settings' + '10': 'settings', }, { '1': 'bookmarks', @@ -510,7 +512,7 @@ const User$json = { '4': 3, '5': 11, '6': '.protobuf.Bookmark', - '10': 'bookmarks' + '10': 'bookmarks', }, ], }; @@ -537,7 +539,7 @@ const UserSetting$json = { '4': 1, '5': 14, '6': '.protobuf.UserSettingType', - '10': 'type' + '10': 'type', }, {'1': 'value', '3': 4, '4': 1, '5': 9, '10': 'value'}, ], @@ -617,7 +619,7 @@ const PatchUserSettingsRequest$json = { '4': 3, '5': 11, '6': '.protobuf.UserSetting', - '10': 'userSettings' + '10': 'userSettings', }, ], }; @@ -638,7 +640,7 @@ const PatchUserSettingsResponse$json = { '4': 3, '5': 11, '6': '.protobuf.UserSetting', - '10': 'userSettings' + '10': 'userSettings', }, ], }; @@ -659,7 +661,8 @@ const PostPinnedRequest$json = { /// Descriptor for `PostPinnedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List postPinnedRequestDescriptor = $convert.base64Decode( - 'ChFQb3N0UGlubmVkUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ='); + 'ChFQb3N0UGlubmVkUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ=', +); @$core.Deprecated('Use deletePinnedRequestDescriptor instead') const DeletePinnedRequest$json = { @@ -672,7 +675,8 @@ const DeletePinnedRequest$json = { /// Descriptor for `DeletePinnedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deletePinnedRequestDescriptor = $convert.base64Decode( - 'ChNEZWxldGVQaW5uZWRSZXF1ZXN0EhoKCGNvdXJzZUlEGAEgASgNUghjb3Vyc2VJRA=='); + 'ChNEZWxldGVQaW5uZWRSZXF1ZXN0EhoKCGNvdXJzZUlEGAEgASgNUghjb3Vyc2VJRA==', +); @$core.Deprecated('Use getUserResponseDescriptor instead') const GetUserResponse$json = { @@ -684,7 +688,8 @@ const GetUserResponse$json = { /// Descriptor for `GetUserResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getUserResponseDescriptor = $convert.base64Decode( - 'Cg9HZXRVc2VyUmVzcG9uc2USIgoEdXNlchgBIAEoCzIOLnByb3RvYnVmLlVzZXJSBHVzZXI='); + 'Cg9HZXRVc2VyUmVzcG9uc2USIgoEdXNlchgBIAEoCzIOLnByb3RvYnVmLlVzZXJSBHVzZXI=', +); @$core.Deprecated('Use getUserCoursesResponseDescriptor instead') const GetUserCoursesResponse$json = { @@ -696,7 +701,7 @@ const GetUserCoursesResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'courses' + '10': 'courses', }, ], }; @@ -717,7 +722,7 @@ const GetUserPinnedResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'courses' + '10': 'courses', }, ], }; @@ -737,7 +742,7 @@ const GetUserAdminResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'courses' + '10': 'courses', }, ], }; @@ -757,7 +762,7 @@ const GetUserSettingsResponse$json = { '4': 3, '5': 11, '6': '.protobuf.UserSetting', - '10': 'userSettings' + '10': 'userSettings', }, ], }; @@ -818,7 +823,8 @@ const GetBookmarksRequest$json = { /// Descriptor for `GetBookmarksRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getBookmarksRequestDescriptor = $convert.base64Decode( - 'ChNHZXRCb29rbWFya3NSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); + 'ChNHZXRCb29rbWFya3NSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA==', +); @$core.Deprecated('Use putBookmarkRequestDescriptor instead') const PutBookmarkRequest$json = { @@ -879,7 +885,7 @@ const GetBookmarksResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Bookmark', - '10': 'bookmarks' + '10': 'bookmarks', }, ], }; @@ -899,7 +905,7 @@ const PutBookmarkResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Bookmark', - '10': 'bookmark' + '10': 'bookmark', }, ], }; @@ -919,7 +925,7 @@ const PatchBookmarkResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Bookmark', - '10': 'bookmark' + '10': 'bookmark', }, ], }; @@ -1046,7 +1052,7 @@ const GetBannerAlertsResponse$json = { '4': 3, '5': 11, '6': '.protobuf.BannerAlert', - '10': 'bannerAlerts' + '10': 'bannerAlerts', }, ], }; @@ -1067,7 +1073,7 @@ const GetFeatureNotificationsResponse$json = { '4': 3, '5': 11, '6': '.protobuf.FeatureNotification', - '10': 'featureNotifications' + '10': 'featureNotifications', }, ], }; @@ -1092,14 +1098,14 @@ const Course$json = { '4': 1, '5': 11, '6': '.protobuf.Semester', - '10': 'semester' + '10': 'semester', }, { '1': 'TUMOnlineIdentifier', '3': 5, '4': 1, '5': 9, - '10': 'TUMOnlineIdentifier' + '10': 'TUMOnlineIdentifier', }, {'1': 'VODEnabled', '3': 6, '4': 1, '5': 8, '10': 'VODEnabled'}, {'1': 'downloadsEnabled', '3': 7, '4': 1, '5': 8, '10': 'downloadsEnabled'}, @@ -1109,14 +1115,14 @@ const Course$json = { '3': 9, '4': 1, '5': 8, - '10': 'anonymousChatEnabled' + '10': 'anonymousChatEnabled', }, { '1': 'moderatedChatEnabled', '3': 10, '4': 1, '5': 8, - '10': 'moderatedChatEnabled' + '10': 'moderatedChatEnabled', }, {'1': 'vodChatEnabled', '3': 11, '4': 1, '5': 8, '10': 'vodChatEnabled'}, { @@ -1125,21 +1131,21 @@ const Course$json = { '4': 3, '5': 11, '6': '.protobuf.Stream', - '10': 'streams' + '10': 'streams', }, { '1': 'cameraPresetPreferences', '3': 13, '4': 1, '5': 9, - '10': 'cameraPresetPreferences' + '10': 'cameraPresetPreferences', }, { '1': 'sourcePreferences', '3': 14, '4': 1, '5': 9, - '10': 'sourcePreferences' + '10': 'sourcePreferences', }, {'1': 'lastRecordingID', '3': 15, '4': 1, '5': 13, '10': 'lastRecordingID'}, {'1': 'nextLectureID', '3': 16, '4': 1, '5': 13, '10': 'nextLectureID'}, @@ -1211,7 +1217,8 @@ const GetCourseStreamsRequest$json = { /// Descriptor for `GetCourseStreamsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getCourseStreamsRequestDescriptor = $convert.base64Decode( - 'ChdHZXRDb3Vyc2VTdHJlYW1zUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ='); + 'ChdHZXRDb3Vyc2VTdHJlYW1zUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ=', +); @$core.Deprecated('Use getPublicCoursesResponseDescriptor instead') const GetPublicCoursesResponse$json = { @@ -1223,7 +1230,7 @@ const GetPublicCoursesResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Course', - '10': 'courses' + '10': 'courses', }, ], }; @@ -1244,7 +1251,7 @@ const GetSemestersResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Semester', - '10': 'current' + '10': 'current', }, { '1': 'semesters', @@ -1252,7 +1259,7 @@ const GetSemestersResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Semester', - '10': 'semesters' + '10': 'semesters', }, ], }; @@ -1273,7 +1280,7 @@ const GetCourseStreamsResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Stream', - '10': 'streams' + '10': 'streams', }, ], }; @@ -1298,7 +1305,7 @@ const Stream$json = { '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', - '10': 'start' + '10': 'start', }, { '1': 'end', @@ -1306,7 +1313,7 @@ const Stream$json = { '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', - '10': 'end' + '10': 'end', }, {'1': 'chatEnabled', '3': 7, '4': 1, '5': 8, '10': 'chatEnabled'}, {'1': 'roomName', '3': 8, '4': 1, '5': 9, '10': 'roomName'}, @@ -1317,14 +1324,14 @@ const Stream$json = { '3': 11, '4': 1, '5': 13, - '10': 'TUMOnlineEventID' + '10': 'TUMOnlineEventID', }, { '1': 'seriesIdentifier', '3': 12, '4': 1, '5': 9, - '10': 'seriesIdentifier' + '10': 'seriesIdentifier', }, {'1': 'playlistUrl', '3': 13, '4': 1, '5': 9, '10': 'playlistUrl'}, {'1': 'playlistUrlPRES', '3': 14, '4': 1, '5': 9, '10': 'playlistUrlPRES'}, @@ -1336,7 +1343,7 @@ const Stream$json = { '4': 1, '5': 11, '6': '.google.protobuf.Timestamp', - '10': 'liveNowTimestamp' + '10': 'liveNowTimestamp', }, {'1': 'recording', '3': 18, '4': 1, '5': 8, '10': 'recording'}, {'1': 'premiere', '3': 19, '4': 1, '5': 8, '10': 'premiere'}, @@ -1351,7 +1358,7 @@ const Stream$json = { '4': 3, '5': 11, '6': '.protobuf.Download', - '10': 'downloads' + '10': 'downloads', }, {'1': 'isPlanned', '3': 30, '4': 1, '5': 8, '10': 'isPlanned'}, {'1': 'isComingUp', '3': 31, '4': 1, '5': 8, '10': 'isComingUp'}, @@ -1390,7 +1397,8 @@ const GetStreamRequest$json = { /// Descriptor for `GetStreamRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getStreamRequestDescriptor = $convert.base64Decode( - 'ChBHZXRTdHJlYW1SZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); + 'ChBHZXRTdHJlYW1SZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA==', +); @$core.Deprecated('Use getNowLiveRequestDescriptor instead') const GetNowLiveRequest$json = { @@ -1412,7 +1420,8 @@ const GetThumbsLiveRequest$json = { /// Descriptor for `GetThumbsLiveRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getThumbsLiveRequestDescriptor = $convert.base64Decode( - 'ChRHZXRUaHVtYnNMaXZlUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ='); + 'ChRHZXRUaHVtYnNMaXZlUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ=', +); @$core.Deprecated('Use getThumbsVODRequestDescriptor instead') const GetThumbsVODRequest$json = { @@ -1425,7 +1434,8 @@ const GetThumbsVODRequest$json = { /// Descriptor for `GetThumbsVODRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getThumbsVODRequestDescriptor = $convert.base64Decode( - 'ChNHZXRUaHVtYnNWT0RSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); + 'ChNHZXRUaHVtYnNWT0RSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA==', +); @$core.Deprecated('Use getStreamResponseDescriptor instead') const GetStreamResponse$json = { @@ -1437,7 +1447,7 @@ const GetStreamResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Stream', - '10': 'stream' + '10': 'stream', }, ], }; @@ -1457,7 +1467,7 @@ const GetNowLiveResponse$json = { '4': 3, '5': 11, '6': '.protobuf.Stream', - '10': 'stream' + '10': 'stream', }, ], }; @@ -1490,7 +1500,8 @@ const GetThumbsLiveResponse$json = { /// Descriptor for `GetThumbsLiveResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getThumbsLiveResponseDescriptor = $convert.base64Decode( - 'ChVHZXRUaHVtYnNMaXZlUmVzcG9uc2USEgoEcGF0aBgBIAEoCVIEcGF0aA=='); + 'ChVHZXRUaHVtYnNMaXZlUmVzcG9uc2USEgoEcGF0aBgBIAEoCVIEcGF0aA==', +); @$core.Deprecated('Use downloadDescriptor instead') const Download$json = { @@ -1534,7 +1545,8 @@ const GetProgressRequest$json = { /// Descriptor for `GetProgressRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getProgressRequestDescriptor = $convert.base64Decode( - 'ChJHZXRQcm9ncmVzc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE'); + 'ChJHZXRQcm9ncmVzc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE', +); @$core.Deprecated('Use putProgressRequestDescriptor instead') const PutProgressRequest$json = { @@ -1561,7 +1573,8 @@ const MarkAsWatchedRequest$json = { /// Descriptor for `MarkAsWatchedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List markAsWatchedRequestDescriptor = $convert.base64Decode( - 'ChRNYXJrQXNXYXRjaGVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ='); + 'ChRNYXJrQXNXYXRjaGVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ=', +); @$core.Deprecated('Use getProgressResponseDescriptor instead') const GetProgressResponse$json = { @@ -1573,7 +1586,7 @@ const GetProgressResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Progress', - '10': 'progress' + '10': 'progress', }, ], }; @@ -1593,7 +1606,7 @@ const PutProgressResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Progress', - '10': 'progress' + '10': 'progress', }, ], }; @@ -1613,7 +1626,7 @@ const MarkAsWatchedResponse$json = { '4': 1, '5': 11, '6': '.protobuf.Progress', - '10': 'progress' + '10': 'progress', }, ], }; diff --git a/lib/base/networking/api/handler/chat_handler.dart b/lib/base/networking/api/handler/chat_handler.dart index 3ca0ad0e..d5343084 100644 --- a/lib/base/networking/api/handler/chat_handler.dart +++ b/lib/base/networking/api/handler/chat_handler.dart @@ -1,5 +1,4 @@ import 'dart:async'; - import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/base/networking/api/handler/grpc_handler.dart'; import 'package:logger/logger.dart'; @@ -10,7 +9,7 @@ class ChatHandlers { ChatHandlers(this._grpcHandler); - Future> getChatMessages(streamID) async { + Future> getChatMessages(int streamID) async { _logger.i('Fetching chat messages'); return _grpcHandler.callGrpcMethod( (client) async { @@ -22,7 +21,7 @@ class ChatHandlers { ); } - Future postChatMessage(streamID, String message) async { + Future postChatMessage(int streamID, String message) async { _logger.i('Posting chat message'); return _grpcHandler.callGrpcMethod( (client) async { @@ -38,11 +37,9 @@ class ChatHandlers { ); } - Future postMessageReaction( - messageID, - streamID, - String emoji, - ) async { + Future postMessageReaction(int messageID, + int streamID, + String emoji,) async { _logger.i('Posting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { @@ -59,11 +56,9 @@ class ChatHandlers { ); } - Future deleteMessageReaction( - messageID, - streamID, - reactionID, - ) async { + Future deleteMessageReaction(int messageID, + int streamID, + int reactionID,) async { _logger.i('Deleting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { @@ -79,11 +74,9 @@ class ChatHandlers { ); } - Future postChatReply( - messageID, - streamID, - String message, - ) async { + Future postChatReply(int messageID, + int streamID, + String message,) async { _logger.i('Posting chat reply'); return _grpcHandler.callGrpcMethod( (client) async { @@ -100,10 +93,7 @@ class ChatHandlers { ); } - Future markChatMessageAsResolved( - messageID, - streamID, - ) async { + Future markChatMessageAsResolved(int messageID, int streamID) async { _logger.i('Marking chat message as resolved'); return _grpcHandler.callGrpcMethod( (client) async { @@ -118,10 +108,7 @@ class ChatHandlers { ); } - Future markChatMessageAsUnresolved( - messageID, - streamID, - ) async { + Future markChatMessageAsUnresolved(int messageID, int streamID) async { _logger.i('Marking chat message as unresolved'); return _grpcHandler.callGrpcMethod( (client) async { @@ -135,4 +122,5 @@ class ChatHandlers { }, ); } -} + +} \ No newline at end of file diff --git a/lib/base/networking/api/handler/poll_handler.dart b/lib/base/networking/api/handler/poll_handler.dart new file mode 100644 index 00000000..128b578c --- /dev/null +++ b/lib/base/networking/api/handler/poll_handler.dart @@ -0,0 +1,44 @@ +import 'dart:async'; + +import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; +import 'package:gocast_mobile/base/networking/api/handler/grpc_handler.dart'; +import 'package:logger/logger.dart'; + +class PollHandlers { + static final Logger _logger = Logger(); + final GrpcHandler _grpcHandler; + + PollHandlers(this._grpcHandler); + + Future> getPolls(int streamID) async { + _logger.i('Fetching polls for streamID: $streamID'); + return _grpcHandler.callGrpcMethod( + (client) async { + final response = + await client.getPolls(GetPollsRequest(streamID: streamID)); + _logger.d('Polls fetched: ${response.polls}'); + return response.polls; + }, + ); + } + + Future postPollVote(int streamID, int pollOptionID) async { + _logger.i( + 'Posting poll vote for streamID: $streamID, pollOptionID: $pollOptionID', + ); + return _grpcHandler.callGrpcMethod( + (client) async { + await client.postPollVote(PostPollVoteRequest( + streamID: streamID, + pollOptionID: pollOptionID, + ), + ); + _logger.i( + 'Poll vote posted successfully for option $pollOptionID in stream $streamID', + ); + // Assuming PostPollVoteResponse doesn't have a field to return, just logging the success + }, + ); + } +// Add any additional poll-related methods here, similar to the ChatHandlers class +} diff --git a/lib/base/networking/api/handler/stream_handler.dart b/lib/base/networking/api/handler/stream_handler.dart index 7cd14e05..92ef6de5 100644 --- a/lib/base/networking/api/handler/stream_handler.dart +++ b/lib/base/networking/api/handler/stream_handler.dart @@ -15,7 +15,7 @@ class StreamHandler { /// /// Takes [courseID] as a parameter. /// Returns a [List] instance that represents the user's streams. - Future> fetchCourseStreams(courseID) async { + Future> fetchCourseStreams(int courseID) async { _logger.i('Fetching streams'); return _grpcHandler.callGrpcMethod( (client) async { @@ -68,7 +68,8 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [String] instance that represents the thumbnail stream. - Future fetchThumbnailStreams(streamId) async { + + Future fetchThumbnailStreams(int streamId) async { _logger.i('Fetching thumbnail stream'); return _grpcHandler.callGrpcMethod( (client) async { @@ -86,7 +87,8 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [String] instance that represents the thumbnail VOD. - Future fetchThumbnailVOD(streamId) async { + + Future fetchThumbnailVOD(int streamId) async { _logger.i('Fetching thumbnail VOD'); return _grpcHandler.callGrpcMethod( (client) async { @@ -104,7 +106,8 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [Progress] instance that represents the progress of the stream. - Future fetchProgress(streamId) async { + + Future fetchProgress(int streamId) async { _logger.i('Fetching progress'); try { return _grpcHandler.callGrpcMethod( @@ -127,6 +130,7 @@ class StreamHandler { /// This method sends a `putProgress` gRPC call to update the progress of a stream. /// /// Takes [streamId] and [progress] as parameters. + Future putProgress(streamId, Progress progress) async { _logger.i('Updating progress'); await _grpcHandler.callGrpcMethod( @@ -147,6 +151,7 @@ class StreamHandler { /// This method sends a `markAsWatched` gRPC call to mark a stream as watched. /// /// Takes [streamId] as a parameter. + Future markAsWatched(streamId) async { _logger.i('Marking stream as watched'); await _grpcHandler.callGrpcMethod( diff --git a/lib/models/poll/poll_state_model.dart b/lib/models/poll/poll_state_model.dart new file mode 100644 index 00000000..c9a29a3c --- /dev/null +++ b/lib/models/poll/poll_state_model.dart @@ -0,0 +1,57 @@ +import 'package:flutter/material.dart'; +import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pbgrpc.dart'; // Assuming Poll is defined here +import 'package:gocast_mobile/models/error/error_model.dart'; + +@immutable +class PollState { + final bool isLoading; + final List? polls; + final Map answeredPolls; // pollId, pollOptionId + final AppError? error; + + const PollState({ + this.isLoading = false, + this.polls, + this.error, + this.answeredPolls = const {}, + }); + + PollState copyWith({ + bool? isLoading, + List? polls, + Map? answeredPolls, + AppError? error, + bool? isRateLimitReached, + bool? accessDenied, + }) { + return PollState( + isLoading: isLoading ?? this.isLoading, + polls: polls ?? this.polls, + answeredPolls: answeredPolls ?? this.answeredPolls, + error: error ?? this.error, + ); + } + + PollState clearError() { + return PollState( + isLoading: isLoading, + polls: polls, + answeredPolls: answeredPolls, + error: null, + ); + } + + PollState addAnsweredPoll(int pollId, int pollOptionId) { + // Create a new map from the existing answeredPolls and add the new answered poll + final updatedAnsweredPolls = Map.from(answeredPolls) + ..[pollId] = pollOptionId; + + // Return a new PollState with the updated map + return PollState( + isLoading: isLoading, + polls: polls, + answeredPolls: updatedAnsweredPolls, + error: error, + ); + } +} diff --git a/lib/providers.dart b/lib/providers.dart index 545bc417..660d69f1 100644 --- a/lib/providers.dart +++ b/lib/providers.dart @@ -4,12 +4,14 @@ import 'package:gocast_mobile/config/app_config.dart'; import 'package:gocast_mobile/models/chat/chat_state_model.dart'; import 'package:gocast_mobile/models/course/course_state_model.dart'; import 'package:gocast_mobile/models/notifications/notification_state_model.dart'; +import 'package:gocast_mobile/models/poll/poll_state_model.dart'; import 'package:gocast_mobile/models/settings/setting_state_model.dart'; import 'package:gocast_mobile/models/user/user_state_model.dart'; import 'package:gocast_mobile/view_models/chat_view_model.dart'; import 'package:gocast_mobile/view_models/course_view_model.dart'; import 'package:gocast_mobile/view_models/notification_view_model.dart'; import 'package:gocast_mobile/view_models/download_view_model.dart'; +import 'package:gocast_mobile/view_models/poll_view_model.dart'; import 'package:gocast_mobile/view_models/setting_view_model.dart'; import 'package:gocast_mobile/view_models/stream_view_model.dart'; import 'package:gocast_mobile/view_models/user_view_model.dart'; @@ -59,6 +61,9 @@ final settingViewModelProvider = StateNotifierProvider((ref) { return SettingViewModel(ref.watch(grpcHandlerProvider)); }); +final pollViewModelProvider = StateNotifierProvider( + (ref) => PollViewModel(ref.watch(grpcHandlerProvider)), +); final progressProvider = FutureProvider.autoDispose.family( (ref, streamId) async { diff --git a/lib/view_models/chat_view_model.dart b/lib/view_models/chat_view_model.dart index bdad9bf0..4a5f9b9e 100644 --- a/lib/view_models/chat_view_model.dart +++ b/lib/view_models/chat_view_model.dart @@ -12,7 +12,7 @@ class ChatViewModel extends StateNotifier { ChatViewModel(this._grpcHandler) : super(const ChatState()); - Future fetchChatMessages(streamId) async { + Future fetchChatMessages(int streamId) async { state = state.copyWith(isLoading: true); state = state.clearError(); try { @@ -29,7 +29,7 @@ class ChatViewModel extends StateNotifier { } } - Future postChatMessage(streamId, message) async { + Future postChatMessage(int streamId, String message) async { try { fetchChatMessages(streamId); var chatMessage = @@ -55,11 +55,8 @@ class ChatViewModel extends StateNotifier { } } - Future postMessageReaction( - messageId, - streamId, - emoji, - ) async { + Future postMessageReaction(int messageId, int streamId, + String emoji,) async { try { var reaction = await ChatHandlers(_grpcHandler) .postMessageReaction(messageId, streamId, emoji); @@ -70,11 +67,8 @@ class ChatViewModel extends StateNotifier { } } - Future deleteMessageReaction( - messageId, - streamId, - reactionId, - ) async { + Future deleteMessageReaction(int messageId, int streamId, + int reactionId,) async { try { await ChatHandlers(_grpcHandler) .deleteMessageReaction(messageId, streamId, reactionId); @@ -84,11 +78,8 @@ class ChatViewModel extends StateNotifier { } } - Future postChatReply( - messageId, - streamId, - message, - ) async { + Future postChatReply(int messageId, int streamId, + String message,) async { try { var replay = await ChatHandlers(_grpcHandler) .postChatReply(messageId, streamId, message); @@ -99,10 +90,7 @@ class ChatViewModel extends StateNotifier { } } - Future markChatMessageAsResolved( - messageId, - streamId, - ) async { + Future markChatMessageAsResolved(int messageId, int streamId) async { try { await ChatHandlers(_grpcHandler) .markChatMessageAsResolved(messageId, streamId); @@ -112,10 +100,7 @@ class ChatViewModel extends StateNotifier { } } - Future markChatMessageAsUnresolved( - messageId, - streamId, - ) async { + Future markChatMessageAsUnresolved(int messageId, int streamId) async { try { await ChatHandlers(_grpcHandler) .markChatMessageAsUnresolved(messageId, streamId); @@ -129,6 +114,7 @@ class ChatViewModel extends StateNotifier { state = state.clearError(); } + bool _isRateLimitError(dynamic error) { return error.toString().contains("posting too fast"); } diff --git a/lib/view_models/poll_view_model.dart b/lib/view_models/poll_view_model.dart new file mode 100644 index 00000000..f9a55723 --- /dev/null +++ b/lib/view_models/poll_view_model.dart @@ -0,0 +1,55 @@ +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:gocast_mobile/base/networking/api/handler/poll_handler.dart'; +import 'package:gocast_mobile/base/networking/api/handler/grpc_handler.dart'; +import 'package:gocast_mobile/models/error/error_model.dart'; +import 'package:gocast_mobile/models/poll/poll_state_model.dart'; // Make sure to create this file +import 'package:logger/logger.dart'; + +class PollViewModel extends StateNotifier { + final Logger _logger = Logger(); + final GrpcHandler _grpcHandler; + + PollViewModel(this._grpcHandler) : super(const PollState()); + + Future fetchPolls(int streamId) async { + state = state.copyWith(isLoading: true); + state = state.clearError(); + try { + final polls = await PollHandlers(_grpcHandler).getPolls(streamId); + state = state.copyWith(polls: polls, isLoading: false); + } catch (e) { + _logger.e(e); + state = state.copyWith(error: e as AppError, isLoading: false); + } + } + + Future postPollVote(int streamId, int pollOptionId) async { + try { + await PollHandlers(_grpcHandler).postPollVote(streamId, pollOptionId); + } catch (e) { + _logger.e(e); + state = state.copyWith(error: e as AppError); + } + } + + void postAnsweredPoll(int pollId, int pollOptionId) { + state = state.addAnsweredPoll(pollId, pollOptionId); + } + + void getAnsweredPolls() { + Map answeredPolls = {}; + for (var poll in state.polls ?? []) { + for (var option in poll.pollOptions) { + if (option.voted) { + answeredPolls[poll.id] = option.id; + break; + } + } + } + state = state.copyWith(answeredPolls: answeredPolls); + } + + void clearError() { + state = state.clearError(); + } +} diff --git a/lib/view_models/stream_view_model.dart b/lib/view_models/stream_view_model.dart index c693e08b..820ad2ae 100644 --- a/lib/view_models/stream_view_model.dart +++ b/lib/view_models/stream_view_model.dart @@ -88,7 +88,7 @@ class StreamViewModel extends StateNotifier { /// Fetches the thumbnail for a live stream. /// Parameters: /// [streamId] - The identifier of the stream. - Future fetchStreamThumbnail(streamId) async { + Future fetchStreamThumbnail(int streamId) async { try { _logger.i('Fetching thumbnail for live stream ID: $streamId'); return await StreamHandler(_grpcHandler).fetchThumbnailStreams(streamId); @@ -101,7 +101,7 @@ class StreamViewModel extends StateNotifier { /// Fetches the thumbnail for a recorded stream. /// Parameters: /// [streamId] - The identifier of the stream. - Future fetchVODThumbnail(streamId) async { + Future fetchVODThumbnail(int streamId) async { try { _logger.i('Fetching thumbnail for VOD stream ID: $streamId'); return await StreamHandler(_grpcHandler).fetchThumbnailVOD(streamId); @@ -111,7 +111,7 @@ class StreamViewModel extends StateNotifier { } } - Future fetchStream(streamId) async { + Future fetchStream(int streamId) async { _logger.i('Fetching stream'); state = state.copyWith(isLoading: true); try { @@ -135,7 +135,7 @@ class StreamViewModel extends StateNotifier { } } - Future fetchProgress(streamId) async { + Future fetchProgress(int streamId) async { state = state.copyWith(isLoading: true); try { final progress = @@ -150,7 +150,7 @@ class StreamViewModel extends StateNotifier { } } - Future fetchProgressForStream(streamId) async { + Future fetchProgressForStream(int streamId) async { try { final progress = await StreamHandler(_grpcHandler).fetchProgress(streamId); @@ -160,7 +160,7 @@ class StreamViewModel extends StateNotifier { } } - Future updateProgress(streamId, Progress progress) async { + Future updateProgress(int streamId, Progress progress) async { _logger.i('Updating progress'); state = state.copyWith(isLoading: true); try { @@ -172,7 +172,7 @@ class StreamViewModel extends StateNotifier { } } - Future markAsWatched(streamId) async { + Future markAsWatched(int streamId) async { _logger.i('Marking stream as watched'); state = state.copyWith(isLoading: true); try { diff --git a/lib/views/chat_view/chat_view.dart b/lib/views/chat_view/chat_view.dart index 95e9bc50..5abf8a7d 100644 --- a/lib/views/chat_view/chat_view.dart +++ b/lib/views/chat_view/chat_view.dart @@ -1,14 +1,14 @@ + import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/views/chat_view/chat_view_state.dart'; + class ChatView extends ConsumerStatefulWidget { - final bool isActive; final int? streamID; const ChatView({ super.key, - required this.isActive, - this.streamID, + this.streamID, }); @override diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index be632a9a..b4017809 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -6,9 +6,6 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/models/chat/chat_state_model.dart'; import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/views/chat_view/chat_view.dart'; -import 'package:gocast_mobile/views/chat_view/suggested_streams_list.dart'; -import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; -import 'package:gocast_mobile/views/video_view/video_player.dart'; import 'package:logger/logger.dart'; class ChatViewState extends ConsumerState { @@ -17,6 +14,7 @@ class ChatViewState extends ConsumerState { bool _isCooldownActive = false; bool _isInitialScrollDone = false; + @override void initState() { super.initState(); @@ -49,12 +47,6 @@ class ChatViewState extends ConsumerState { @override Widget build(BuildContext context) { final chatState = ref.watch(chatViewModelProvider); - var suggestedStreams = ref.watch(videoViewModelProvider).streams ?? []; - suggestedStreams = suggestedStreams - .where((element) => element.id != widget.streamID) - .toList(); - suggestedStreams - .sort((a, b) => a.start.toDateTime().compareTo(b.start.toDateTime())); bool isIOS = Theme.of(context).platform == TargetPlatform.iOS; if (chatState.isRateLimitReached) { WidgetsBinding.instance.addPostFrameCallback((_) { @@ -70,16 +62,12 @@ class ChatViewState extends ConsumerState { WidgetsBinding.instance.addPostFrameCallback((_) { ScaffoldMessenger.of(context).showSnackBar( const SnackBar( - content: Text( - 'You are sending messages too fast. Please wait a 60 seconds.', - ), + content: Text('You are sending messages too fast. Please wait a 60 seconds.'), ), ); }); } - return widget.isActive - ? buildActiveChat(isIOS) - : buildInactiveChatOverlay(isIOS, suggestedStreams); + return buildActiveChat(isIOS); } Widget buildActiveChat(bool isIOS) { @@ -100,6 +88,7 @@ class ChatViewState extends ConsumerState { ); } + BoxDecoration getChatDecoration(bool isIOS) { return BoxDecoration( color: Theme.of(context).appBarTheme.backgroundColor, @@ -152,9 +141,7 @@ class ChatViewState extends ConsumerState { BoxDecoration getMessageBubbleStyle(bool isSentByMe, bool isIOS) { return BoxDecoration( - color: isSentByMe - ? (isIOS ? CupertinoColors.activeBlue : Colors.blue) - : (isIOS ? CupertinoColors.systemGrey6 : Colors.grey[300]), + color: isSentByMe ? (isIOS ? CupertinoColors.activeBlue : Colors.blue) : (isIOS ? CupertinoColors.systemGrey6 : Colors.grey[300]), borderRadius: BorderRadius.circular(18), ); } @@ -163,27 +150,20 @@ class ChatViewState extends ConsumerState { TextEditingController controller = TextEditingController(); return Padding( padding: const EdgeInsets.fromLTRB(8.0, 8.0, 8.0, 15.0), - child: isIOS - ? buildIOSMessageInputField(controller) - : buildNonIOSMessageInputField(controller), + child: isIOS ? buildIOSMessageInputField(controller) : buildNonIOSMessageInputField(controller), ); } Widget buildIOSMessageInputField(TextEditingController controller) { return CupertinoTextField( controller: controller, - placeholder: _isCooldownActive - ? 'Wait 30 seconds before sending another message' - : 'Type a message...', + placeholder: _isCooldownActive ? 'Wait 30 seconds before sending another message' : 'Type a message...', enabled: !_isCooldownActive, suffix: GestureDetector( onTap: () => postMessage(context, ref, controller.text), child: _isCooldownActive ? const CupertinoActivityIndicator() - : const Icon( - CupertinoIcons.arrow_up_circle_fill, - color: CupertinoColors.activeBlue, - ), + : const Icon(CupertinoIcons.arrow_up_circle_fill, color: CupertinoColors.activeBlue,), ), decoration: BoxDecoration( color: CupertinoColors.systemGrey6, @@ -197,9 +177,7 @@ class ChatViewState extends ConsumerState { return TextField( controller: controller, decoration: InputDecoration( - hintText: _isCooldownActive - ? 'Wait 30 seconds before sending another message' - : 'Type a message...', + hintText: _isCooldownActive ? 'Wait 30 seconds before sending another message' : 'Type a message...', enabled: !_isCooldownActive, suffixIcon: GestureDetector( onTap: () => postMessage(context, ref, controller.text), @@ -217,63 +195,10 @@ class ChatViewState extends ConsumerState { ); } - Widget buildInactiveChatOverlay(bool isIOS, List suggestedStreams) { - var chatState = ref.watch(chatViewModelProvider); - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Container( - alignment: Alignment.center, - padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 20.0), - decoration: BoxDecoration( - color: isIOS - ? CupertinoColors.systemBackground.withOpacity(0.9) - : Colors.white.withOpacity(0.9), - borderRadius: BorderRadius.circular(12), - boxShadow: const [ - BoxShadow( - color: Colors.black26, - blurRadius: 4, - offset: Offset(0, 2), - ), - ], - ), - child: Text( - chatState.accessDenied - ? 'Chat is disabled for this lecture' - : 'Chat is Hidden', - textAlign: TextAlign.center, - style: const TextStyle( - color: Colors.black, - fontWeight: FontWeight.bold, - fontSize: 18, - ), - ), - ), - const SizedBox(height: 20), - Expanded( - child: SuggestedStreamsWidget( - suggestedStreams: suggestedStreams, - onStreamSelected: (Stream stream) { - Navigator.pushReplacement( - context, - MaterialPageRoute( - builder: (context) => VideoPlayerPage(stream: stream), - ), - ); - }, - ), - ), - ], - ); - } - void postMessage(BuildContext context, WidgetRef ref, String message) { if (!_isCooldownActive && message.isNotEmpty && message.trim().isNotEmpty) { final int? streamId = widget.streamID; - ref - .read(chatViewModelProvider.notifier) - .postChatMessage(streamId!, message); + ref.read(chatViewModelProvider.notifier).postChatMessage(streamId!, message); // Start cooldown Logger().i('Cooldown started'); setState(() { @@ -290,6 +215,7 @@ class ChatViewState extends ConsumerState { } } + void _scrollToBottom() { if (!_isInitialScrollDone && mounted && _scrollController.hasClients) { _scrollController.animateTo( @@ -300,4 +226,6 @@ class ChatViewState extends ConsumerState { _isInitialScrollDone = true; } } + + } diff --git a/lib/views/chat_view/inactive_view.dart b/lib/views/chat_view/inactive_view.dart new file mode 100644 index 00000000..3cb8aeeb --- /dev/null +++ b/lib/views/chat_view/inactive_view.dart @@ -0,0 +1,92 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:gocast_mobile/providers.dart'; +import 'package:gocast_mobile/views/chat_view/suggested_streams_list.dart'; +import 'package:gocast_mobile/views/video_view/video_player.dart'; +import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; + +class InactiveView extends ConsumerStatefulWidget { + final int? streamID; + + const InactiveView({ + super.key, + this.streamID, + }); + + @override + InactiveViewState createState() => InactiveViewState(); +} + +class InactiveViewState extends ConsumerState { + @override + void initState() { + super.initState(); + // Initialize state here if needed + } + + @override + void dispose() { + // Dispose resources if needed + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final chatState = ref.watch(chatViewModelProvider); + var suggestedStreams = ref.watch(videoViewModelProvider).streams ?? []; + suggestedStreams = suggestedStreams + .where((element) => element.id != widget.streamID) + .toList(); + suggestedStreams + .sort((a, b) => a.start.toDateTime().compareTo(b.start.toDateTime())); + bool isIOS = Theme.of(context).platform == TargetPlatform.iOS; + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + Container( + alignment: Alignment.center, + padding: const EdgeInsets.symmetric(vertical: 16.0, horizontal: 20.0), + decoration: BoxDecoration( + color: isIOS + ? CupertinoColors.systemBackground.withOpacity(0.9) + : Colors.white.withOpacity(0.9), + borderRadius: BorderRadius.circular(12), + boxShadow: const [ + BoxShadow( + color: Colors.black26, + blurRadius: 4, + offset: Offset(0, 2), + ), + ], + ), + child: Text( + chatState.accessDenied + ? 'Chat is disabled for this lecture' + : 'Chat is Hidden', + textAlign: TextAlign.center, + style: const TextStyle( + color: Colors.black, + fontWeight: FontWeight.bold, + fontSize: 18, + ), + ), + ), + const SizedBox(height: 20), + Expanded( + child: SuggestedStreamsWidget( + suggestedStreams: suggestedStreams, + onStreamSelected: (Stream stream) { + Navigator.pushReplacement( + context, + MaterialPageRoute( + builder: (context) => VideoPlayerPage(stream: stream), + ), + ); + }, + ), + ), + ], + ); + } +} diff --git a/lib/views/chat_view/poll_view.dart b/lib/views/chat_view/poll_view.dart new file mode 100644 index 00000000..e089b224 --- /dev/null +++ b/lib/views/chat_view/poll_view.dart @@ -0,0 +1,15 @@ +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +import 'package:gocast_mobile/views/chat_view/poll_view_state.dart'; + +class PollView extends ConsumerStatefulWidget { + final int? streamID; + + const PollView({ + super.key, + this.streamID, + }); + + @override + PollViewState createState() => PollViewState(); +} diff --git a/lib/views/chat_view/poll_view_state.dart b/lib/views/chat_view/poll_view_state.dart new file mode 100644 index 00000000..7e1ee976 --- /dev/null +++ b/lib/views/chat_view/poll_view_state.dart @@ -0,0 +1,289 @@ +import 'dart:async'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; +import 'package:gocast_mobile/providers.dart'; +import 'package:gocast_mobile/views/chat_view/poll_view.dart'; + +class PollViewState extends ConsumerState { + Timer? _updateTimer; + Map selectedOptions = {}; + + @override + void initState() { + super.initState(); + _initializeTimer(); + } + + @override + void dispose() { + _updateTimer?.cancel(); + super.dispose(); + } + + void _initializeTimer() { + _updateTimer = Timer.periodic(const Duration(seconds: 60), (_) { + if (mounted && widget.streamID != null) { + ref.read(pollViewModelProvider.notifier).fetchPolls(widget.streamID!); + } + }); + + if (widget.streamID != null) { + Future.microtask(() async { + // Fetch the polls first + await ref + .read(pollViewModelProvider.notifier) + .fetchPolls(widget.streamID!); + ref.read(pollViewModelProvider.notifier).getAnsweredPolls(); + }); + } + } + + @override + Widget build(BuildContext context) { + final polls = ref + .watch(pollViewModelProvider) + .polls + ?.where((poll) => poll.active) + .toList() ?? + []; + final answeredPolls = ref.watch(pollViewModelProvider).answeredPolls; + + return Scaffold( + body: _buildPollsList(polls, answeredPolls), + ); + } + + Widget _buildPollsList(List polls, Map answeredPolls) { + return polls.isEmpty + ? const Center(child: Text('No active polls')) + : ListView.builder( + itemCount: polls.length, + itemBuilder: (context, index) => + _buildPollCard(context, polls[index], answeredPolls), + ); + } + + Widget _buildPollCard( + BuildContext context, Poll poll, Map answeredPolls,) { + bool isAnswered = answeredPolls.containsKey(poll.id); + return isAnswered + ? _buildAnsweredPollCard(context, poll, answeredPolls[poll.id]) + : _buildUnansweredPollCard(context, poll); + } + + Widget _buildAnsweredPollCard( + BuildContext context, Poll poll, int? answeredOptionId,) { + ThemeData themeData = Theme.of(context); + return Opacity( + opacity: 0.5, + // You might want to adjust this value based on your design needs + child: Card( + elevation: 1, + shadowColor: themeData.shadowColor, + color: themeData.cardTheme.color, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), + side: BorderSide( + color: themeData + .inputDecorationTheme.enabledBorder?.borderSide.color + .withOpacity(0.2) ?? + Colors.grey.withOpacity(0.2), + width: 1.0, + ), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(8.0), + child: Container( + color: themeData.cardColor, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + _buildPollQuestion(poll), + GridView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + // to disable GridView's scrolling + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 2, + childAspectRatio: + 3, // Adjust the aspect ratio to fit the content + ), + itemCount: poll.pollOptions.length, + itemBuilder: (context, index) { + return _buildInactivePollOption(context, poll, + poll.pollOptions[index], answeredOptionId,); + }, + ), + ], + ), + ), + ), + ), + ); + } + + Widget _buildInactivePollOption(BuildContext context, Poll poll, + PollOption option, int? selectedOptionId,) { + bool isSelected = option.id == selectedOptionId; + return Container( + margin: const EdgeInsets.all(4.0), // Add some spacing around each button + decoration: BoxDecoration( + color: isSelected ? Colors.grey : Colors.white, + // Use grey for the selected option, white for others + borderRadius: BorderRadius.circular(8.0), + border: + Border.all(color: Colors.grey), // Use grey border for all options + ), + child: Center( + child: Text( + option.answer, + style: const TextStyle( + color: + Colors.black, // Text color remains black to ensure readability + ), + ), + ), + ); + } + + Widget _buildUnansweredPollCard(BuildContext context, Poll poll) { + ThemeData themeData = Theme.of(context); + return Card( + elevation: 1, + shadowColor: themeData.shadowColor, + color: themeData.cardTheme.color, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), + side: BorderSide( + color: themeData.inputDecorationTheme.enabledBorder?.borderSide.color + .withOpacity(0.2) ?? + Colors.grey.withOpacity(0.2), + width: 1.0, + ), + ), + child: ClipRRect( + borderRadius: BorderRadius.circular(8.0), + child: Container( + color: themeData.cardColor, + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + _buildPollQuestion(poll), + GridView.builder( + shrinkWrap: true, + physics: const NeverScrollableScrollPhysics(), + // to disable GridView's scrolling + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 2, + childAspectRatio: + 3, // Adjust the aspect ratio to fit the content + ), + itemCount: poll.pollOptions.length, + itemBuilder: (context, index) { + return _buildActivePollOption( + context, poll, poll.pollOptions[index],); + }, + ), + _buildSubmitButton(poll), + ], + ), + ), + ), + ); + } + + Widget _buildActivePollOption( + BuildContext context, Poll poll, PollOption option,) { + bool isSelected = selectedOptions[poll.id] == option.id; + return GestureDetector( + onTap: () { + setState(() { + selectedOptions[poll.id] = option.id; + }); + }, + child: Container( + margin: const EdgeInsets.all(4.0), // Add some spacing around each button + decoration: BoxDecoration( + color: isSelected ? Colors.blue : Colors.white, + // Change color based on selection + borderRadius: BorderRadius.circular(8.0), + border: Border.all(color: isSelected ? Colors.blue : Colors.grey), + ), + child: Center( + child: Text( + option.answer, + style: TextStyle( + color: isSelected + ? Colors.white + : Colors.black, // Change text color based on selection + ), + ), + ), + ), + ); + } + + Widget _buildPollQuestion(Poll poll) { + return Padding( + padding: const EdgeInsets.all(8.0), + child: Row( + // Center the question since there's no subtitle or trailing widget + children: [ + Expanded( + child: Text( + poll.question, + style: const TextStyle( + fontSize: 16.0, // Match the font size used in _buildHeader + fontWeight: FontWeight + .bold, // Match the font weight used in _buildHeader + ), + textAlign: TextAlign.center, + // Keep text alignment to center as it's a question + maxLines: 2, + // Optional: Use if you want to limit the number of lines for the question + overflow: TextOverflow + .ellipsis, // Optional: Use to handle text overflow + ), + ), + ], + ), + ); + } + + Widget _buildSubmitButton(Poll poll) { + final pollViewModel = ref.read(pollViewModelProvider.notifier); + + return Padding( + padding: const EdgeInsets.all(8.0), // Consistent padding with the rest of the layout + child: ElevatedButton( + onPressed: selectedOptions.containsKey(poll.id) + ? () { + final int? pollOptionId = selectedOptions[poll.id]; + if (pollOptionId != null) { + setState(() { + pollViewModel.postPollVote(poll.streamID, pollOptionId); + pollViewModel.postAnsweredPoll(poll.id, pollOptionId); + }); + } + } + : null, + style: ElevatedButton.styleFrom( + backgroundColor: Theme.of(context).primaryColor, // Use the primary color of your theme + foregroundColor: Colors.white, // Text color is white for better contrast + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), // Less rounded corners for a more rectangular look + ), + padding: const EdgeInsets.symmetric(vertical: 14.0, horizontal: 30.0), // Adjust padding to control the button's shape + minimumSize: const Size(double.infinity, 48), // Ensuring full width and a consistent height + elevation: 2, // Slight elevation for a subtle shadow, adjust as needed + ), + child: const Text( + 'Submit', + style: TextStyle(fontSize: 16), // Adjust font size as needed + ), + ), + ); + } + +} diff --git a/lib/views/video_view/offline_video_player/offline_video_player.dart b/lib/views/video_view/offline_video_player/offline_video_player.dart index 1cb06d0b..bc1c477b 100644 --- a/lib/views/video_view/offline_video_player/offline_video_player.dart +++ b/lib/views/video_view/offline_video_player/offline_video_player.dart @@ -4,7 +4,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/models/error/error_model.dart'; import 'package:gocast_mobile/providers.dart'; -import 'package:gocast_mobile/views/chat_view/chat_view.dart'; +import 'package:gocast_mobile/views/chat_view/inactive_view.dart'; import 'package:gocast_mobile/views/video_view/offline_video_player/offline_video_player_controller.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -31,7 +31,7 @@ class OfflineVideoPlayerPageState return Column( children: [ Expanded(child: _controllerManager.buildVideoPlayer()), - const Expanded(child: ChatView(isActive: false)), + const Expanded(child: InactiveView()), ], ); } diff --git a/lib/views/video_view/utils/custom_video_control_bar.dart b/lib/views/video_view/utils/custom_video_control_bar.dart index 9a3f1250..6a160d83 100644 --- a/lib/views/video_view/utils/custom_video_control_bar.dart +++ b/lib/views/video_view/utils/custom_video_control_bar.dart @@ -6,18 +6,22 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; class CustomVideoControlBar extends StatelessWidget { final VoidCallback onToggleChat; final Function(String) onDownload; - final VoidCallback onOpenQuizzes; + final VoidCallback onOpenPolls; final Stream currentStream; final bool isChatVisible; final bool isChatActive; + final bool isPollVisible; + final bool isPollActive; const CustomVideoControlBar({ super.key, required this.onToggleChat, - required this.onOpenQuizzes, + required this.onOpenPolls, required this.currentStream, this.isChatActive = false, this.isChatVisible = false, + this.isPollActive = false, + this.isPollVisible = false, required this.onDownload, }); @@ -98,9 +102,13 @@ class CustomVideoControlBar extends StatelessWidget { onPressed: isChatActive ? onToggleChat : null, ), IconButton( - icon: const Icon(Icons.quiz_outlined), + icon: isPollVisible + ? Icon(Icons.quiz_outlined, + color: themeData.primaryColor, + ) + : const Icon(Icons.quiz_outlined), color: themeData.iconTheme.color, - onPressed: onOpenQuizzes, + onPressed: isPollActive ? onOpenPolls : null, ), ], ), diff --git a/lib/views/video_view/utils/video_player_handler.dart b/lib/views/video_view/utils/video_player_handler.dart index 5465be36..1d63e42f 100644 --- a/lib/views/video_view/utils/video_player_handler.dart +++ b/lib/views/video_view/utils/video_player_handler.dart @@ -5,10 +5,12 @@ import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; class VideoPlayerHandlers { final Function(String newPlaylistUrl) switchPlaylist; final VoidCallback onToggleChat; + final VoidCallback onTogglePolls; VideoPlayerHandlers({ required this.switchPlaylist, required this.onToggleChat, + required this.onTogglePolls, }); void handleMenuSelection(String choice, Stream stream) { @@ -29,8 +31,8 @@ class VideoPlayerHandlers { } } - void handleOpenQuizzes() { - // TODO: Implement quizzes + void handleOpenPolls() { + onTogglePolls(); } void handleToggleChat() { diff --git a/lib/views/video_view/video_player.dart b/lib/views/video_view/video_player.dart index 27cca8f2..5f055679 100644 --- a/lib/views/video_view/video_player.dart +++ b/lib/views/video_view/video_player.dart @@ -7,6 +7,8 @@ import 'package:gocast_mobile/base/networking/api/gocast/api_v2.pb.dart'; import 'package:gocast_mobile/models/error/error_model.dart'; import 'package:gocast_mobile/providers.dart'; import 'package:gocast_mobile/views/chat_view/chat_view.dart'; +import 'package:gocast_mobile/views/chat_view/inactive_view.dart'; +import 'package:gocast_mobile/views/chat_view/poll_view.dart'; import 'package:gocast_mobile/views/video_view/utils/custom_video_control_bar.dart'; import 'package:gocast_mobile/views/video_view/utils/video_player_handler.dart'; import 'package:gocast_mobile/views/video_view/video_player_controller.dart'; @@ -31,7 +33,8 @@ class VideoPlayerPageState extends ConsumerState { Timer? _progressTimer; bool _isChatVisible = false; bool _isChatActive = false; - + bool _isPollsVisible = false; + bool _isPollActive = false; Widget _buildVideoLayout() { return Column( @@ -39,15 +42,21 @@ class VideoPlayerPageState extends ConsumerState { Expanded(child: _controllerManager.buildVideoPlayer()), CustomVideoControlBar( onToggleChat: _videoPlayerHandlers.handleToggleChat, - onOpenQuizzes: _videoPlayerHandlers.handleOpenQuizzes, + onOpenPolls: _videoPlayerHandlers.handleOpenPolls, currentStream: widget.stream, isChatVisible: _isChatVisible, isChatActive: _isChatActive, + isPollActive: _isPollActive, + isPollVisible: _isPollsVisible, onDownload: (type) => _downloadVideo(widget.stream, type), ), Expanded( - child: - ChatView(isActive: _isChatVisible, streamID: widget.stream.id),), + child: _isChatVisible + ? ChatView(streamID: widget.stream.id) + : _isPollsVisible + ? PollView(streamID: widget.stream.id) + : InactiveView(streamID: widget.stream.id), + ), ], ); } @@ -58,6 +67,7 @@ class VideoPlayerPageState extends ConsumerState { _videoPlayerHandlers = VideoPlayerHandlers( switchPlaylist: _switchPlaylist, onToggleChat: _handleToggleChat, + onTogglePolls: _handleTogglePolls, ); _initializeControllerManager(); Future.microtask(() async { @@ -72,6 +82,7 @@ class VideoPlayerPageState extends ConsumerState { widget.stream.chatEnabled) { setState(() { _isChatActive = true; + _isPollActive = true; }); } } @@ -243,6 +254,14 @@ class VideoPlayerPageState extends ConsumerState { void _handleToggleChat() { setState(() { _isChatVisible = !_isChatVisible; + _isPollsVisible = false; + }); + } + + void _handleTogglePolls() { + setState(() { + _isChatVisible = false; + _isPollsVisible = !_isPollsVisible; }); }