From 74fb6f8324c3f4c4122e69fc93c363fe1104d179 Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Fri, 26 Jan 2024 15:47:28 +0100 Subject: [PATCH 1/7] update protofiles --- lib/base/networking/api/gocast/api_v2.pb.dart | 515 ++++++++++ .../networking/api/gocast/api_v2.pbgrpc.dart | 937 +++++++++--------- .../networking/api/gocast/api_v2.pbjson.dart | 95 ++ proto/gocast/api_v2.proto | 100 +- 4 files changed, 1142 insertions(+), 505 deletions(-) diff --git a/lib/base/networking/api/gocast/api_v2.pb.dart b/lib/base/networking/api/gocast/api_v2.pb.dart index 5bf5e480..df8ec681 100644 --- a/lib/base/networking/api/gocast/api_v2.pb.dart +++ b/lib/base/networking/api/gocast/api_v2.pb.dart @@ -1203,6 +1203,521 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { ChatMessage ensureMessage() => $_ensure(0); } +class Poll extends $pb.GeneratedMessage { + factory Poll({ + $core.int? id, + $core.int? streamID, + $core.String? question, + $core.bool? active, + $core.Iterable? pollOptions, + }) { + final $result = create(); + if (id != null) { + $result.id = id; + } + if (streamID != null) { + $result.streamID = streamID; + } + if (question != null) { + $result.question = question; + } + if (active != null) { + $result.active = active; + } + if (pollOptions != null) { + $result.pollOptions.addAll(pollOptions); + } + return $result; + } + + Poll._() : super(); + + 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]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'Poll', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) + ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..aOS(3, _omitFieldNames ? '' : 'question') + ..aOB(4, _omitFieldNames ? '' : 'active') + ..pc( + 5, _omitFieldNames ? '' : 'pollOptions', $pb.PbFieldType.PM, + protoName: 'pollOptions', subBuilder: PollOption.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') + Poll clone() => Poll()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Poll copyWith(void Function(Poll) updates) => + super.copyWith((message) => updates(message as Poll)) as Poll; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static Poll create() => Poll._(); + + Poll createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => $pb.PbList(); + + @$core.pragma('dart2js:noInline') + static Poll getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Poll? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get id => $_getIZ(0); + + @$pb.TagNumber(1) + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasId() => $_has(0); + + @$pb.TagNumber(1) + void clearId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get streamID => $_getIZ(1); + + @$pb.TagNumber(2) + set streamID($core.int v) { + $_setUnsignedInt32(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasStreamID() => $_has(1); + + @$pb.TagNumber(2) + void clearStreamID() => clearField(2); + + @$pb.TagNumber(3) + $core.String get question => $_getSZ(2); + + @$pb.TagNumber(3) + set question($core.String v) { + $_setString(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasQuestion() => $_has(2); + + @$pb.TagNumber(3) + void clearQuestion() => clearField(3); + + @$pb.TagNumber(4) + $core.bool get active => $_getBF(3); + + @$pb.TagNumber(4) + set active($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasActive() => $_has(3); + + @$pb.TagNumber(4) + void clearActive() => clearField(4); + + @$pb.TagNumber(5) + $core.List get pollOptions => $_getList(4); +} + +class PollOption extends $pb.GeneratedMessage { + factory PollOption({ + $core.int? id, + $core.String? answer, + $core.int? votes, + }) { + final $result = create(); + if (id != null) { + $result.id = id; + } + if (answer != null) { + $result.answer = answer; + } + if (votes != null) { + $result.votes = votes; + } + return $result; + } + + PollOption._() : super(); + + 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]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PollOption', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) + ..aOS(2, _omitFieldNames ? '' : 'answer') + ..a<$core.int>(3, _omitFieldNames ? '' : 'votes', $pb.PbFieldType.OU3) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PollOption clone() => PollOption()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PollOption copyWith(void Function(PollOption) updates) => + super.copyWith((message) => updates(message as PollOption)) as PollOption; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PollOption create() => PollOption._(); + + PollOption createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => $pb.PbList(); + + @$core.pragma('dart2js:noInline') + static PollOption getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PollOption? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get id => $_getIZ(0); + + @$pb.TagNumber(1) + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasId() => $_has(0); + + @$pb.TagNumber(1) + void clearId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get answer => $_getSZ(1); + + @$pb.TagNumber(2) + set answer($core.String v) { + $_setString(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasAnswer() => $_has(1); + + @$pb.TagNumber(2) + void clearAnswer() => clearField(2); + + @$pb.TagNumber(3) + $core.int get votes => $_getIZ(2); + + @$pb.TagNumber(3) + set votes($core.int v) { + $_setUnsignedInt32(2, v); + } + + @$pb.TagNumber(3) + $core.bool hasVotes() => $_has(2); + + @$pb.TagNumber(3) + void clearVotes() => clearField(3); +} + +class GetPollsRequest extends $pb.GeneratedMessage { + factory GetPollsRequest({ + $fixnum.Int64? streamID, + }) { + final $result = create(); + if (streamID != null) { + $result.streamID = streamID; + } + return $result; + } + + GetPollsRequest._() : super(); + + 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]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPollsRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..a<$fixnum.Int64>( + 1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, + protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetPollsRequest clone() => GetPollsRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetPollsRequest copyWith(void Function(GetPollsRequest) updates) => + super.copyWith((message) => updates(message as GetPollsRequest)) + as GetPollsRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetPollsRequest create() => GetPollsRequest._(); + + GetPollsRequest createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => + $pb.PbList(); + + @$core.pragma('dart2js:noInline') + static GetPollsRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetPollsRequest? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get streamID => $_getI64(0); + + @$pb.TagNumber(1) + set streamID($fixnum.Int64 v) { + $_setInt64(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasStreamID() => $_has(0); + + @$pb.TagNumber(1) + void clearStreamID() => clearField(1); +} + +class PostPollVoteRequest extends $pb.GeneratedMessage { + factory PostPollVoteRequest({ + $fixnum.Int64? streamID, + $fixnum.Int64? pollOptionID, + }) { + final $result = create(); + if (streamID != null) { + $result.streamID = streamID; + } + if (pollOptionID != null) { + $result.pollOptionID = pollOptionID; + } + return $result; + } + + PostPollVoteRequest._() : super(); + + 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]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostPollVoteRequest', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..a<$fixnum.Int64>( + 1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, + protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$fixnum.Int64>( + 2, _omitFieldNames ? '' : 'pollOptionID', $pb.PbFieldType.OU6, + protoName: 'pollOptionID', defaultOrMaker: $fixnum.Int64.ZERO) + ..hasRequiredFields = false; + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + PostPollVoteRequest clone() => PostPollVoteRequest()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostPollVoteRequest copyWith(void Function(PostPollVoteRequest) updates) => + super.copyWith((message) => updates(message as PostPollVoteRequest)) + as PostPollVoteRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PostPollVoteRequest create() => PostPollVoteRequest._(); + + PostPollVoteRequest createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => + $pb.PbList(); + + @$core.pragma('dart2js:noInline') + static PostPollVoteRequest getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PostPollVoteRequest? _defaultInstance; + + @$pb.TagNumber(1) + $fixnum.Int64 get streamID => $_getI64(0); + + @$pb.TagNumber(1) + set streamID($fixnum.Int64 v) { + $_setInt64(0, v); + } + + @$pb.TagNumber(1) + $core.bool hasStreamID() => $_has(0); + + @$pb.TagNumber(1) + void clearStreamID() => clearField(1); + + @$pb.TagNumber(2) + $fixnum.Int64 get pollOptionID => $_getI64(1); + + @$pb.TagNumber(2) + set pollOptionID($fixnum.Int64 v) { + $_setInt64(1, v); + } + + @$pb.TagNumber(2) + $core.bool hasPollOptionID() => $_has(1); + + @$pb.TagNumber(2) + void clearPollOptionID() => clearField(2); +} + +class GetPollsResponse extends $pb.GeneratedMessage { + factory GetPollsResponse({ + $core.Iterable? polls, + }) { + final $result = create(); + if (polls != null) { + $result.polls.addAll(polls); + } + return $result; + } + + GetPollsResponse._() : super(); + + 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]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'GetPollsResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + createEmptyInstance: create) + ..pc(1, _omitFieldNames ? '' : 'polls', $pb.PbFieldType.PM, + subBuilder: Poll.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') + GetPollsResponse clone() => GetPollsResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetPollsResponse copyWith(void Function(GetPollsResponse) updates) => + super.copyWith((message) => updates(message as GetPollsResponse)) + as GetPollsResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetPollsResponse create() => GetPollsResponse._(); + + GetPollsResponse createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => + $pb.PbList(); + + @$core.pragma('dart2js:noInline') + static GetPollsResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static GetPollsResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List get polls => $_getList(0); +} + +class PostPollVoteResponse extends $pb.GeneratedMessage { + factory PostPollVoteResponse() => create(); + + PostPollVoteResponse._() : super(); + + 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]) => + create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + _omitMessageNames ? '' : 'PostPollVoteResponse', + package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), + 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') + PostPollVoteResponse clone() => + PostPollVoteResponse()..mergeFromMessage(this); + + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + PostPollVoteResponse copyWith(void Function(PostPollVoteResponse) updates) => + super.copyWith((message) => updates(message as PostPollVoteResponse)) + as PostPollVoteResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static PostPollVoteResponse create() => PostPollVoteResponse._(); + + PostPollVoteResponse createEmptyInstance() => create(); + + static $pb.PbList createRepeated() => + $pb.PbList(); + + @$core.pragma('dart2js:noInline') + static PostPollVoteResponse getDefault() => _defaultInstance ??= + $pb.GeneratedMessage.$_defaultFor(create); + static PostPollVoteResponse? _defaultInstance; +} + class User extends $pb.GeneratedMessage { factory User({ $core.int? id, diff --git a/lib/base/networking/api/gocast/api_v2.pbgrpc.dart b/lib/base/networking/api/gocast/api_v2.pbgrpc.dart index 9b0a0b69..845047e2 100644 --- a/lib/base/networking/api/gocast/api_v2.pbgrpc.dart +++ b/lib/base/networking/api/gocast/api_v2.pbgrpc.dart @@ -23,429 +23,432 @@ export 'api_v2.pb.dart'; class APIClient extends $grpc.Client { static final _$getUser = $grpc.ClientMethod<$0.GetUserRequest, $0.GetUserResponse>( - '/protobuf.API/getUser', - ($0.GetUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetUserResponse.fromBuffer(value), - ); + '/protobuf.API/getUser', + ($0.GetUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserResponse.fromBuffer(value)); static final _$getUserCourses = $grpc.ClientMethod<$0.GetUserCoursesRequest, $0.GetUserCoursesResponse>( - '/protobuf.API/getUserCourses', - ($0.GetUserCoursesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserCoursesResponse.fromBuffer(value), - ); + '/protobuf.API/getUserCourses', + ($0.GetUserCoursesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserCoursesResponse.fromBuffer(value)); static final _$getUserPinned = $grpc.ClientMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( - '/protobuf.API/getUserPinned', - ($0.GetUserPinnedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetUserPinnedResponse.fromBuffer(value), - ); + '/protobuf.API/getUserPinned', + ($0.GetUserPinnedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserPinnedResponse.fromBuffer(value)); static final _$postUserPinned = $grpc.ClientMethod<$0.PostPinnedRequest, $0.PostPinnedResponse>( - '/protobuf.API/postUserPinned', - ($0.PostPinnedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.PostPinnedResponse.fromBuffer(value), - ); + '/protobuf.API/postUserPinned', + ($0.PostPinnedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostPinnedResponse.fromBuffer(value)); static final _$deleteUserPinned = $grpc.ClientMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( - '/protobuf.API/deleteUserPinned', - ($0.DeletePinnedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.DeletePinnedResponse.fromBuffer(value), - ); + '/protobuf.API/deleteUserPinned', + ($0.DeletePinnedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeletePinnedResponse.fromBuffer(value)); static final _$getUserAdminCourses = $grpc.ClientMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( - '/protobuf.API/getUserAdminCourses', - ($0.GetUserAdminRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetUserAdminResponse.fromBuffer(value), - ); + '/protobuf.API/getUserAdminCourses', + ($0.GetUserAdminRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserAdminResponse.fromBuffer(value)); static final _$getUserSettings = $grpc.ClientMethod<$0.GetUserSettingsRequest, $0.GetUserSettingsResponse>( - '/protobuf.API/getUserSettings', - ($0.GetUserSettingsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetUserSettingsResponse.fromBuffer(value), - ); + '/protobuf.API/getUserSettings', + ($0.GetUserSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetUserSettingsResponse.fromBuffer(value)); static final _$patchUserSettings = $grpc.ClientMethod< - $0.PatchUserSettingsRequest, $0.PatchUserSettingsResponse>( - '/protobuf.API/patchUserSettings', - ($0.PatchUserSettingsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PatchUserSettingsResponse.fromBuffer(value), - ); + $0.PatchUserSettingsRequest, $0.PatchUserSettingsResponse>( + '/protobuf.API/patchUserSettings', + ($0.PatchUserSettingsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PatchUserSettingsResponse.fromBuffer(value)); static final _$getUserBookmarks = $grpc.ClientMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( - '/protobuf.API/getUserBookmarks', - ($0.GetBookmarksRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetBookmarksResponse.fromBuffer(value), - ); + '/protobuf.API/getUserBookmarks', + ($0.GetBookmarksRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetBookmarksResponse.fromBuffer(value)); static final _$putUserBookmark = $grpc.ClientMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( - '/protobuf.API/putUserBookmark', - ($0.PutBookmarkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.PutBookmarkResponse.fromBuffer(value), - ); + '/protobuf.API/putUserBookmark', + ($0.PutBookmarkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PutBookmarkResponse.fromBuffer(value)); static final _$patchUserBookmark = $grpc.ClientMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( - '/protobuf.API/patchUserBookmark', - ($0.PatchBookmarkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.PatchBookmarkResponse.fromBuffer(value), - ); + '/protobuf.API/patchUserBookmark', + ($0.PatchBookmarkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PatchBookmarkResponse.fromBuffer(value)); static final _$deleteUserBookmark = $grpc.ClientMethod<$0.DeleteBookmarkRequest, $0.DeleteBookmarkResponse>( - '/protobuf.API/deleteUserBookmark', - ($0.DeleteBookmarkRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeleteBookmarkResponse.fromBuffer(value), - ); + '/protobuf.API/deleteUserBookmark', + ($0.DeleteBookmarkRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeleteBookmarkResponse.fromBuffer(value)); static final _$getBannerAlerts = $grpc.ClientMethod<$0.GetBannerAlertsRequest, $0.GetBannerAlertsResponse>( - '/protobuf.API/getBannerAlerts', - ($0.GetBannerAlertsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetBannerAlertsResponse.fromBuffer(value), - ); + '/protobuf.API/getBannerAlerts', + ($0.GetBannerAlertsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetBannerAlertsResponse.fromBuffer(value)); static final _$getFeatureNotifications = $grpc.ClientMethod< - $0.GetFeatureNotificationsRequest, $0.GetFeatureNotificationsResponse>( - '/protobuf.API/getFeatureNotifications', - ($0.GetFeatureNotificationsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetFeatureNotificationsResponse.fromBuffer(value), - ); + $0.GetFeatureNotificationsRequest, + $0.GetFeatureNotificationsResponse>( + '/protobuf.API/getFeatureNotifications', + ($0.GetFeatureNotificationsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetFeatureNotificationsResponse.fromBuffer(value)); static final _$postDeviceToken = $grpc.ClientMethod<$0.PostDeviceTokenRequest, $0.PostDeviceTokenResponse>( - '/protobuf.API/postDeviceToken', - ($0.PostDeviceTokenRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostDeviceTokenResponse.fromBuffer(value), - ); + '/protobuf.API/postDeviceToken', + ($0.PostDeviceTokenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostDeviceTokenResponse.fromBuffer(value)); static final _$deleteDeviceToken = $grpc.ClientMethod< - $0.DeleteDeviceTokenRequest, $0.DeleteDeviceTokenResponse>( - '/protobuf.API/deleteDeviceToken', - ($0.DeleteDeviceTokenRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeleteDeviceTokenResponse.fromBuffer(value), - ); + $0.DeleteDeviceTokenRequest, $0.DeleteDeviceTokenResponse>( + '/protobuf.API/deleteDeviceToken', + ($0.DeleteDeviceTokenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeleteDeviceTokenResponse.fromBuffer(value)); static final _$getPublicCourses = $grpc.ClientMethod< - $0.GetPublicCoursesRequest, $0.GetPublicCoursesResponse>( - '/protobuf.API/getPublicCourses', - ($0.GetPublicCoursesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetPublicCoursesResponse.fromBuffer(value), - ); + $0.GetPublicCoursesRequest, $0.GetPublicCoursesResponse>( + '/protobuf.API/getPublicCourses', + ($0.GetPublicCoursesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetPublicCoursesResponse.fromBuffer(value)); static final _$getSemesters = $grpc.ClientMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( - '/protobuf.API/getSemesters', - ($0.GetSemestersRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetSemestersResponse.fromBuffer(value), - ); + '/protobuf.API/getSemesters', + ($0.GetSemestersRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetSemestersResponse.fromBuffer(value)); static final _$getCourseStreams = $grpc.ClientMethod< - $0.GetCourseStreamsRequest, $0.GetCourseStreamsResponse>( - '/protobuf.API/getCourseStreams', - ($0.GetCourseStreamsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetCourseStreamsResponse.fromBuffer(value), - ); + $0.GetCourseStreamsRequest, $0.GetCourseStreamsResponse>( + '/protobuf.API/getCourseStreams', + ($0.GetCourseStreamsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetCourseStreamsResponse.fromBuffer(value)); static final _$getStream = $grpc.ClientMethod<$0.GetStreamRequest, $0.GetStreamResponse>( - '/protobuf.API/GetStream', - ($0.GetStreamRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetStreamResponse.fromBuffer(value), - ); + '/protobuf.API/GetStream', + ($0.GetStreamRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetStreamResponse.fromBuffer(value)); static final _$getNowLive = $grpc.ClientMethod<$0.GetNowLiveRequest, $0.GetNowLiveResponse>( - '/protobuf.API/GetNowLive', - ($0.GetNowLiveRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetNowLiveResponse.fromBuffer(value), - ); + '/protobuf.API/GetNowLive', + ($0.GetNowLiveRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetNowLiveResponse.fromBuffer(value)); static final _$getThumbsVOD = $grpc.ClientMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( - '/protobuf.API/getThumbsVOD', - ($0.GetThumbsVODRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetThumbsVODResponse.fromBuffer(value), - ); + '/protobuf.API/getThumbsVOD', + ($0.GetThumbsVODRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetThumbsVODResponse.fromBuffer(value)); static final _$getThumbsLive = $grpc.ClientMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( - '/protobuf.API/getThumbsLive', - ($0.GetThumbsLiveRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetThumbsLiveResponse.fromBuffer(value), - ); + '/protobuf.API/getThumbsLive', + ($0.GetThumbsLiveRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetThumbsLiveResponse.fromBuffer(value)); static final _$getProgress = $grpc.ClientMethod<$0.GetProgressRequest, $0.GetProgressResponse>( - '/protobuf.API/getProgress', - ($0.GetProgressRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetProgressResponse.fromBuffer(value), - ); + '/protobuf.API/getProgress', + ($0.GetProgressRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetProgressResponse.fromBuffer(value)); static final _$putProgress = $grpc.ClientMethod<$0.PutProgressRequest, $0.PutProgressResponse>( - '/protobuf.API/putProgress', - ($0.PutProgressRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.PutProgressResponse.fromBuffer(value), - ); + '/protobuf.API/putProgress', + ($0.PutProgressRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PutProgressResponse.fromBuffer(value)); static final _$markAsWatched = $grpc.ClientMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( - '/protobuf.API/markAsWatched', - ($0.MarkAsWatchedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.MarkAsWatchedResponse.fromBuffer(value), - ); + '/protobuf.API/markAsWatched', + ($0.MarkAsWatchedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.MarkAsWatchedResponse.fromBuffer(value)); static final _$getChatMessages = $grpc.ClientMethod<$0.GetChatMessagesRequest, $0.GetChatMessagesResponse>( - '/protobuf.API/getChatMessages', - ($0.GetChatMessagesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.GetChatMessagesResponse.fromBuffer(value), - ); + '/protobuf.API/getChatMessages', + ($0.GetChatMessagesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetChatMessagesResponse.fromBuffer(value)); static final _$postChatMessage = $grpc.ClientMethod<$0.PostChatMessageRequest, $0.PostChatMessageResponse>( - '/protobuf.API/postChatMessage', - ($0.PostChatMessageRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostChatMessageResponse.fromBuffer(value), - ); + '/protobuf.API/postChatMessage', + ($0.PostChatMessageRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostChatMessageResponse.fromBuffer(value)); static final _$postChatReaction = $grpc.ClientMethod< - $0.PostChatReactionRequest, $0.PostChatReactionResponse>( - '/protobuf.API/postChatReaction', - ($0.PostChatReactionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.PostChatReactionResponse.fromBuffer(value), - ); + $0.PostChatReactionRequest, $0.PostChatReactionResponse>( + '/protobuf.API/postChatReaction', + ($0.PostChatReactionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostChatReactionResponse.fromBuffer(value)); static final _$deleteChatReaction = $grpc.ClientMethod< - $0.DeleteChatReactionRequest, $0.DeleteChatReactionResponse>( - '/protobuf.API/deleteChatReaction', - ($0.DeleteChatReactionRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.DeleteChatReactionResponse.fromBuffer(value), - ); + $0.DeleteChatReactionRequest, $0.DeleteChatReactionResponse>( + '/protobuf.API/deleteChatReaction', + ($0.DeleteChatReactionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeleteChatReactionResponse.fromBuffer(value)); static final _$postChatReply = $grpc.ClientMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( - '/protobuf.API/postChatReply', - ($0.PostChatReplyRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.PostChatReplyResponse.fromBuffer(value), - ); + '/protobuf.API/postChatReply', + ($0.PostChatReplyRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostChatReplyResponse.fromBuffer(value)); static final _$markChatMessageAsResolved = $grpc.ClientMethod< - $0.MarkChatMessageAsResolvedRequest, - $0.MarkChatMessageAsResolvedResponse>( - '/protobuf.API/markChatMessageAsResolved', - ($0.MarkChatMessageAsResolvedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.MarkChatMessageAsResolvedResponse.fromBuffer(value), - ); + $0.MarkChatMessageAsResolvedRequest, + $0.MarkChatMessageAsResolvedResponse>( + '/protobuf.API/markChatMessageAsResolved', + ($0.MarkChatMessageAsResolvedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.MarkChatMessageAsResolvedResponse.fromBuffer(value)); static final _$markChatMessageAsUnresolved = $grpc.ClientMethod< - $0.MarkChatMessageAsUnresolvedRequest, - $0.MarkChatMessageAsUnresolvedResponse>( - '/protobuf.API/markChatMessageAsUnresolved', - ($0.MarkChatMessageAsUnresolvedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => - $0.MarkChatMessageAsUnresolvedResponse.fromBuffer(value), - ); - - APIClient( - $grpc.ClientChannel channel, { - $grpc.CallOptions? options, - $core.Iterable<$grpc.ClientInterceptor>? interceptors, - }) : super( - channel, - options: options, - interceptors: interceptors, - ); + $0.MarkChatMessageAsUnresolvedRequest, + $0.MarkChatMessageAsUnresolvedResponse>( + '/protobuf.API/markChatMessageAsUnresolved', + ($0.MarkChatMessageAsUnresolvedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.MarkChatMessageAsUnresolvedResponse.fromBuffer(value)); + static final _$getPolls = + $grpc.ClientMethod<$0.GetPollsRequest, $0.GetPollsResponse>( + '/protobuf.API/getPolls', + ($0.GetPollsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.GetPollsResponse.fromBuffer(value)); + static final _$postPollVote = + $grpc.ClientMethod<$0.PostPollVoteRequest, $0.PostPollVoteResponse>( + '/protobuf.API/postPollVote', + ($0.PostPollVoteRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.PostPollVoteResponse.fromBuffer(value)); + + APIClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); $grpc.ResponseFuture<$0.GetUserResponse> getUser($0.GetUserRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getUser, request, options: options); } $grpc.ResponseFuture<$0.GetUserCoursesResponse> getUserCourses( $0.GetUserCoursesRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getUserCourses, request, options: options); } $grpc.ResponseFuture<$0.GetUserPinnedResponse> getUserPinned( $0.GetUserPinnedRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getUserPinned, request, options: options); } $grpc.ResponseFuture<$0.PostPinnedResponse> postUserPinned( $0.PostPinnedRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$postUserPinned, request, options: options); } $grpc.ResponseFuture<$0.DeletePinnedResponse> deleteUserPinned( $0.DeletePinnedRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteUserPinned, request, options: options); } $grpc.ResponseFuture<$0.GetUserAdminResponse> getUserAdminCourses( $0.GetUserAdminRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getUserAdminCourses, request, options: options); } $grpc.ResponseFuture<$0.GetUserSettingsResponse> getUserSettings( $0.GetUserSettingsRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getUserSettings, request, options: options); } $grpc.ResponseFuture<$0.PatchUserSettingsResponse> patchUserSettings( $0.PatchUserSettingsRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$patchUserSettings, request, options: options); } $grpc.ResponseFuture<$0.GetBookmarksResponse> getUserBookmarks( $0.GetBookmarksRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getUserBookmarks, request, options: options); } $grpc.ResponseFuture<$0.PutBookmarkResponse> putUserBookmark( $0.PutBookmarkRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$putUserBookmark, request, options: options); } $grpc.ResponseFuture<$0.PatchBookmarkResponse> patchUserBookmark( $0.PatchBookmarkRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$patchUserBookmark, request, options: options); } $grpc.ResponseFuture<$0.DeleteBookmarkResponse> deleteUserBookmark( $0.DeleteBookmarkRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteUserBookmark, request, options: options); } $grpc.ResponseFuture<$0.GetBannerAlertsResponse> getBannerAlerts( $0.GetBannerAlertsRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getBannerAlerts, request, options: options); } $grpc.ResponseFuture<$0.GetFeatureNotificationsResponse> getFeatureNotifications($0.GetFeatureNotificationsRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getFeatureNotifications, request, - options: options,); + options: options); } $grpc.ResponseFuture<$0.PostDeviceTokenResponse> postDeviceToken( $0.PostDeviceTokenRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$postDeviceToken, request, options: options); } $grpc.ResponseFuture<$0.DeleteDeviceTokenResponse> deleteDeviceToken( $0.DeleteDeviceTokenRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteDeviceToken, request, options: options); } $grpc.ResponseFuture<$0.GetPublicCoursesResponse> getPublicCourses( $0.GetPublicCoursesRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPublicCourses, request, options: options); } $grpc.ResponseFuture<$0.GetSemestersResponse> getSemesters( $0.GetSemestersRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getSemesters, request, options: options); } $grpc.ResponseFuture<$0.GetCourseStreamsResponse> getCourseStreams( $0.GetCourseStreamsRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getCourseStreams, request, options: options); } $grpc.ResponseFuture<$0.GetStreamResponse> getStream( $0.GetStreamRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getStream, request, options: options); } $grpc.ResponseFuture<$0.GetNowLiveResponse> getNowLive( $0.GetNowLiveRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getNowLive, request, options: options); } $grpc.ResponseFuture<$0.GetThumbsVODResponse> getThumbsVOD( $0.GetThumbsVODRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getThumbsVOD, request, options: options); } $grpc.ResponseFuture<$0.GetThumbsLiveResponse> getThumbsLive( $0.GetThumbsLiveRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getThumbsLive, request, options: options); } $grpc.ResponseFuture<$0.GetProgressResponse> getProgress( $0.GetProgressRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getProgress, request, options: options); } $grpc.ResponseFuture<$0.PutProgressResponse> putProgress( $0.PutProgressRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$putProgress, request, options: options); } $grpc.ResponseFuture<$0.MarkAsWatchedResponse> markAsWatched( $0.MarkAsWatchedRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$markAsWatched, request, options: options); } $grpc.ResponseFuture<$0.GetChatMessagesResponse> getChatMessages( $0.GetChatMessagesRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$getChatMessages, request, options: options); } $grpc.ResponseFuture<$0.PostChatMessageResponse> postChatMessage( $0.PostChatMessageRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$postChatMessage, request, options: options); } $grpc.ResponseFuture<$0.PostChatReactionResponse> postChatReaction( $0.PostChatReactionRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$postChatReaction, request, options: options); } $grpc.ResponseFuture<$0.DeleteChatReactionResponse> deleteChatReaction( $0.DeleteChatReactionRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteChatReaction, request, options: options); } $grpc.ResponseFuture<$0.PostChatReplyResponse> postChatReply( $0.PostChatReplyRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$postChatReply, request, options: options); } $grpc.ResponseFuture<$0.MarkChatMessageAsResolvedResponse> markChatMessageAsResolved($0.MarkChatMessageAsResolvedRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$markChatMessageAsResolved, request, - options: options,); + options: options); } $grpc.ResponseFuture<$0.MarkChatMessageAsUnresolvedResponse> markChatMessageAsUnresolved($0.MarkChatMessageAsUnresolvedRequest request, - {$grpc.CallOptions? options,}) { + {$grpc.CallOptions? options}) { return $createUnaryCall(_$markChatMessageAsUnresolved, request, - options: options,); + options: options); + } + + $grpc.ResponseFuture<$0.GetPollsResponse> getPolls($0.GetPollsRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getPolls, request, options: options); + } + + $grpc.ResponseFuture<$0.PostPollVoteResponse> postPollVote( + $0.PostPollVoteRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$postPollVote, request, options: options); } } @@ -454,639 +457,621 @@ abstract class APIServiceBase extends $grpc.Service { $core.String get $name => 'protobuf.API'; APIServiceBase() { - $addMethod( - $grpc.ServiceMethod<$0.GetUserRequest, $0.GetUserResponse>( + $addMethod($grpc.ServiceMethod<$0.GetUserRequest, $0.GetUserResponse>( 'getUser', getUser_Pre, false, false, ($core.List<$core.int> value) => $0.GetUserRequest.fromBuffer(value), - ($0.GetUserResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetUserCoursesRequest, $0.GetUserCoursesResponse>( + ($0.GetUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetUserCoursesRequest, + $0.GetUserCoursesResponse>( 'getUserCourses', getUserCourses_Pre, false, false, ($core.List<$core.int> value) => $0.GetUserCoursesRequest.fromBuffer(value), - ($0.GetUserCoursesResponse value) => value.writeToBuffer(), - ), - ); + ($0.GetUserCoursesResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( - 'getUserPinned', + $grpc.ServiceMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( + 'getUserPinned', getUserPinned_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetUserPinnedRequest.fromBuffer(value), - ($0.GetUserPinnedResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.PostPinnedRequest, $0.PostPinnedResponse>( + ($core.List<$core.int> value) => + $0.GetUserPinnedRequest.fromBuffer(value), + ($0.GetUserPinnedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.PostPinnedRequest, $0.PostPinnedResponse>( 'postUserPinned', postUserPinned_Pre, false, false, ($core.List<$core.int> value) => $0.PostPinnedRequest.fromBuffer(value), - ($0.PostPinnedResponse value) => value.writeToBuffer(), - ), - ); + ($0.PostPinnedResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( - 'deleteUserPinned', + $grpc.ServiceMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( + 'deleteUserPinned', deleteUserPinned_Pre, false, false, - ($core.List<$core.int> value) => - $0.DeletePinnedRequest.fromBuffer(value), - ($0.DeletePinnedResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.DeletePinnedRequest.fromBuffer(value), + ($0.DeletePinnedResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( - 'getUserAdminCourses', + $grpc.ServiceMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( + 'getUserAdminCourses', getUserAdminCourses_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetUserAdminRequest.fromBuffer(value), - ($0.GetUserAdminResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetUserSettingsRequest, - $0.GetUserSettingsResponse>( + ($core.List<$core.int> value) => + $0.GetUserAdminRequest.fromBuffer(value), + ($0.GetUserAdminResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetUserSettingsRequest, + $0.GetUserSettingsResponse>( 'getUserSettings', getUserSettings_Pre, false, false, ($core.List<$core.int> value) => $0.GetUserSettingsRequest.fromBuffer(value), - ($0.GetUserSettingsResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.PatchUserSettingsRequest, - $0.PatchUserSettingsResponse>( + ($0.GetUserSettingsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.PatchUserSettingsRequest, + $0.PatchUserSettingsResponse>( 'patchUserSettings', patchUserSettings_Pre, false, false, ($core.List<$core.int> value) => $0.PatchUserSettingsRequest.fromBuffer(value), - ($0.PatchUserSettingsResponse value) => value.writeToBuffer(), - ), - ); + ($0.PatchUserSettingsResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( - 'getUserBookmarks', + $grpc.ServiceMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( + 'getUserBookmarks', getUserBookmarks_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetBookmarksRequest.fromBuffer(value), - ($0.GetBookmarksResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.GetBookmarksRequest.fromBuffer(value), + ($0.GetBookmarksResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( - 'putUserBookmark', + $grpc.ServiceMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( + 'putUserBookmark', putUserBookmark_Pre, false, false, - ($core.List<$core.int> value) => - $0.PutBookmarkRequest.fromBuffer(value), - ($0.PutBookmarkResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.PutBookmarkRequest.fromBuffer(value), + ($0.PutBookmarkResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( - 'patchUserBookmark', + $grpc.ServiceMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( + 'patchUserBookmark', patchUserBookmark_Pre, false, false, - ($core.List<$core.int> value) => - $0.PatchBookmarkRequest.fromBuffer(value), - ($0.PatchBookmarkResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.DeleteBookmarkRequest, $0.DeleteBookmarkResponse>( + ($core.List<$core.int> value) => + $0.PatchBookmarkRequest.fromBuffer(value), + ($0.PatchBookmarkResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.DeleteBookmarkRequest, + $0.DeleteBookmarkResponse>( 'deleteUserBookmark', deleteUserBookmark_Pre, false, false, ($core.List<$core.int> value) => $0.DeleteBookmarkRequest.fromBuffer(value), - ($0.DeleteBookmarkResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetBannerAlertsRequest, - $0.GetBannerAlertsResponse>( + ($0.DeleteBookmarkResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetBannerAlertsRequest, + $0.GetBannerAlertsResponse>( 'getBannerAlerts', getBannerAlerts_Pre, false, false, ($core.List<$core.int> value) => $0.GetBannerAlertsRequest.fromBuffer(value), - ($0.GetBannerAlertsResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetFeatureNotificationsRequest, - $0.GetFeatureNotificationsResponse>( + ($0.GetBannerAlertsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetFeatureNotificationsRequest, + $0.GetFeatureNotificationsResponse>( 'getFeatureNotifications', getFeatureNotifications_Pre, false, false, ($core.List<$core.int> value) => $0.GetFeatureNotificationsRequest.fromBuffer(value), - ($0.GetFeatureNotificationsResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.PostDeviceTokenRequest, - $0.PostDeviceTokenResponse>( + ($0.GetFeatureNotificationsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.PostDeviceTokenRequest, + $0.PostDeviceTokenResponse>( 'postDeviceToken', postDeviceToken_Pre, false, false, ($core.List<$core.int> value) => $0.PostDeviceTokenRequest.fromBuffer(value), - ($0.PostDeviceTokenResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.DeleteDeviceTokenRequest, - $0.DeleteDeviceTokenResponse>( + ($0.PostDeviceTokenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.DeleteDeviceTokenRequest, + $0.DeleteDeviceTokenResponse>( 'deleteDeviceToken', deleteDeviceToken_Pre, false, false, ($core.List<$core.int> value) => $0.DeleteDeviceTokenRequest.fromBuffer(value), - ($0.DeleteDeviceTokenResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetPublicCoursesRequest, - $0.GetPublicCoursesResponse>( + ($0.DeleteDeviceTokenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetPublicCoursesRequest, + $0.GetPublicCoursesResponse>( 'getPublicCourses', getPublicCourses_Pre, false, false, ($core.List<$core.int> value) => $0.GetPublicCoursesRequest.fromBuffer(value), - ($0.GetPublicCoursesResponse value) => value.writeToBuffer(), - ), - ); + ($0.GetPublicCoursesResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( - 'getSemesters', + $grpc.ServiceMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( + 'getSemesters', getSemesters_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetSemestersRequest.fromBuffer(value), - ($0.GetSemestersResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetCourseStreamsRequest, - $0.GetCourseStreamsResponse>( + ($core.List<$core.int> value) => + $0.GetSemestersRequest.fromBuffer(value), + ($0.GetSemestersResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetCourseStreamsRequest, + $0.GetCourseStreamsResponse>( 'getCourseStreams', getCourseStreams_Pre, false, false, ($core.List<$core.int> value) => $0.GetCourseStreamsRequest.fromBuffer(value), - ($0.GetCourseStreamsResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetStreamRequest, $0.GetStreamResponse>( + ($0.GetCourseStreamsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetStreamRequest, $0.GetStreamResponse>( 'GetStream', getStream_Pre, false, false, ($core.List<$core.int> value) => $0.GetStreamRequest.fromBuffer(value), - ($0.GetStreamResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetNowLiveRequest, $0.GetNowLiveResponse>( + ($0.GetStreamResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetNowLiveRequest, $0.GetNowLiveResponse>( 'GetNowLive', getNowLive_Pre, false, false, ($core.List<$core.int> value) => $0.GetNowLiveRequest.fromBuffer(value), - ($0.GetNowLiveResponse value) => value.writeToBuffer(), - ), - ); + ($0.GetNowLiveResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( - 'getThumbsVOD', + $grpc.ServiceMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( + 'getThumbsVOD', getThumbsVOD_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetThumbsVODRequest.fromBuffer(value), - ($0.GetThumbsVODResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.GetThumbsVODRequest.fromBuffer(value), + ($0.GetThumbsVODResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( - 'getThumbsLive', + $grpc.ServiceMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( + 'getThumbsLive', getThumbsLive_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetThumbsLiveRequest.fromBuffer(value), - ($0.GetThumbsLiveResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.GetThumbsLiveRequest.fromBuffer(value), + ($0.GetThumbsLiveResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.GetProgressRequest, $0.GetProgressResponse>( - 'getProgress', + $grpc.ServiceMethod<$0.GetProgressRequest, $0.GetProgressResponse>( + 'getProgress', getProgress_Pre, false, false, - ($core.List<$core.int> value) => - $0.GetProgressRequest.fromBuffer(value), - ($0.GetProgressResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.GetProgressRequest.fromBuffer(value), + ($0.GetProgressResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.PutProgressRequest, $0.PutProgressResponse>( - 'putProgress', + $grpc.ServiceMethod<$0.PutProgressRequest, $0.PutProgressResponse>( + 'putProgress', putProgress_Pre, false, false, - ($core.List<$core.int> value) => - $0.PutProgressRequest.fromBuffer(value), - ($0.PutProgressResponse value) => value.writeToBuffer(), - ), - ); + ($core.List<$core.int> value) => + $0.PutProgressRequest.fromBuffer(value), + ($0.PutProgressResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( - 'markAsWatched', + $grpc.ServiceMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( + 'markAsWatched', markAsWatched_Pre, false, false, - ($core.List<$core.int> value) => - $0.MarkAsWatchedRequest.fromBuffer(value), - ($0.MarkAsWatchedResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.GetChatMessagesRequest, - $0.GetChatMessagesResponse>( + ($core.List<$core.int> value) => + $0.MarkAsWatchedRequest.fromBuffer(value), + ($0.MarkAsWatchedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetChatMessagesRequest, + $0.GetChatMessagesResponse>( 'getChatMessages', getChatMessages_Pre, false, false, ($core.List<$core.int> value) => $0.GetChatMessagesRequest.fromBuffer(value), - ($0.GetChatMessagesResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.PostChatMessageRequest, - $0.PostChatMessageResponse>( + ($0.GetChatMessagesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.PostChatMessageRequest, + $0.PostChatMessageResponse>( 'postChatMessage', postChatMessage_Pre, false, false, ($core.List<$core.int> value) => $0.PostChatMessageRequest.fromBuffer(value), - ($0.PostChatMessageResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.PostChatReactionRequest, - $0.PostChatReactionResponse>( + ($0.PostChatMessageResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.PostChatReactionRequest, + $0.PostChatReactionResponse>( 'postChatReaction', postChatReaction_Pre, false, false, ($core.List<$core.int> value) => $0.PostChatReactionRequest.fromBuffer(value), - ($0.PostChatReactionResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.DeleteChatReactionRequest, - $0.DeleteChatReactionResponse>( + ($0.PostChatReactionResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.DeleteChatReactionRequest, + $0.DeleteChatReactionResponse>( 'deleteChatReaction', deleteChatReaction_Pre, false, false, ($core.List<$core.int> value) => $0.DeleteChatReactionRequest.fromBuffer(value), - ($0.DeleteChatReactionResponse value) => value.writeToBuffer(), - ), - ); + ($0.DeleteChatReactionResponse value) => value.writeToBuffer())); $addMethod( - $grpc.ServiceMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( - 'postChatReply', + $grpc.ServiceMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( + 'postChatReply', postChatReply_Pre, false, false, - ($core.List<$core.int> value) => - $0.PostChatReplyRequest.fromBuffer(value), - ($0.PostChatReplyResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.MarkChatMessageAsResolvedRequest, - $0.MarkChatMessageAsResolvedResponse>( + ($core.List<$core.int> value) => + $0.PostChatReplyRequest.fromBuffer(value), + ($0.PostChatReplyResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.MarkChatMessageAsResolvedRequest, + $0.MarkChatMessageAsResolvedResponse>( 'markChatMessageAsResolved', markChatMessageAsResolved_Pre, false, false, ($core.List<$core.int> value) => $0.MarkChatMessageAsResolvedRequest.fromBuffer(value), - ($0.MarkChatMessageAsResolvedResponse value) => value.writeToBuffer(), - ), - ); - $addMethod( - $grpc.ServiceMethod<$0.MarkChatMessageAsUnresolvedRequest, - $0.MarkChatMessageAsUnresolvedResponse>( + ($0.MarkChatMessageAsResolvedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.MarkChatMessageAsUnresolvedRequest, + $0.MarkChatMessageAsUnresolvedResponse>( 'markChatMessageAsUnresolved', markChatMessageAsUnresolved_Pre, false, false, ($core.List<$core.int> value) => $0.MarkChatMessageAsUnresolvedRequest.fromBuffer(value), - ($0.MarkChatMessageAsUnresolvedResponse value) => value.writeToBuffer(), - ), - ); + ($0.MarkChatMessageAsUnresolvedResponse value) => + value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.GetPollsRequest, $0.GetPollsResponse>( + 'getPolls', + getPolls_Pre, + false, + false, + ($core.List<$core.int> value) => $0.GetPollsRequest.fromBuffer(value), + ($0.GetPollsResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$0.PostPollVoteRequest, $0.PostPollVoteResponse>( + 'postPollVote', + postPollVote_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.PostPollVoteRequest.fromBuffer(value), + ($0.PostPollVoteResponse value) => value.writeToBuffer())); } $async.Future<$0.GetUserResponse> getUser_Pre( - $grpc.ServiceCall call, $async.Future<$0.GetUserRequest> request,) async { + $grpc.ServiceCall call, $async.Future<$0.GetUserRequest> request) async { return getUser(call, await request); } $async.Future<$0.GetUserCoursesResponse> getUserCourses_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetUserCoursesRequest> request,) async { + $async.Future<$0.GetUserCoursesRequest> request) async { return getUserCourses(call, await request); } $async.Future<$0.GetUserPinnedResponse> getUserPinned_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetUserPinnedRequest> request,) async { + $async.Future<$0.GetUserPinnedRequest> request) async { return getUserPinned(call, await request); } $async.Future<$0.PostPinnedResponse> postUserPinned_Pre( $grpc.ServiceCall call, - $async.Future<$0.PostPinnedRequest> request,) async { + $async.Future<$0.PostPinnedRequest> request) async { return postUserPinned(call, await request); } $async.Future<$0.DeletePinnedResponse> deleteUserPinned_Pre( $grpc.ServiceCall call, - $async.Future<$0.DeletePinnedRequest> request,) async { + $async.Future<$0.DeletePinnedRequest> request) async { return deleteUserPinned(call, await request); } $async.Future<$0.GetUserAdminResponse> getUserAdminCourses_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetUserAdminRequest> request,) async { + $async.Future<$0.GetUserAdminRequest> request) async { return getUserAdminCourses(call, await request); } $async.Future<$0.GetUserSettingsResponse> getUserSettings_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetUserSettingsRequest> request,) async { + $async.Future<$0.GetUserSettingsRequest> request) async { return getUserSettings(call, await request); } $async.Future<$0.PatchUserSettingsResponse> patchUserSettings_Pre( $grpc.ServiceCall call, - $async.Future<$0.PatchUserSettingsRequest> request,) async { + $async.Future<$0.PatchUserSettingsRequest> request) async { return patchUserSettings(call, await request); } $async.Future<$0.GetBookmarksResponse> getUserBookmarks_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetBookmarksRequest> request,) async { + $async.Future<$0.GetBookmarksRequest> request) async { return getUserBookmarks(call, await request); } $async.Future<$0.PutBookmarkResponse> putUserBookmark_Pre( $grpc.ServiceCall call, - $async.Future<$0.PutBookmarkRequest> request,) async { + $async.Future<$0.PutBookmarkRequest> request) async { return putUserBookmark(call, await request); } $async.Future<$0.PatchBookmarkResponse> patchUserBookmark_Pre( $grpc.ServiceCall call, - $async.Future<$0.PatchBookmarkRequest> request,) async { + $async.Future<$0.PatchBookmarkRequest> request) async { return patchUserBookmark(call, await request); } $async.Future<$0.DeleteBookmarkResponse> deleteUserBookmark_Pre( $grpc.ServiceCall call, - $async.Future<$0.DeleteBookmarkRequest> request,) async { + $async.Future<$0.DeleteBookmarkRequest> request) async { return deleteUserBookmark(call, await request); } $async.Future<$0.GetBannerAlertsResponse> getBannerAlerts_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetBannerAlertsRequest> request,) async { + $async.Future<$0.GetBannerAlertsRequest> request) async { return getBannerAlerts(call, await request); } $async.Future<$0.GetFeatureNotificationsResponse> getFeatureNotifications_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetFeatureNotificationsRequest> request,) async { + $async.Future<$0.GetFeatureNotificationsRequest> request) async { return getFeatureNotifications(call, await request); } $async.Future<$0.PostDeviceTokenResponse> postDeviceToken_Pre( $grpc.ServiceCall call, - $async.Future<$0.PostDeviceTokenRequest> request,) async { + $async.Future<$0.PostDeviceTokenRequest> request) async { return postDeviceToken(call, await request); } $async.Future<$0.DeleteDeviceTokenResponse> deleteDeviceToken_Pre( $grpc.ServiceCall call, - $async.Future<$0.DeleteDeviceTokenRequest> request,) async { + $async.Future<$0.DeleteDeviceTokenRequest> request) async { return deleteDeviceToken(call, await request); } $async.Future<$0.GetPublicCoursesResponse> getPublicCourses_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetPublicCoursesRequest> request,) async { + $async.Future<$0.GetPublicCoursesRequest> request) async { return getPublicCourses(call, await request); } $async.Future<$0.GetSemestersResponse> getSemesters_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetSemestersRequest> request,) async { + $async.Future<$0.GetSemestersRequest> request) async { return getSemesters(call, await request); } $async.Future<$0.GetCourseStreamsResponse> getCourseStreams_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetCourseStreamsRequest> request,) async { + $async.Future<$0.GetCourseStreamsRequest> request) async { return getCourseStreams(call, await request); } $async.Future<$0.GetStreamResponse> getStream_Pre($grpc.ServiceCall call, - $async.Future<$0.GetStreamRequest> request,) async { + $async.Future<$0.GetStreamRequest> request) async { return getStream(call, await request); } $async.Future<$0.GetNowLiveResponse> getNowLive_Pre($grpc.ServiceCall call, - $async.Future<$0.GetNowLiveRequest> request,) async { + $async.Future<$0.GetNowLiveRequest> request) async { return getNowLive(call, await request); } $async.Future<$0.GetThumbsVODResponse> getThumbsVOD_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetThumbsVODRequest> request,) async { + $async.Future<$0.GetThumbsVODRequest> request) async { return getThumbsVOD(call, await request); } $async.Future<$0.GetThumbsLiveResponse> getThumbsLive_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetThumbsLiveRequest> request,) async { + $async.Future<$0.GetThumbsLiveRequest> request) async { return getThumbsLive(call, await request); } $async.Future<$0.GetProgressResponse> getProgress_Pre($grpc.ServiceCall call, - $async.Future<$0.GetProgressRequest> request,) async { + $async.Future<$0.GetProgressRequest> request) async { return getProgress(call, await request); } $async.Future<$0.PutProgressResponse> putProgress_Pre($grpc.ServiceCall call, - $async.Future<$0.PutProgressRequest> request,) async { + $async.Future<$0.PutProgressRequest> request) async { return putProgress(call, await request); } $async.Future<$0.MarkAsWatchedResponse> markAsWatched_Pre( $grpc.ServiceCall call, - $async.Future<$0.MarkAsWatchedRequest> request,) async { + $async.Future<$0.MarkAsWatchedRequest> request) async { return markAsWatched(call, await request); } $async.Future<$0.GetChatMessagesResponse> getChatMessages_Pre( $grpc.ServiceCall call, - $async.Future<$0.GetChatMessagesRequest> request,) async { + $async.Future<$0.GetChatMessagesRequest> request) async { return getChatMessages(call, await request); } $async.Future<$0.PostChatMessageResponse> postChatMessage_Pre( $grpc.ServiceCall call, - $async.Future<$0.PostChatMessageRequest> request,) async { + $async.Future<$0.PostChatMessageRequest> request) async { return postChatMessage(call, await request); } $async.Future<$0.PostChatReactionResponse> postChatReaction_Pre( $grpc.ServiceCall call, - $async.Future<$0.PostChatReactionRequest> request,) async { + $async.Future<$0.PostChatReactionRequest> request) async { return postChatReaction(call, await request); } $async.Future<$0.DeleteChatReactionResponse> deleteChatReaction_Pre( $grpc.ServiceCall call, - $async.Future<$0.DeleteChatReactionRequest> request,) async { + $async.Future<$0.DeleteChatReactionRequest> request) async { return deleteChatReaction(call, await request); } $async.Future<$0.PostChatReplyResponse> postChatReply_Pre( $grpc.ServiceCall call, - $async.Future<$0.PostChatReplyRequest> request,) async { + $async.Future<$0.PostChatReplyRequest> request) async { return postChatReply(call, await request); } $async.Future<$0.MarkChatMessageAsResolvedResponse> markChatMessageAsResolved_Pre($grpc.ServiceCall call, - $async.Future<$0.MarkChatMessageAsResolvedRequest> request,) async { + $async.Future<$0.MarkChatMessageAsResolvedRequest> request) async { return markChatMessageAsResolved(call, await request); } $async.Future<$0.MarkChatMessageAsUnresolvedResponse> markChatMessageAsUnresolved_Pre($grpc.ServiceCall call, - $async.Future<$0.MarkChatMessageAsUnresolvedRequest> request,) async { + $async.Future<$0.MarkChatMessageAsUnresolvedRequest> request) async { return markChatMessageAsUnresolved(call, await request); } + $async.Future<$0.GetPollsResponse> getPolls_Pre( + $grpc.ServiceCall call, $async.Future<$0.GetPollsRequest> request) async { + return getPolls(call, await request); + } + + $async.Future<$0.PostPollVoteResponse> postPollVote_Pre( + $grpc.ServiceCall call, + $async.Future<$0.PostPollVoteRequest> request) async { + return postPollVote(call, await request); + } + $async.Future<$0.GetUserResponse> getUser( - $grpc.ServiceCall call, $0.GetUserRequest request,); + $grpc.ServiceCall call, $0.GetUserRequest request); + $async.Future<$0.GetUserCoursesResponse> getUserCourses( - $grpc.ServiceCall call, $0.GetUserCoursesRequest request,); + $grpc.ServiceCall call, $0.GetUserCoursesRequest request); + $async.Future<$0.GetUserPinnedResponse> getUserPinned( - $grpc.ServiceCall call, $0.GetUserPinnedRequest request,); + $grpc.ServiceCall call, $0.GetUserPinnedRequest request); + $async.Future<$0.PostPinnedResponse> postUserPinned( - $grpc.ServiceCall call, $0.PostPinnedRequest request,); + $grpc.ServiceCall call, $0.PostPinnedRequest request); + $async.Future<$0.DeletePinnedResponse> deleteUserPinned( - $grpc.ServiceCall call, $0.DeletePinnedRequest request,); + $grpc.ServiceCall call, $0.DeletePinnedRequest request); + $async.Future<$0.GetUserAdminResponse> getUserAdminCourses( - $grpc.ServiceCall call, $0.GetUserAdminRequest request,); + $grpc.ServiceCall call, $0.GetUserAdminRequest request); + $async.Future<$0.GetUserSettingsResponse> getUserSettings( - $grpc.ServiceCall call, $0.GetUserSettingsRequest request,); + $grpc.ServiceCall call, $0.GetUserSettingsRequest request); + $async.Future<$0.PatchUserSettingsResponse> patchUserSettings( - $grpc.ServiceCall call, $0.PatchUserSettingsRequest request,); + $grpc.ServiceCall call, $0.PatchUserSettingsRequest request); + $async.Future<$0.GetBookmarksResponse> getUserBookmarks( - $grpc.ServiceCall call, $0.GetBookmarksRequest request,); + $grpc.ServiceCall call, $0.GetBookmarksRequest request); + $async.Future<$0.PutBookmarkResponse> putUserBookmark( - $grpc.ServiceCall call, $0.PutBookmarkRequest request,); + $grpc.ServiceCall call, $0.PutBookmarkRequest request); + $async.Future<$0.PatchBookmarkResponse> patchUserBookmark( - $grpc.ServiceCall call, $0.PatchBookmarkRequest request,); + $grpc.ServiceCall call, $0.PatchBookmarkRequest request); + $async.Future<$0.DeleteBookmarkResponse> deleteUserBookmark( - $grpc.ServiceCall call, $0.DeleteBookmarkRequest request,); + $grpc.ServiceCall call, $0.DeleteBookmarkRequest request); + $async.Future<$0.GetBannerAlertsResponse> getBannerAlerts( - $grpc.ServiceCall call, $0.GetBannerAlertsRequest request,); + $grpc.ServiceCall call, $0.GetBannerAlertsRequest request); + $async.Future<$0.GetFeatureNotificationsResponse> getFeatureNotifications( - $grpc.ServiceCall call, $0.GetFeatureNotificationsRequest request,); + $grpc.ServiceCall call, $0.GetFeatureNotificationsRequest request); + $async.Future<$0.PostDeviceTokenResponse> postDeviceToken( - $grpc.ServiceCall call, $0.PostDeviceTokenRequest request,); + $grpc.ServiceCall call, $0.PostDeviceTokenRequest request); + $async.Future<$0.DeleteDeviceTokenResponse> deleteDeviceToken( - $grpc.ServiceCall call, $0.DeleteDeviceTokenRequest request,); + $grpc.ServiceCall call, $0.DeleteDeviceTokenRequest request); + $async.Future<$0.GetPublicCoursesResponse> getPublicCourses( - $grpc.ServiceCall call, $0.GetPublicCoursesRequest request,); + $grpc.ServiceCall call, $0.GetPublicCoursesRequest request); + $async.Future<$0.GetSemestersResponse> getSemesters( - $grpc.ServiceCall call, $0.GetSemestersRequest request,); + $grpc.ServiceCall call, $0.GetSemestersRequest request); + $async.Future<$0.GetCourseStreamsResponse> getCourseStreams( - $grpc.ServiceCall call, $0.GetCourseStreamsRequest request,); + $grpc.ServiceCall call, $0.GetCourseStreamsRequest request); + $async.Future<$0.GetStreamResponse> getStream( - $grpc.ServiceCall call, $0.GetStreamRequest request,); + $grpc.ServiceCall call, $0.GetStreamRequest request); + $async.Future<$0.GetNowLiveResponse> getNowLive( - $grpc.ServiceCall call, $0.GetNowLiveRequest request,); + $grpc.ServiceCall call, $0.GetNowLiveRequest request); + $async.Future<$0.GetThumbsVODResponse> getThumbsVOD( - $grpc.ServiceCall call, $0.GetThumbsVODRequest request,); + $grpc.ServiceCall call, $0.GetThumbsVODRequest request); + $async.Future<$0.GetThumbsLiveResponse> getThumbsLive( - $grpc.ServiceCall call, $0.GetThumbsLiveRequest request,); + $grpc.ServiceCall call, $0.GetThumbsLiveRequest request); + $async.Future<$0.GetProgressResponse> getProgress( - $grpc.ServiceCall call, $0.GetProgressRequest request,); + $grpc.ServiceCall call, $0.GetProgressRequest request); + $async.Future<$0.PutProgressResponse> putProgress( - $grpc.ServiceCall call, $0.PutProgressRequest request,); + $grpc.ServiceCall call, $0.PutProgressRequest request); + $async.Future<$0.MarkAsWatchedResponse> markAsWatched( - $grpc.ServiceCall call, $0.MarkAsWatchedRequest request,); + $grpc.ServiceCall call, $0.MarkAsWatchedRequest request); + $async.Future<$0.GetChatMessagesResponse> getChatMessages( - $grpc.ServiceCall call, $0.GetChatMessagesRequest request,); + $grpc.ServiceCall call, $0.GetChatMessagesRequest request); + $async.Future<$0.PostChatMessageResponse> postChatMessage( - $grpc.ServiceCall call, $0.PostChatMessageRequest request,); + $grpc.ServiceCall call, $0.PostChatMessageRequest request); + $async.Future<$0.PostChatReactionResponse> postChatReaction( - $grpc.ServiceCall call, $0.PostChatReactionRequest request,); + $grpc.ServiceCall call, $0.PostChatReactionRequest request); + $async.Future<$0.DeleteChatReactionResponse> deleteChatReaction( - $grpc.ServiceCall call, $0.DeleteChatReactionRequest request,); + $grpc.ServiceCall call, $0.DeleteChatReactionRequest request); + $async.Future<$0.PostChatReplyResponse> postChatReply( - $grpc.ServiceCall call, $0.PostChatReplyRequest request,); + $grpc.ServiceCall call, $0.PostChatReplyRequest request); + $async.Future<$0.MarkChatMessageAsResolvedResponse> markChatMessageAsResolved( - $grpc.ServiceCall call, $0.MarkChatMessageAsResolvedRequest request,); + $grpc.ServiceCall call, $0.MarkChatMessageAsResolvedRequest request); + $async.Future<$0.MarkChatMessageAsUnresolvedResponse> markChatMessageAsUnresolved($grpc.ServiceCall call, - $0.MarkChatMessageAsUnresolvedRequest request,); + $0.MarkChatMessageAsUnresolvedRequest request); + + $async.Future<$0.GetPollsResponse> getPolls( + $grpc.ServiceCall call, $0.GetPollsRequest request); + + $async.Future<$0.PostPollVoteResponse> postPollVote( + $grpc.ServiceCall call, $0.PostPollVoteRequest request); } diff --git a/lib/base/networking/api/gocast/api_v2.pbjson.dart b/lib/base/networking/api/gocast/api_v2.pbjson.dart index 5a180906..5bc9821f 100644 --- a/lib/base/networking/api/gocast/api_v2.pbjson.dart +++ b/lib/base/networking/api/gocast/api_v2.pbjson.dart @@ -279,6 +279,101 @@ final $typed_data.Uint8List markChatMessageAsUnresolvedResponseDescriptor = $con 'CiNNYXJrQ2hhdE1lc3NhZ2VBc1VucmVzb2x2ZWRSZXNwb25zZRIvCgdtZXNzYWdlGAEgASgLMh' 'UucHJvdG9idWYuQ2hhdE1lc3NhZ2VSB21lc3NhZ2U='); +@$core.Deprecated('Use pollDescriptor instead') +const Poll$json = { + '1': 'Poll', + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, + {'1': 'streamID', '3': 2, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'question', '3': 3, '4': 1, '5': 9, '10': 'question'}, + {'1': 'active', '3': 4, '4': 1, '5': 8, '10': 'active'}, + { + '1': 'pollOptions', + '3': 5, + '4': 3, + '5': 11, + '6': '.protobuf.PollOption', + '10': 'pollOptions' + }, + ], +}; + +/// Descriptor for `Poll`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List pollDescriptor = $convert.base64Decode( + 'CgRQb2xsEg4KAmlkGAEgASgNUgJpZBIaCghzdHJlYW1JRBgCIAEoDVIIc3RyZWFtSUQSGgoIcX' + 'Vlc3Rpb24YAyABKAlSCHF1ZXN0aW9uEhYKBmFjdGl2ZRgEIAEoCFIGYWN0aXZlEjYKC3BvbGxP' + 'cHRpb25zGAUgAygLMhQucHJvdG9idWYuUG9sbE9wdGlvblILcG9sbE9wdGlvbnM='); + +@$core.Deprecated('Use pollOptionDescriptor instead') +const PollOption$json = { + '1': 'PollOption', + '2': [ + {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, + {'1': 'answer', '3': 2, '4': 1, '5': 9, '10': 'answer'}, + {'1': 'votes', '3': 3, '4': 1, '5': 13, '10': 'votes'}, + ], +}; + +/// Descriptor for `PollOption`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List pollOptionDescriptor = $convert.base64Decode( + 'CgpQb2xsT3B0aW9uEg4KAmlkGAEgASgNUgJpZBIWCgZhbnN3ZXIYAiABKAlSBmFuc3dlchIUCg' + 'V2b3RlcxgDIAEoDVIFdm90ZXM='); + +@$core.Deprecated('Use getPollsRequestDescriptor instead') +const GetPollsRequest$json = { + '1': 'GetPollsRequest', + '2': [ + {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + ], +}; + +/// Descriptor for `GetPollsRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getPollsRequestDescriptor = $convert.base64Decode( + 'Cg9HZXRQb2xsc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKARSCHN0cmVhbUlE'); + +@$core.Deprecated('Use postPollVoteRequestDescriptor instead') +const PostPollVoteRequest$json = { + '1': 'PostPollVoteRequest', + '2': [ + {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'pollOptionID', '3': 2, '4': 1, '5': 4, '10': 'pollOptionID'}, + ], +}; + +/// Descriptor for `PostPollVoteRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List postPollVoteRequestDescriptor = $convert.base64Decode( + 'ChNQb3N0UG9sbFZvdGVSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUghzdHJlYW1JRBIiCgxwb2' + 'xsT3B0aW9uSUQYAiABKARSDHBvbGxPcHRpb25JRA=='); + +@$core.Deprecated('Use getPollsResponseDescriptor instead') +const GetPollsResponse$json = { + '1': 'GetPollsResponse', + '2': [ + { + '1': 'polls', + '3': 1, + '4': 3, + '5': 11, + '6': '.protobuf.Poll', + '10': 'polls' + }, + ], +}; + +/// Descriptor for `GetPollsResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getPollsResponseDescriptor = $convert.base64Decode( + 'ChBHZXRQb2xsc1Jlc3BvbnNlEiQKBXBvbGxzGAEgAygLMg4ucHJvdG9idWYuUG9sbFIFcG9sbH' + 'M='); + +@$core.Deprecated('Use postPollVoteResponseDescriptor instead') +const PostPollVoteResponse$json = { + '1': 'PostPollVoteResponse', +}; + +/// Descriptor for `PostPollVoteResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List postPollVoteResponseDescriptor = + $convert.base64Decode('ChRQb3N0UG9sbFZvdGVSZXNwb25zZQ=='); + @$core.Deprecated('Use userDescriptor instead') const User$json = { '1': 'User', diff --git a/proto/gocast/api_v2.proto b/proto/gocast/api_v2.proto index 9415ede9..6433f2f1 100644 --- a/proto/gocast/api_v2.proto +++ b/proto/gocast/api_v2.proto @@ -355,8 +355,9 @@ service API { description: "Marks stream as watched." }; } + // END API/V2/STREAMS - + // START API/V2/CHATS rpc getChatMessages(GetChatMessagesRequest) returns (GetChatMessagesResponse) { option (google.api.http) = { get: "/streams/chat/{streamID}" @@ -382,18 +383,6 @@ service API { }; } - // rpc deleteChatMessage(DeleteChatMessageRequest) returns (DeleteChatMessageResponse) { - // option (google.api.http) = { - // delete: "/streams/chat/{streamID}/{chatID}" - // response_body: "*" - // }; - // option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - // tags: "Chat" - // summary: "Delete a chat message" - // description: "Deletes a chat message." - // }; - // } - rpc postChatReaction(PostChatReactionRequest) returns (PostChatReactionResponse) { option (google.api.http) = { post: "/streams/chat/{streamID}/{chatID}/reactions" @@ -432,21 +421,6 @@ service API { }; } - - // rpc deleteChatReply(DeleteChatReplyRequest) returns (DeleteChatReplyResponse) { - // option (google.api.http) = { - // delete: "/streams/chat/{streamID}/{chatID}/replies/{replyID}" - // response_body: "*" - // }; - // option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { - // tags: "Chat" - // summary: "Delete a reply to a chat message" - // description: "Deletes a reply to a chat message." - // }; - // } - - // patching not supported yet - rpc markChatMessageAsResolved(MarkChatMessageAsResolvedRequest) returns (MarkChatMessageAsResolvedResponse) { option (google.api.http) = { put: "/streams/chat/{streamID}/{chatID}/resolved" @@ -471,10 +445,36 @@ service API { description: "Marks a chat message as unresolved." }; } + + rpc getPolls(GetPollsRequest) returns (GetPollsResponse) { + option (google.api.http) = { + get: "/streams/chat/{streamID}/polls" + response_body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "Chat" + summary: "Get all polls of a stream" + description: "Returns all polls of a stream." + }; + } + + rpc postPollVote(PostPollVoteRequest) returns (PostPollVoteResponse) { + option (google.api.http) = { + post: "/streams/chat/{streamID}/polls/{pollOptionID}" + body: "*" + response_body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "Chat" + summary: "Post a vote for an actove poll" + description: "Posts a vote for an active poll." + }; + } + // END API/V2/CHATS + } - // END API/V2/STREAMS @@ -583,6 +583,48 @@ message MarkChatMessageAsUnresolvedResponse { ChatMessage message = 1; } +/////////////////////////////// +//////// POLL_MESSAGE ///////// +/////////////////////////////// + + +message Poll { + uint32 id = 1; + uint32 streamID = 2; + string question = 3; + bool active = 4; + repeated PollOption pollOptions = 5; +} + +message PollOption { + uint32 id = 1; + string answer = 2; + uint32 votes = 3; +} + +/////////////////////////////// +//////// POLL_REQUEST ///////// +/////////////////////////////// + +message GetPollsRequest { + uint64 streamID = 1; +} + +message PostPollVoteRequest { + uint64 streamID = 1; + uint64 pollOptionID = 2; +} + +/////////////////////////////// +//////// POLL_RESPONSE //////// +/////////////////////////////// + +message GetPollsResponse { + repeated Poll polls = 1; +} + +message PostPollVoteResponse {} + /////////////////////////////// //////// USER_MESSAGE ///////// /////////////////////////////// From 2b311beaf192cf7222ba04804f37e23e81fef188 Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Fri, 26 Jan 2024 19:21:11 +0100 Subject: [PATCH 2/7] add poll handler, state model, view model --- .../networking/api/handler/poll_handler.dart | 39 +++++++++++++++ lib/models/poll/poll_state_model.dart | 47 +++++++++++++++++++ lib/view_models/poll_view_model.dart | 39 +++++++++++++++ 3 files changed, 125 insertions(+) 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 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..8203f71e --- /dev/null +++ b/lib/base/networking/api/handler/poll_handler.dart @@ -0,0 +1,39 @@ +import 'dart:async'; +import 'package:fixnum/fixnum.dart'; +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(Int64 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(Int64 streamID, Int64 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/models/poll/poll_state_model.dart b/lib/models/poll/poll_state_model.dart new file mode 100644 index 00000000..d3ced434 --- /dev/null +++ b/lib/models/poll/poll_state_model.dart @@ -0,0 +1,47 @@ +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 AppError? error; + + const PollState({ + this.isLoading = false, + this.polls, + this.error, + }); + + PollState copyWith({ + bool? isLoading, + List? polls, + AppError? error, + bool? isRateLimitReached, + bool? accessDenied, + }) { + return PollState( + isLoading: isLoading ?? this.isLoading, + polls: polls ?? this.polls, + error: error ?? this.error, + ); + } + + PollState clearError() { + return PollState( + isLoading: isLoading, + polls: polls, + error: null, + ); + } + + PollState addPoll(Poll poll) { + final updatedPolls = polls != null ? [...polls!, poll] : [poll]; + return PollState( + isLoading: isLoading, + polls: updatedPolls, + error: error, + ); + } +} diff --git a/lib/view_models/poll_view_model.dart b/lib/view_models/poll_view_model.dart new file mode 100644 index 00000000..c456e0bd --- /dev/null +++ b/lib/view_models/poll_view_model.dart @@ -0,0 +1,39 @@ +import 'package:fixnum/fixnum.dart'; +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(Int64 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(Int64 streamId, Int64 pollOptionId) async { + try { + await PollHandlers(_grpcHandler).postPollVote(streamId, pollOptionId); + } catch (e) { + _logger.e(e); + state = state.copyWith(error: e as AppError); + } + } + + void clearError() { + state = state.clearError(); + } +} From 780ae1b4454a5395a7728a090c6b1363fe12098a Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Fri, 26 Jan 2024 21:21:51 +0100 Subject: [PATCH 3/7] create placeholder for poll, separate the inactive overlay from chat view --- lib/views/chat_view/chat_view_state.dart | 55 +---------- lib/views/chat_view/inactive_view.dart | 94 +++++++++++++++++++ lib/views/poll_view/poll_view.dart | 18 ++++ lib/views/poll_view/poll_view_state.dart | 30 ++++++ .../utils/custom_video_control_bar.dart | 15 ++- .../utils/video_player_handler.dart | 6 +- lib/views/video_view/video_player.dart | 24 ++++- 7 files changed, 181 insertions(+), 61 deletions(-) create mode 100644 lib/views/chat_view/inactive_view.dart create mode 100644 lib/views/poll_view/poll_view.dart create mode 100644 lib/views/poll_view/poll_view_state.dart diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index 659bd481..0bd3f950 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -7,9 +7,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 { @@ -68,8 +65,9 @@ class ChatViewState extends ConsumerState { ); }); } - return widget.isActive ? buildActiveChat(isIOS) : - buildInactiveChatOverlay(isIOS, suggestedStreams); + return buildActiveChat(isIOS); + //return widget.isActive ? buildActiveChat(isIOS) : + //buildInactiveChatOverlay(isIOS, suggestedStreams); } Widget buildActiveChat(bool isIOS) { @@ -197,51 +195,6 @@ 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 Int64? streamId = widget.streamID; @@ -273,6 +226,4 @@ 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..d678394d --- /dev/null +++ b/lib/views/chat_view/inactive_view.dart @@ -0,0 +1,94 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:fixnum/fixnum.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 bool isActive; + final Int64? streamID; + + const InactiveView({ + super.key, + required this.isActive, + 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/poll_view/poll_view.dart b/lib/views/poll_view/poll_view.dart new file mode 100644 index 00000000..7c130193 --- /dev/null +++ b/lib/views/poll_view/poll_view.dart @@ -0,0 +1,18 @@ +import 'package:fixnum/fixnum.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +import 'package:gocast_mobile/views/poll_view/poll_view_state.dart'; + +class PollView extends ConsumerStatefulWidget { + final bool isActive; + final Int64? streamID; + + const PollView({ + super.key, + required this.isActive, + this.streamID, + }); + + @override + PollViewState createState() => PollViewState(); +} diff --git a/lib/views/poll_view/poll_view_state.dart b/lib/views/poll_view/poll_view_state.dart new file mode 100644 index 00000000..bb3d8fad --- /dev/null +++ b/lib/views/poll_view/poll_view_state.dart @@ -0,0 +1,30 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:gocast_mobile/views/poll_view/poll_view.dart'; + +class PollViewState 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) { + return Scaffold( + appBar: AppBar( + title: Text('Poll View'), + ), + body: Center( + child: Text('Poll view content goes here'), + ), + ); + } +} 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..dcfe7ce2 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,12 @@ 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 57d3ce9b..874786b0 100644 --- a/lib/views/video_view/video_player.dart +++ b/lib/views/video_view/video_player.dart @@ -6,6 +6,7 @@ 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/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'; @@ -30,6 +31,8 @@ class VideoPlayerPageState extends ConsumerState { Timer? _progressTimer; bool _isChatVisible = false; bool _isChatActive = false; + bool _isPollsVisible = false; + bool _isPollActive = false; Widget _buildVideoLayout() { return Column( @@ -37,15 +40,20 @@ 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(isActive: _isChatVisible, streamID: widget.stream.id) + : InactiveView( + isActive: !_isChatVisible, streamID: widget.stream.id), + ), ], ); } @@ -56,6 +64,7 @@ class VideoPlayerPageState extends ConsumerState { _videoPlayerHandlers = VideoPlayerHandlers( switchPlaylist: _switchPlaylist, onToggleChat: _handleToggleChat, + onTogglePolls: _handleTogglePolls, ); _initializeControllerManager(); Future.microtask(() async { @@ -68,6 +77,7 @@ class VideoPlayerPageState extends ConsumerState { widget.stream.chatEnabled) { setState(() { _isChatActive = true; + _isPollActive = true; }); } } @@ -233,6 +243,14 @@ class VideoPlayerPageState extends ConsumerState { void _handleToggleChat() { setState(() { _isChatVisible = !_isChatVisible; + _isPollsVisible = false; + }); + } + + void _handleTogglePolls() { + setState(() { + _isChatVisible = false; + _isPollsVisible = !_isPollsVisible; }); } From 63b3794539a8eec5278b57a26ebfb30d58eb733a Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Sat, 27 Jan 2024 10:56:51 +0100 Subject: [PATCH 4/7] clean the unused parameters --- lib/views/chat_view/chat_view.dart | 2 -- lib/views/chat_view/chat_view_state.dart | 5 ----- lib/views/chat_view/inactive_view.dart | 2 -- lib/views/{poll_view => chat_view}/poll_view.dart | 4 +--- .../{poll_view => chat_view}/poll_view_state.dart | 2 +- .../offline_video_player/offline_video_player.dart | 4 ++-- lib/views/video_view/video_player.dart | 12 +++++++----- 7 files changed, 11 insertions(+), 20 deletions(-) rename lib/views/{poll_view => chat_view}/poll_view.dart (72%) rename lib/views/{poll_view => chat_view}/poll_view_state.dart (90%) diff --git a/lib/views/chat_view/chat_view.dart b/lib/views/chat_view/chat_view.dart index ed9636a8..6a8c39e3 100644 --- a/lib/views/chat_view/chat_view.dart +++ b/lib/views/chat_view/chat_view.dart @@ -5,12 +5,10 @@ import 'package:gocast_mobile/views/chat_view/chat_view_state.dart'; class ChatView extends ConsumerStatefulWidget { - final bool isActive; final Int64? streamID; const ChatView({ super.key, - required this.isActive, this.streamID, }); diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index 0bd3f950..741e89c9 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -44,9 +44,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((_) { @@ -66,8 +63,6 @@ class ChatViewState extends ConsumerState { }); } return buildActiveChat(isIOS); - //return widget.isActive ? buildActiveChat(isIOS) : - //buildInactiveChatOverlay(isIOS, suggestedStreams); } Widget buildActiveChat(bool isIOS) { diff --git a/lib/views/chat_view/inactive_view.dart b/lib/views/chat_view/inactive_view.dart index d678394d..1063c932 100644 --- a/lib/views/chat_view/inactive_view.dart +++ b/lib/views/chat_view/inactive_view.dart @@ -8,12 +8,10 @@ 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 bool isActive; final Int64? streamID; const InactiveView({ super.key, - required this.isActive, this.streamID, }); diff --git a/lib/views/poll_view/poll_view.dart b/lib/views/chat_view/poll_view.dart similarity index 72% rename from lib/views/poll_view/poll_view.dart rename to lib/views/chat_view/poll_view.dart index 7c130193..6c38c618 100644 --- a/lib/views/poll_view/poll_view.dart +++ b/lib/views/chat_view/poll_view.dart @@ -1,15 +1,13 @@ import 'package:fixnum/fixnum.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:gocast_mobile/views/poll_view/poll_view_state.dart'; +import 'package:gocast_mobile/views/chat_view/poll_view_state.dart'; class PollView extends ConsumerStatefulWidget { - final bool isActive; final Int64? streamID; const PollView({ super.key, - required this.isActive, this.streamID, }); diff --git a/lib/views/poll_view/poll_view_state.dart b/lib/views/chat_view/poll_view_state.dart similarity index 90% rename from lib/views/poll_view/poll_view_state.dart rename to lib/views/chat_view/poll_view_state.dart index bb3d8fad..a479a841 100644 --- a/lib/views/poll_view/poll_view_state.dart +++ b/lib/views/chat_view/poll_view_state.dart @@ -1,7 +1,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:gocast_mobile/views/poll_view/poll_view.dart'; +import 'package:gocast_mobile/views/chat_view/poll_view.dart'; class PollViewState extends ConsumerState { @override 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/video_player.dart b/lib/views/video_view/video_player.dart index 874786b0..86088b8c 100644 --- a/lib/views/video_view/video_player.dart +++ b/lib/views/video_view/video_player.dart @@ -7,6 +7,7 @@ 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'; @@ -46,13 +47,14 @@ class VideoPlayerPageState extends ConsumerState { isChatActive: _isChatActive, isPollActive: _isPollActive, isPollVisible: _isPollsVisible, - onDownload: (type) => _downloadVideo(widget.stream,type), + onDownload: (type) => _downloadVideo(widget.stream, type), ), Expanded( - child: _isChatVisible - ? ChatView(isActive: _isChatVisible, streamID: widget.stream.id) - : InactiveView( - isActive: !_isChatVisible, streamID: widget.stream.id), + child: _isChatVisible + ? ChatView(streamID: widget.stream.id) + : _isPollsVisible + ? PollView(streamID: widget.stream.id) + : InactiveView(streamID: widget.stream.id), ), ], ); From e6406773db57d82e2d1da9845801dd1c3213d5ff Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Sat, 27 Jan 2024 15:41:47 +0100 Subject: [PATCH 5/7] update protofile, convert int64 to int --- lib/base/networking/api/gocast/api_v2.pb.dart | 451 +++++++++++------- .../networking/api/gocast/api_v2.pbgrpc.dart | 78 +-- .../networking/api/gocast/api_v2.pbjson.dart | 139 +++--- .../networking/api/handler/chat_handler.dart | 17 +- .../networking/api/handler/poll_handler.dart | 4 +- .../api/handler/stream_handler.dart | 12 +- lib/providers.dart | 9 +- lib/view_models/chat_view_model.dart | 18 +- lib/view_models/download_view_model.dart | 10 +- lib/view_models/poll_view_model.dart | 4 +- lib/view_models/stream_view_model.dart | 14 +- lib/views/chat_view/chat_view.dart | 2 +- lib/views/chat_view/chat_view_state.dart | 2 +- lib/views/chat_view/inactive_view.dart | 2 +- lib/views/chat_view/poll_view.dart | 2 +- lib/views/chat_view/poll_view_state.dart | 124 ++++- .../course_view/components/course_card.dart | 4 +- .../components/course_section.dart | 2 +- .../list_courses_view/courses_list_view.dart | 2 +- proto/gocast/api_v2.proto | 77 +-- 20 files changed, 602 insertions(+), 371 deletions(-) diff --git a/lib/base/networking/api/gocast/api_v2.pb.dart b/lib/base/networking/api/gocast/api_v2.pb.dart index df8ec681..b2f5754f 100644 --- a/lib/base/networking/api/gocast/api_v2.pb.dart +++ b/lib/base/networking/api/gocast/api_v2.pb.dart @@ -11,7 +11,6 @@ import 'dart:core' as $core; -import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; import '../google/protobuf/timestamp.pb.dart' as $1; @@ -393,7 +392,7 @@ class ChatMessage extends $pb.GeneratedMessage { class GetChatMessagesRequest extends $pb.GeneratedMessage { factory GetChatMessagesRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -406,7 +405,8 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -432,9 +432,12 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { static GetChatMessagesRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) @@ -444,7 +447,7 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { class PostChatMessageRequest extends $pb.GeneratedMessage { factory PostChatMessageRequest({ $core.String? message, - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (message != null) { @@ -461,7 +464,8 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatMessageRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -496,9 +500,12 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { void clearMessage() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get streamID => $_getI64(1); + $core.int get streamID => $_getIZ(1); @$pb.TagNumber(2) - set streamID($fixnum.Int64 v) { $_setInt64(1, v); } + set streamID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasStreamID() => $_has(1); @$pb.TagNumber(2) @@ -508,8 +515,8 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { class PostChatReactionRequest extends $pb.GeneratedMessage { factory PostChatReactionRequest({ $core.String? emoji, - $fixnum.Int64? streamID, - $fixnum.Int64? chatID, + $core.int? streamID, + $core.int? chatID, }) { final $result = create(); if (emoji != null) { @@ -529,8 +536,10 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatReactionRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'emoji') - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU6, protoName: 'chatID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..a<$core.int>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, + protoName: 'chatID') ..hasRequiredFields = false ; @@ -565,18 +574,24 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { void clearEmoji() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get streamID => $_getI64(1); + $core.int get streamID => $_getIZ(1); @$pb.TagNumber(2) - set streamID($fixnum.Int64 v) { $_setInt64(1, v); } + set streamID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasStreamID() => $_has(1); @$pb.TagNumber(2) void clearStreamID() => clearField(2); @$pb.TagNumber(3) - $fixnum.Int64 get chatID => $_getI64(2); + $core.int get chatID => $_getIZ(2); @$pb.TagNumber(3) - set chatID($fixnum.Int64 v) { $_setInt64(2, v); } + set chatID($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasChatID() => $_has(2); @$pb.TagNumber(3) @@ -585,9 +600,9 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { class DeleteChatReactionRequest extends $pb.GeneratedMessage { factory DeleteChatReactionRequest({ - $fixnum.Int64? streamID, - $fixnum.Int64? chatID, - $fixnum.Int64? reactionID, + $core.int? streamID, + $core.int? chatID, + $core.int? reactionID, }) { final $result = create(); if (streamID != null) { @@ -606,9 +621,12 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU6, protoName: 'chatID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'reactionID', $pb.PbFieldType.OU6, protoName: 'reactionID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, + protoName: 'chatID') + ..a<$core.int>(3, _omitFieldNames ? '' : 'reactionID', $pb.PbFieldType.OU3, + protoName: 'reactionID') ..hasRequiredFields = false ; @@ -634,27 +652,36 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { static DeleteChatReactionRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) void clearStreamID() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get chatID => $_getI64(1); + $core.int get chatID => $_getIZ(1); @$pb.TagNumber(2) - set chatID($fixnum.Int64 v) { $_setInt64(1, v); } + set chatID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasChatID() => $_has(1); @$pb.TagNumber(2) void clearChatID() => clearField(2); @$pb.TagNumber(3) - $fixnum.Int64 get reactionID => $_getI64(2); + $core.int get reactionID => $_getIZ(2); @$pb.TagNumber(3) - set reactionID($fixnum.Int64 v) { $_setInt64(2, v); } + set reactionID($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasReactionID() => $_has(2); @$pb.TagNumber(3) @@ -664,8 +691,8 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { class PostChatReplyRequest extends $pb.GeneratedMessage { factory PostChatReplyRequest({ $core.String? message, - $fixnum.Int64? streamID, - $fixnum.Int64? chatID, + $core.int? streamID, + $core.int? chatID, }) { final $result = create(); if (message != null) { @@ -685,8 +712,10 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PostChatReplyRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'message') - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU6, protoName: 'chatID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(2, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..a<$core.int>(3, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, + protoName: 'chatID') ..hasRequiredFields = false ; @@ -721,18 +750,24 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { void clearMessage() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get streamID => $_getI64(1); + $core.int get streamID => $_getIZ(1); @$pb.TagNumber(2) - set streamID($fixnum.Int64 v) { $_setInt64(1, v); } + set streamID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasStreamID() => $_has(1); @$pb.TagNumber(2) void clearStreamID() => clearField(2); @$pb.TagNumber(3) - $fixnum.Int64 get chatID => $_getI64(2); + $core.int get chatID => $_getIZ(2); @$pb.TagNumber(3) - set chatID($fixnum.Int64 v) { $_setInt64(2, v); } + set chatID($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasChatID() => $_has(2); @$pb.TagNumber(3) @@ -741,8 +776,8 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { factory MarkChatMessageAsResolvedRequest({ - $fixnum.Int64? streamID, - $fixnum.Int64? chatID, + $core.int? streamID, + $core.int? chatID, }) { final $result = create(); if (streamID != null) { @@ -758,8 +793,10 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU6, protoName: 'chatID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, + protoName: 'chatID') ..hasRequiredFields = false ; @@ -785,18 +822,24 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { static MarkChatMessageAsResolvedRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) void clearStreamID() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get chatID => $_getI64(1); + $core.int get chatID => $_getIZ(1); @$pb.TagNumber(2) - set chatID($fixnum.Int64 v) { $_setInt64(1, v); } + set chatID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasChatID() => $_has(1); @$pb.TagNumber(2) @@ -805,8 +848,8 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { factory MarkChatMessageAsUnresolvedRequest({ - $fixnum.Int64? streamID, - $fixnum.Int64? chatID, + $core.int? streamID, + $core.int? chatID, }) { final $result = create(); if (streamID != null) { @@ -822,8 +865,10 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU6, protoName: 'chatID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..a<$core.int>(2, _omitFieldNames ? '' : 'chatID', $pb.PbFieldType.OU3, + protoName: 'chatID') ..hasRequiredFields = false ; @@ -849,18 +894,24 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { static MarkChatMessageAsUnresolvedRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) void clearStreamID() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get chatID => $_getI64(1); + $core.int get chatID => $_getIZ(1); @$pb.TagNumber(2) - set chatID($fixnum.Int64 v) { $_setInt64(1, v); } + set chatID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasChatID() => $_has(1); @$pb.TagNumber(2) @@ -1229,7 +1280,6 @@ class Poll extends $pb.GeneratedMessage { } return $result; } - Poll._() : super(); factory Poll.fromBuffer($core.List<$core.int> i, @@ -1269,11 +1319,8 @@ class Poll extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static Poll create() => Poll._(); - Poll createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') static Poll getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1281,7 +1328,6 @@ class Poll extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get id => $_getIZ(0); - @$pb.TagNumber(1) set id($core.int v) { $_setUnsignedInt32(0, v); @@ -1289,13 +1335,11 @@ class Poll extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.bool hasId() => $_has(0); - @$pb.TagNumber(1) void clearId() => clearField(1); @$pb.TagNumber(2) $core.int get streamID => $_getIZ(1); - @$pb.TagNumber(2) set streamID($core.int v) { $_setUnsignedInt32(1, v); @@ -1303,13 +1347,11 @@ class Poll extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool hasStreamID() => $_has(1); - @$pb.TagNumber(2) void clearStreamID() => clearField(2); @$pb.TagNumber(3) $core.String get question => $_getSZ(2); - @$pb.TagNumber(3) set question($core.String v) { $_setString(2, v); @@ -1317,13 +1359,11 @@ class Poll extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool hasQuestion() => $_has(2); - @$pb.TagNumber(3) void clearQuestion() => clearField(3); @$pb.TagNumber(4) $core.bool get active => $_getBF(3); - @$pb.TagNumber(4) set active($core.bool v) { $_setBool(3, v); @@ -1331,7 +1371,6 @@ class Poll extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.bool hasActive() => $_has(3); - @$pb.TagNumber(4) void clearActive() => clearField(4); @@ -1344,6 +1383,7 @@ class PollOption extends $pb.GeneratedMessage { $core.int? id, $core.String? answer, $core.int? votes, + $core.bool? voted, }) { final $result = create(); if (id != null) { @@ -1355,9 +1395,11 @@ class PollOption extends $pb.GeneratedMessage { if (votes != null) { $result.votes = votes; } + if (voted != null) { + $result.voted = voted; + } return $result; } - PollOption._() : super(); factory PollOption.fromBuffer($core.List<$core.int> i, @@ -1375,6 +1417,7 @@ class PollOption extends $pb.GeneratedMessage { ..a<$core.int>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'answer') ..a<$core.int>(3, _omitFieldNames ? '' : 'votes', $pb.PbFieldType.OU3) + ..aOB(4, _omitFieldNames ? '' : 'voted') ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1392,11 +1435,8 @@ class PollOption extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PollOption create() => PollOption._(); - PollOption createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') static PollOption getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1404,7 +1444,6 @@ class PollOption extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get id => $_getIZ(0); - @$pb.TagNumber(1) set id($core.int v) { $_setUnsignedInt32(0, v); @@ -1412,13 +1451,11 @@ class PollOption extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.bool hasId() => $_has(0); - @$pb.TagNumber(1) void clearId() => clearField(1); @$pb.TagNumber(2) $core.String get answer => $_getSZ(1); - @$pb.TagNumber(2) set answer($core.String v) { $_setString(1, v); @@ -1426,13 +1463,11 @@ class PollOption extends $pb.GeneratedMessage { @$pb.TagNumber(2) $core.bool hasAnswer() => $_has(1); - @$pb.TagNumber(2) void clearAnswer() => clearField(2); @$pb.TagNumber(3) $core.int get votes => $_getIZ(2); - @$pb.TagNumber(3) set votes($core.int v) { $_setUnsignedInt32(2, v); @@ -1440,14 +1475,27 @@ class PollOption extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.bool hasVotes() => $_has(2); - @$pb.TagNumber(3) void clearVotes() => clearField(3); + + @$pb.TagNumber(4) + $core.bool get voted => $_getBF(3); + + @$pb.TagNumber(4) + set voted($core.bool v) { + $_setBool(3, v); + } + + @$pb.TagNumber(4) + $core.bool hasVoted() => $_has(3); + + @$pb.TagNumber(4) + void clearVoted() => clearField(4); } class GetPollsRequest extends $pb.GeneratedMessage { factory GetPollsRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -1455,7 +1503,6 @@ class GetPollsRequest extends $pb.GeneratedMessage { } return $result; } - GetPollsRequest._() : super(); factory GetPollsRequest.fromBuffer($core.List<$core.int> i, @@ -1470,9 +1517,8 @@ class GetPollsRequest extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'GetPollsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..a<$fixnum.Int64>( - 1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, - protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1491,36 +1537,32 @@ class GetPollsRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetPollsRequest create() => GetPollsRequest._(); - GetPollsRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') static GetPollsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static GetPollsRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); - + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { - $_setInt64(0, v); + set streamID($core.int v) { + $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); - @$pb.TagNumber(1) void clearStreamID() => clearField(1); } class PostPollVoteRequest extends $pb.GeneratedMessage { factory PostPollVoteRequest({ - $fixnum.Int64? streamID, - $fixnum.Int64? pollOptionID, + $core.int? streamID, + $core.int? pollOptionID, }) { final $result = create(); if (streamID != null) { @@ -1531,7 +1573,6 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { } return $result; } - PostPollVoteRequest._() : super(); factory PostPollVoteRequest.fromBuffer($core.List<$core.int> i, @@ -1546,12 +1587,11 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { _omitMessageNames ? '' : 'PostPollVoteRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) - ..a<$fixnum.Int64>( - 1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, - protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) - ..a<$fixnum.Int64>( - 2, _omitFieldNames ? '' : 'pollOptionID', $pb.PbFieldType.OU6, - protoName: 'pollOptionID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') + ..a<$core.int>( + 2, _omitFieldNames ? '' : 'pollOptionID', $pb.PbFieldType.OU3, + protoName: 'pollOptionID') ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -1570,42 +1610,36 @@ class PostPollVoteRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostPollVoteRequest create() => PostPollVoteRequest._(); - PostPollVoteRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') static PostPollVoteRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PostPollVoteRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); - + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { - $_setInt64(0, v); + set streamID($core.int v) { + $_setUnsignedInt32(0, v); } @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); - @$pb.TagNumber(1) void clearStreamID() => clearField(1); @$pb.TagNumber(2) - $fixnum.Int64 get pollOptionID => $_getI64(1); - + $core.int get pollOptionID => $_getIZ(1); @$pb.TagNumber(2) - set pollOptionID($fixnum.Int64 v) { - $_setInt64(1, v); + set pollOptionID($core.int v) { + $_setUnsignedInt32(1, v); } @$pb.TagNumber(2) $core.bool hasPollOptionID() => $_has(1); - @$pb.TagNumber(2) void clearPollOptionID() => clearField(2); } @@ -1620,7 +1654,6 @@ class GetPollsResponse extends $pb.GeneratedMessage { } return $result; } - GetPollsResponse._() : super(); factory GetPollsResponse.fromBuffer($core.List<$core.int> i, @@ -1655,12 +1688,10 @@ class GetPollsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetPollsResponse create() => GetPollsResponse._(); - GetPollsResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') static GetPollsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -1672,7 +1703,6 @@ class GetPollsResponse extends $pb.GeneratedMessage { class PostPollVoteResponse extends $pb.GeneratedMessage { factory PostPollVoteResponse() => create(); - PostPollVoteResponse._() : super(); factory PostPollVoteResponse.fromBuffer($core.List<$core.int> i, @@ -1706,12 +1736,10 @@ class PostPollVoteResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static PostPollVoteResponse create() => PostPollVoteResponse._(); - PostPollVoteResponse createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') static PostPollVoteResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); @@ -2015,10 +2043,10 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.O3) + ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') - ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.O3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.OU3) ..hasRequiredFields = false ; @@ -2046,7 +2074,10 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get year => $_getIZ(0); @$pb.TagNumber(1) - set year($core.int v) { $_setSignedInt32(0, v); } + set year($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasYear() => $_has(0); @$pb.TagNumber(1) @@ -2064,7 +2095,10 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get limit => $_getIZ(2); @$pb.TagNumber(3) - set limit($core.int v) { $_setSignedInt32(2, v); } + set limit($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasLimit() => $_has(2); @$pb.TagNumber(3) @@ -2073,7 +2107,10 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get skip => $_getIZ(3); @$pb.TagNumber(4) - set skip($core.int v) { $_setSignedInt32(3, v); } + set skip($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasSkip() => $_has(3); @$pb.TagNumber(4) @@ -2107,10 +2144,10 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.O3) + ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') - ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.O3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.OU3) ..hasRequiredFields = false ; @@ -2138,7 +2175,10 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get year => $_getIZ(0); @$pb.TagNumber(1) - set year($core.int v) { $_setSignedInt32(0, v); } + set year($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasYear() => $_has(0); @$pb.TagNumber(1) @@ -2156,7 +2196,10 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get limit => $_getIZ(2); @$pb.TagNumber(3) - set limit($core.int v) { $_setSignedInt32(2, v); } + set limit($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasLimit() => $_has(2); @$pb.TagNumber(3) @@ -2165,7 +2208,10 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get skip => $_getIZ(3); @$pb.TagNumber(4) - set skip($core.int v) { $_setSignedInt32(3, v); } + set skip($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasSkip() => $_has(3); @$pb.TagNumber(4) @@ -2339,7 +2385,8 @@ class PostPinnedRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.O3, protoName: 'courseID') + ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, + protoName: 'courseID') ..hasRequiredFields = false ; @@ -2367,7 +2414,10 @@ class PostPinnedRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get courseID => $_getIZ(0); @$pb.TagNumber(1) - set courseID($core.int v) { $_setSignedInt32(0, v); } + set courseID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasCourseID() => $_has(0); @$pb.TagNumber(1) @@ -2389,7 +2439,8 @@ class DeletePinnedRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.O3, protoName: 'courseID') + ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, + protoName: 'courseID') ..hasRequiredFields = false ; @@ -2417,7 +2468,10 @@ class DeletePinnedRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get courseID => $_getIZ(0); @$pb.TagNumber(1) - set courseID($core.int v) { $_setSignedInt32(0, v); } + set courseID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasCourseID() => $_has(0); @$pb.TagNumber(1) @@ -2865,7 +2919,8 @@ class GetBookmarksRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.O3, protoName: 'streamID') + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -2893,7 +2948,10 @@ class GetBookmarksRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($core.int v) { $_setSignedInt32(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) @@ -4203,10 +4261,10 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.O3) + ..a<$core.int>(1, _omitFieldNames ? '' : 'year', $pb.PbFieldType.OU3) ..aOS(2, _omitFieldNames ? '' : 'term') - ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.O3) - ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.O3) + ..a<$core.int>(3, _omitFieldNames ? '' : 'limit', $pb.PbFieldType.OU3) + ..a<$core.int>(4, _omitFieldNames ? '' : 'skip', $pb.PbFieldType.OU3) ..hasRequiredFields = false ; @@ -4234,7 +4292,10 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get year => $_getIZ(0); @$pb.TagNumber(1) - set year($core.int v) { $_setSignedInt32(0, v); } + set year($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasYear() => $_has(0); @$pb.TagNumber(1) @@ -4252,7 +4313,10 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(3) $core.int get limit => $_getIZ(2); @$pb.TagNumber(3) - set limit($core.int v) { $_setSignedInt32(2, v); } + set limit($core.int v) { + $_setUnsignedInt32(2, v); + } + @$pb.TagNumber(3) $core.bool hasLimit() => $_has(2); @$pb.TagNumber(3) @@ -4261,7 +4325,10 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { @$pb.TagNumber(4) $core.int get skip => $_getIZ(3); @$pb.TagNumber(4) - set skip($core.int v) { $_setSignedInt32(3, v); } + set skip($core.int v) { + $_setUnsignedInt32(3, v); + } + @$pb.TagNumber(4) $core.bool hasSkip() => $_has(3); @$pb.TagNumber(4) @@ -4315,7 +4382,8 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { 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) - ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.O3, protoName: 'courseID') + ..a<$core.int>(1, _omitFieldNames ? '' : 'courseID', $pb.PbFieldType.OU3, + protoName: 'courseID') ..hasRequiredFields = false ; @@ -4343,7 +4411,10 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { @$pb.TagNumber(1) $core.int get courseID => $_getIZ(0); @$pb.TagNumber(1) - set courseID($core.int v) { $_setSignedInt32(0, v); } + set courseID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasCourseID() => $_has(0); @$pb.TagNumber(1) @@ -4500,7 +4571,7 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { class Stream extends $pb.GeneratedMessage { factory Stream({ - $fixnum.Int64? id, + $core.int? id, $core.String? name, $core.String? description, $core.int? courseID, @@ -4621,7 +4692,7 @@ class Stream extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'id', $pb.PbFieldType.OU6, defaultOrMaker: $fixnum.Int64.ZERO) + ..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') @@ -4641,10 +4712,14 @@ class Stream extends $pb.GeneratedMessage { ..aOB(18, _omitFieldNames ? '' : 'recording') ..aOB(19, _omitFieldNames ? '' : 'premiere') ..aOB(20, _omitFieldNames ? '' : 'ended') - ..a<$core.int>(21, _omitFieldNames ? '' : 'vodViews', $pb.PbFieldType.OU3, protoName: 'vodViews') - ..a<$core.int>(22, _omitFieldNames ? '' : 'startOffset', $pb.PbFieldType.OU3, protoName: 'startOffset') - ..a<$core.int>(23, _omitFieldNames ? '' : 'endOffset', $pb.PbFieldType.OU3, protoName: 'endOffset') - ..a<$core.int>(28, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.O3) + ..a<$core.int>(21, _omitFieldNames ? '' : 'vodViews', $pb.PbFieldType.OU3, + protoName: 'vodViews') + ..a<$core.int>( + 22, _omitFieldNames ? '' : 'startOffset', $pb.PbFieldType.OU3, + protoName: 'startOffset') + ..a<$core.int>(23, _omitFieldNames ? '' : 'endOffset', $pb.PbFieldType.OU3, + protoName: 'endOffset') + ..a<$core.int>(28, _omitFieldNames ? '' : 'duration', $pb.PbFieldType.OU3) ..pc(29, _omitFieldNames ? '' : 'downloads', $pb.PbFieldType.PM, subBuilder: Download.create) ..aOB(30, _omitFieldNames ? '' : 'isPlanned', protoName: 'isPlanned') ..aOB(31, _omitFieldNames ? '' : 'isComingUp', protoName: 'isComingUp') @@ -4674,9 +4749,12 @@ class Stream extends $pb.GeneratedMessage { static Stream? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get id => $_getI64(0); + $core.int get id => $_getIZ(0); @$pb.TagNumber(1) - set id($fixnum.Int64 v) { $_setInt64(0, v); } + set id($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasId() => $_has(0); @$pb.TagNumber(1) @@ -4889,7 +4967,10 @@ class Stream extends $pb.GeneratedMessage { @$pb.TagNumber(28) $core.int get duration => $_getIZ(23); @$pb.TagNumber(28) - set duration($core.int v) { $_setSignedInt32(23, v); } + set duration($core.int v) { + $_setUnsignedInt32(23, v); + } + @$pb.TagNumber(28) $core.bool hasDuration() => $_has(23); @$pb.TagNumber(28) @@ -4928,7 +5009,7 @@ class Stream extends $pb.GeneratedMessage { class GetStreamRequest extends $pb.GeneratedMessage { factory GetStreamRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -4941,7 +5022,8 @@ class GetStreamRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -4967,9 +5049,12 @@ class GetStreamRequest extends $pb.GeneratedMessage { static GetStreamRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) @@ -5010,7 +5095,7 @@ class GetNowLiveRequest extends $pb.GeneratedMessage { class GetThumbsLiveRequest extends $pb.GeneratedMessage { factory GetThumbsLiveRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -5023,7 +5108,8 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -5049,9 +5135,12 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { static GetThumbsLiveRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) @@ -5060,7 +5149,7 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { class GetThumbsVODRequest extends $pb.GeneratedMessage { factory GetThumbsVODRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -5073,7 +5162,8 @@ class GetThumbsVODRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -5099,9 +5189,12 @@ class GetThumbsVODRequest extends $pb.GeneratedMessage { static GetThumbsVODRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) @@ -5462,7 +5555,7 @@ class Progress extends $pb.GeneratedMessage { class GetProgressRequest extends $pb.GeneratedMessage { factory GetProgressRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -5475,7 +5568,8 @@ class GetProgressRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -5501,9 +5595,12 @@ class GetProgressRequest extends $pb.GeneratedMessage { static GetProgressRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) @@ -5513,7 +5610,7 @@ class GetProgressRequest extends $pb.GeneratedMessage { class PutProgressRequest extends $pb.GeneratedMessage { factory PutProgressRequest({ $core.double? progress, - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (progress != null) { @@ -5530,7 +5627,8 @@ class PutProgressRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PutProgressRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'protobuf'), createEmptyInstance: create) ..a<$core.double>(1, _omitFieldNames ? '' : 'progress', $pb.PbFieldType.OF) - ..a<$fixnum.Int64>(3, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(3, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -5565,9 +5663,12 @@ class PutProgressRequest extends $pb.GeneratedMessage { void clearProgress() => clearField(1); @$pb.TagNumber(3) - $fixnum.Int64 get streamID => $_getI64(1); + $core.int get streamID => $_getIZ(1); @$pb.TagNumber(3) - set streamID($fixnum.Int64 v) { $_setInt64(1, v); } + set streamID($core.int v) { + $_setUnsignedInt32(1, v); + } + @$pb.TagNumber(3) $core.bool hasStreamID() => $_has(1); @$pb.TagNumber(3) @@ -5576,7 +5677,7 @@ class PutProgressRequest extends $pb.GeneratedMessage { class MarkAsWatchedRequest extends $pb.GeneratedMessage { factory MarkAsWatchedRequest({ - $fixnum.Int64? streamID, + $core.int? streamID, }) { final $result = create(); if (streamID != null) { @@ -5589,7 +5690,8 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { 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) - ..a<$fixnum.Int64>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU6, protoName: 'streamID', defaultOrMaker: $fixnum.Int64.ZERO) + ..a<$core.int>(1, _omitFieldNames ? '' : 'streamID', $pb.PbFieldType.OU3, + protoName: 'streamID') ..hasRequiredFields = false ; @@ -5615,9 +5717,12 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { static MarkAsWatchedRequest? _defaultInstance; @$pb.TagNumber(1) - $fixnum.Int64 get streamID => $_getI64(0); + $core.int get streamID => $_getIZ(0); @$pb.TagNumber(1) - set streamID($fixnum.Int64 v) { $_setInt64(0, v); } + set streamID($core.int v) { + $_setUnsignedInt32(0, v); + } + @$pb.TagNumber(1) $core.bool hasStreamID() => $_has(0); @$pb.TagNumber(1) diff --git a/lib/base/networking/api/gocast/api_v2.pbgrpc.dart b/lib/base/networking/api/gocast/api_v2.pbgrpc.dart index 845047e2..ee282981 100644 --- a/lib/base/networking/api/gocast/api_v2.pbgrpc.dart +++ b/lib/base/networking/api/gocast/api_v2.pbgrpc.dart @@ -476,9 +476,9 @@ abstract class APIServiceBase extends $grpc.Service { $addMethod( $grpc.ServiceMethod<$0.GetUserPinnedRequest, $0.GetUserPinnedResponse>( 'getUserPinned', - getUserPinned_Pre, - false, - false, + getUserPinned_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetUserPinnedRequest.fromBuffer(value), ($0.GetUserPinnedResponse value) => value.writeToBuffer())); @@ -492,18 +492,18 @@ abstract class APIServiceBase extends $grpc.Service { $addMethod( $grpc.ServiceMethod<$0.DeletePinnedRequest, $0.DeletePinnedResponse>( 'deleteUserPinned', - deleteUserPinned_Pre, - false, - false, + deleteUserPinned_Pre, + false, + false, ($core.List<$core.int> value) => $0.DeletePinnedRequest.fromBuffer(value), ($0.DeletePinnedResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.GetUserAdminRequest, $0.GetUserAdminResponse>( 'getUserAdminCourses', - getUserAdminCourses_Pre, - false, - false, + getUserAdminCourses_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetUserAdminRequest.fromBuffer(value), ($0.GetUserAdminResponse value) => value.writeToBuffer())); @@ -528,27 +528,27 @@ abstract class APIServiceBase extends $grpc.Service { $addMethod( $grpc.ServiceMethod<$0.GetBookmarksRequest, $0.GetBookmarksResponse>( 'getUserBookmarks', - getUserBookmarks_Pre, - false, - false, + getUserBookmarks_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetBookmarksRequest.fromBuffer(value), ($0.GetBookmarksResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.PutBookmarkRequest, $0.PutBookmarkResponse>( 'putUserBookmark', - putUserBookmark_Pre, - false, - false, + putUserBookmark_Pre, + false, + false, ($core.List<$core.int> value) => $0.PutBookmarkRequest.fromBuffer(value), ($0.PutBookmarkResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.PatchBookmarkRequest, $0.PatchBookmarkResponse>( 'patchUserBookmark', - patchUserBookmark_Pre, - false, - false, + patchUserBookmark_Pre, + false, + false, ($core.List<$core.int> value) => $0.PatchBookmarkRequest.fromBuffer(value), ($0.PatchBookmarkResponse value) => value.writeToBuffer())); @@ -609,9 +609,9 @@ abstract class APIServiceBase extends $grpc.Service { $addMethod( $grpc.ServiceMethod<$0.GetSemestersRequest, $0.GetSemestersResponse>( 'getSemesters', - getSemesters_Pre, - false, - false, + getSemesters_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetSemestersRequest.fromBuffer(value), ($0.GetSemestersResponse value) => value.writeToBuffer())); @@ -641,45 +641,45 @@ abstract class APIServiceBase extends $grpc.Service { $addMethod( $grpc.ServiceMethod<$0.GetThumbsVODRequest, $0.GetThumbsVODResponse>( 'getThumbsVOD', - getThumbsVOD_Pre, - false, - false, + getThumbsVOD_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetThumbsVODRequest.fromBuffer(value), ($0.GetThumbsVODResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.GetThumbsLiveRequest, $0.GetThumbsLiveResponse>( 'getThumbsLive', - getThumbsLive_Pre, - false, - false, + getThumbsLive_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetThumbsLiveRequest.fromBuffer(value), ($0.GetThumbsLiveResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.GetProgressRequest, $0.GetProgressResponse>( 'getProgress', - getProgress_Pre, - false, - false, + getProgress_Pre, + false, + false, ($core.List<$core.int> value) => $0.GetProgressRequest.fromBuffer(value), ($0.GetProgressResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.PutProgressRequest, $0.PutProgressResponse>( 'putProgress', - putProgress_Pre, - false, - false, + putProgress_Pre, + false, + false, ($core.List<$core.int> value) => $0.PutProgressRequest.fromBuffer(value), ($0.PutProgressResponse value) => value.writeToBuffer())); $addMethod( $grpc.ServiceMethod<$0.MarkAsWatchedRequest, $0.MarkAsWatchedResponse>( 'markAsWatched', - markAsWatched_Pre, - false, - false, + markAsWatched_Pre, + false, + false, ($core.List<$core.int> value) => $0.MarkAsWatchedRequest.fromBuffer(value), ($0.MarkAsWatchedResponse value) => value.writeToBuffer())); @@ -722,9 +722,9 @@ abstract class APIServiceBase extends $grpc.Service { $addMethod( $grpc.ServiceMethod<$0.PostChatReplyRequest, $0.PostChatReplyResponse>( 'postChatReply', - postChatReply_Pre, - false, - false, + postChatReply_Pre, + false, + false, ($core.List<$core.int> value) => $0.PostChatReplyRequest.fromBuffer(value), ($0.PostChatReplyResponse value) => value.writeToBuffer())); diff --git a/lib/base/networking/api/gocast/api_v2.pbjson.dart b/lib/base/networking/api/gocast/api_v2.pbjson.dart index 5bc9821f..06417d4c 100644 --- a/lib/base/networking/api/gocast/api_v2.pbjson.dart +++ b/lib/base/networking/api/gocast/api_v2.pbjson.dart @@ -97,100 +97,100 @@ final $typed_data.Uint8List chatMessageDescriptor = $convert.base64Decode( const GetChatMessagesRequest$json = { '1': 'GetChatMessagesRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetChatMessagesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getChatMessagesRequestDescriptor = $convert.base64Decode( - 'ChZHZXRDaGF0TWVzc2FnZXNSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUghzdHJlYW1JRA=='); + 'ChZHZXRDaGF0TWVzc2FnZXNSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use postChatMessageRequestDescriptor instead') const PostChatMessageRequest$json = { '1': 'PostChatMessageRequest', '2': [ {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - {'1': 'streamID', '3': 2, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 2, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `PostChatMessageRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List postChatMessageRequestDescriptor = $convert.base64Decode( 'ChZQb3N0Q2hhdE1lc3NhZ2VSZXF1ZXN0EhgKB21lc3NhZ2UYASABKAlSB21lc3NhZ2USGgoIc3' - 'RyZWFtSUQYAiABKARSCHN0cmVhbUlE'); + 'RyZWFtSUQYAiABKA1SCHN0cmVhbUlE'); @$core.Deprecated('Use postChatReactionRequestDescriptor instead') const PostChatReactionRequest$json = { '1': 'PostChatReactionRequest', '2': [ {'1': 'emoji', '3': 1, '4': 1, '5': 9, '10': 'emoji'}, - {'1': 'streamID', '3': 2, '4': 1, '5': 4, '10': 'streamID'}, - {'1': 'chatID', '3': 3, '4': 1, '5': 4, '10': 'chatID'}, + {'1': 'streamID', '3': 2, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'chatID', '3': 3, '4': 1, '5': 13, '10': 'chatID'}, ], }; /// Descriptor for `PostChatReactionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List postChatReactionRequestDescriptor = $convert.base64Decode( 'ChdQb3N0Q2hhdFJlYWN0aW9uUmVxdWVzdBIUCgVlbW9qaRgBIAEoCVIFZW1vamkSGgoIc3RyZW' - 'FtSUQYAiABKARSCHN0cmVhbUlEEhYKBmNoYXRJRBgDIAEoBFIGY2hhdElE'); + 'FtSUQYAiABKA1SCHN0cmVhbUlEEhYKBmNoYXRJRBgDIAEoDVIGY2hhdElE'); @$core.Deprecated('Use deleteChatReactionRequestDescriptor instead') const DeleteChatReactionRequest$json = { '1': 'DeleteChatReactionRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, - {'1': 'chatID', '3': 2, '4': 1, '5': 4, '10': 'chatID'}, - {'1': 'reactionID', '3': 3, '4': 1, '5': 4, '10': 'reactionID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'chatID', '3': 2, '4': 1, '5': 13, '10': 'chatID'}, + {'1': 'reactionID', '3': 3, '4': 1, '5': 13, '10': 'reactionID'}, ], }; /// Descriptor for `DeleteChatReactionRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deleteChatReactionRequestDescriptor = $convert.base64Decode( - 'ChlEZWxldGVDaGF0UmVhY3Rpb25SZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUghzdHJlYW1JRB' - 'IWCgZjaGF0SUQYAiABKARSBmNoYXRJRBIeCgpyZWFjdGlvbklEGAMgASgEUgpyZWFjdGlvbklE'); + 'ChlEZWxldGVDaGF0UmVhY3Rpb25SZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRB' + 'IWCgZjaGF0SUQYAiABKA1SBmNoYXRJRBIeCgpyZWFjdGlvbklEGAMgASgNUgpyZWFjdGlvbklE'); @$core.Deprecated('Use postChatReplyRequestDescriptor instead') const PostChatReplyRequest$json = { '1': 'PostChatReplyRequest', '2': [ {'1': 'message', '3': 1, '4': 1, '5': 9, '10': 'message'}, - {'1': 'streamID', '3': 2, '4': 1, '5': 4, '10': 'streamID'}, - {'1': 'chatID', '3': 3, '4': 1, '5': 4, '10': 'chatID'}, + {'1': 'streamID', '3': 2, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'chatID', '3': 3, '4': 1, '5': 13, '10': 'chatID'}, ], }; /// Descriptor for `PostChatReplyRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List postChatReplyRequestDescriptor = $convert.base64Decode( 'ChRQb3N0Q2hhdFJlcGx5UmVxdWVzdBIYCgdtZXNzYWdlGAEgASgJUgdtZXNzYWdlEhoKCHN0cm' - 'VhbUlEGAIgASgEUghzdHJlYW1JRBIWCgZjaGF0SUQYAyABKARSBmNoYXRJRA=='); + 'VhbUlEGAIgASgNUghzdHJlYW1JRBIWCgZjaGF0SUQYAyABKA1SBmNoYXRJRA=='); @$core.Deprecated('Use markChatMessageAsResolvedRequestDescriptor instead') const MarkChatMessageAsResolvedRequest$json = { '1': 'MarkChatMessageAsResolvedRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, - {'1': 'chatID', '3': 2, '4': 1, '5': 4, '10': 'chatID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'chatID', '3': 2, '4': 1, '5': 13, '10': 'chatID'}, ], }; /// Descriptor for `MarkChatMessageAsResolvedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List markChatMessageAsResolvedRequestDescriptor = $convert.base64Decode( - 'CiBNYXJrQ2hhdE1lc3NhZ2VBc1Jlc29sdmVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoBFIIc3' - 'RyZWFtSUQSFgoGY2hhdElEGAIgASgEUgZjaGF0SUQ='); + 'CiBNYXJrQ2hhdE1lc3NhZ2VBc1Jlc29sdmVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3' + 'RyZWFtSUQSFgoGY2hhdElEGAIgASgNUgZjaGF0SUQ='); @$core.Deprecated('Use markChatMessageAsUnresolvedRequestDescriptor instead') const MarkChatMessageAsUnresolvedRequest$json = { '1': 'MarkChatMessageAsUnresolvedRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, - {'1': 'chatID', '3': 2, '4': 1, '5': 4, '10': 'chatID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'chatID', '3': 2, '4': 1, '5': 13, '10': 'chatID'}, ], }; /// Descriptor for `MarkChatMessageAsUnresolvedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List markChatMessageAsUnresolvedRequestDescriptor = $convert.base64Decode( - 'CiJNYXJrQ2hhdE1lc3NhZ2VBc1VucmVzb2x2ZWRSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUg' - 'hzdHJlYW1JRBIWCgZjaGF0SUQYAiABKARSBmNoYXRJRA=='); + 'CiJNYXJrQ2hhdE1lc3NhZ2VBc1VucmVzb2x2ZWRSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUg' + 'hzdHJlYW1JRBIWCgZjaGF0SUQYAiABKA1SBmNoYXRJRA=='); @$core.Deprecated('Use getChatMessagesResponseDescriptor instead') const GetChatMessagesResponse$json = { @@ -311,39 +311,40 @@ const PollOption$json = { {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, {'1': 'answer', '3': 2, '4': 1, '5': 9, '10': 'answer'}, {'1': 'votes', '3': 3, '4': 1, '5': 13, '10': 'votes'}, + {'1': 'voted', '3': 4, '4': 1, '5': 8, '10': 'voted'}, ], }; /// Descriptor for `PollOption`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List pollOptionDescriptor = $convert.base64Decode( 'CgpQb2xsT3B0aW9uEg4KAmlkGAEgASgNUgJpZBIWCgZhbnN3ZXIYAiABKAlSBmFuc3dlchIUCg' - 'V2b3RlcxgDIAEoDVIFdm90ZXM='); + 'V2b3RlcxgDIAEoDVIFdm90ZXMSFAoFdm90ZWQYBCABKAhSBXZvdGVk'); @$core.Deprecated('Use getPollsRequestDescriptor instead') const GetPollsRequest$json = { '1': 'GetPollsRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetPollsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPollsRequestDescriptor = $convert.base64Decode( - 'Cg9HZXRQb2xsc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKARSCHN0cmVhbUlE'); + 'Cg9HZXRQb2xsc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE'); @$core.Deprecated('Use postPollVoteRequestDescriptor instead') const PostPollVoteRequest$json = { '1': 'PostPollVoteRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, - {'1': 'pollOptionID', '3': 2, '4': 1, '5': 4, '10': 'pollOptionID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, + {'1': 'pollOptionID', '3': 2, '4': 1, '5': 13, '10': 'pollOptionID'}, ], }; /// Descriptor for `PostPollVoteRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List postPollVoteRequestDescriptor = $convert.base64Decode( - 'ChNQb3N0UG9sbFZvdGVSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUghzdHJlYW1JRBIiCgxwb2' - 'xsT3B0aW9uSUQYAiABKARSDHBvbGxPcHRpb25JRA=='); + 'ChNQb3N0UG9sbFZvdGVSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRBIiCgxwb2' + 'xsT3B0aW9uSUQYAiABKA1SDHBvbGxPcHRpb25JRA=='); @$core.Deprecated('Use getPollsResponseDescriptor instead') const GetPollsResponse$json = { @@ -432,33 +433,33 @@ final $typed_data.Uint8List getUserRequestDescriptor = $convert.base64Decode( const GetUserCoursesRequest$json = { '1': 'GetUserCoursesRequest', '2': [ - {'1': 'year', '3': 1, '4': 1, '5': 5, '10': 'year'}, + {'1': 'year', '3': 1, '4': 1, '5': 13, '10': 'year'}, {'1': 'term', '3': 2, '4': 1, '5': 9, '10': 'term'}, - {'1': 'limit', '3': 3, '4': 1, '5': 5, '10': 'limit'}, - {'1': 'skip', '3': 4, '4': 1, '5': 5, '10': 'skip'}, + {'1': 'limit', '3': 3, '4': 1, '5': 13, '10': 'limit'}, + {'1': 'skip', '3': 4, '4': 1, '5': 13, '10': 'skip'}, ], }; /// Descriptor for `GetUserCoursesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getUserCoursesRequestDescriptor = $convert.base64Decode( - 'ChVHZXRVc2VyQ291cnNlc1JlcXVlc3QSEgoEeWVhchgBIAEoBVIEeWVhchISCgR0ZXJtGAIgAS' - 'gJUgR0ZXJtEhQKBWxpbWl0GAMgASgFUgVsaW1pdBISCgRza2lwGAQgASgFUgRza2lw'); + 'ChVHZXRVc2VyQ291cnNlc1JlcXVlc3QSEgoEeWVhchgBIAEoDVIEeWVhchISCgR0ZXJtGAIgAS' + 'gJUgR0ZXJtEhQKBWxpbWl0GAMgASgNUgVsaW1pdBISCgRza2lwGAQgASgNUgRza2lw'); @$core.Deprecated('Use getUserPinnedRequestDescriptor instead') const GetUserPinnedRequest$json = { '1': 'GetUserPinnedRequest', '2': [ - {'1': 'year', '3': 1, '4': 1, '5': 5, '10': 'year'}, + {'1': 'year', '3': 1, '4': 1, '5': 13, '10': 'year'}, {'1': 'term', '3': 2, '4': 1, '5': 9, '10': 'term'}, - {'1': 'limit', '3': 3, '4': 1, '5': 5, '10': 'limit'}, - {'1': 'skip', '3': 4, '4': 1, '5': 5, '10': 'skip'}, + {'1': 'limit', '3': 3, '4': 1, '5': 13, '10': 'limit'}, + {'1': 'skip', '3': 4, '4': 1, '5': 13, '10': 'skip'}, ], }; /// Descriptor for `GetUserPinnedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getUserPinnedRequestDescriptor = $convert.base64Decode( - 'ChRHZXRVc2VyUGlubmVkUmVxdWVzdBISCgR5ZWFyGAEgASgFUgR5ZWFyEhIKBHRlcm0YAiABKA' - 'lSBHRlcm0SFAoFbGltaXQYAyABKAVSBWxpbWl0EhIKBHNraXAYBCABKAVSBHNraXA='); + 'ChRHZXRVc2VyUGlubmVkUmVxdWVzdBISCgR5ZWFyGAEgASgNUgR5ZWFyEhIKBHRlcm0YAiABKA' + 'lSBHRlcm0SFAoFbGltaXQYAyABKA1SBWxpbWl0EhIKBHNraXAYBCABKA1SBHNraXA='); @$core.Deprecated('Use getUserAdminRequestDescriptor instead') const GetUserAdminRequest$json = { @@ -508,25 +509,25 @@ final $typed_data.Uint8List patchUserSettingsResponseDescriptor = $convert.base6 const PostPinnedRequest$json = { '1': 'PostPinnedRequest', '2': [ - {'1': 'courseID', '3': 1, '4': 1, '5': 5, '10': 'courseID'}, + {'1': 'courseID', '3': 1, '4': 1, '5': 13, '10': 'courseID'}, ], }; /// Descriptor for `PostPinnedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List postPinnedRequestDescriptor = $convert.base64Decode( - 'ChFQb3N0UGlubmVkUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoBVIIY291cnNlSUQ='); + 'ChFQb3N0UGlubmVkUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ='); @$core.Deprecated('Use deletePinnedRequestDescriptor instead') const DeletePinnedRequest$json = { '1': 'DeletePinnedRequest', '2': [ - {'1': 'courseID', '3': 1, '4': 1, '5': 5, '10': 'courseID'}, + {'1': 'courseID', '3': 1, '4': 1, '5': 13, '10': 'courseID'}, ], }; /// Descriptor for `DeletePinnedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List deletePinnedRequestDescriptor = $convert.base64Decode( - 'ChNEZWxldGVQaW5uZWRSZXF1ZXN0EhoKCGNvdXJzZUlEGAEgASgFUghjb3Vyc2VJRA=='); + 'ChNEZWxldGVQaW5uZWRSZXF1ZXN0EhoKCGNvdXJzZUlEGAEgASgNUghjb3Vyc2VJRA=='); @$core.Deprecated('Use getUserResponseDescriptor instead') const GetUserResponse$json = { @@ -635,13 +636,13 @@ final $typed_data.Uint8List bookmarkDescriptor = $convert.base64Decode( const GetBookmarksRequest$json = { '1': 'GetBookmarksRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 5, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetBookmarksRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getBookmarksRequestDescriptor = $convert.base64Decode( - 'ChNHZXRCb29rbWFya3NSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgFUghzdHJlYW1JRA=='); + 'ChNHZXRCb29rbWFya3NSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use putBookmarkRequestDescriptor instead') const PutBookmarkRequest$json = { @@ -919,17 +920,17 @@ final $typed_data.Uint8List semesterDescriptor = $convert.base64Decode( const GetPublicCoursesRequest$json = { '1': 'GetPublicCoursesRequest', '2': [ - {'1': 'year', '3': 1, '4': 1, '5': 5, '10': 'year'}, + {'1': 'year', '3': 1, '4': 1, '5': 13, '10': 'year'}, {'1': 'term', '3': 2, '4': 1, '5': 9, '10': 'term'}, - {'1': 'limit', '3': 3, '4': 1, '5': 5, '10': 'limit'}, - {'1': 'skip', '3': 4, '4': 1, '5': 5, '10': 'skip'}, + {'1': 'limit', '3': 3, '4': 1, '5': 13, '10': 'limit'}, + {'1': 'skip', '3': 4, '4': 1, '5': 13, '10': 'skip'}, ], }; /// Descriptor for `GetPublicCoursesRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPublicCoursesRequestDescriptor = $convert.base64Decode( - 'ChdHZXRQdWJsaWNDb3Vyc2VzUmVxdWVzdBISCgR5ZWFyGAEgASgFUgR5ZWFyEhIKBHRlcm0YAi' - 'ABKAlSBHRlcm0SFAoFbGltaXQYAyABKAVSBWxpbWl0EhIKBHNraXAYBCABKAVSBHNraXA='); + 'ChdHZXRQdWJsaWNDb3Vyc2VzUmVxdWVzdBISCgR5ZWFyGAEgASgNUgR5ZWFyEhIKBHRlcm0YAi' + 'ABKAlSBHRlcm0SFAoFbGltaXQYAyABKA1SBWxpbWl0EhIKBHNraXAYBCABKA1SBHNraXA='); @$core.Deprecated('Use getSemestersRequestDescriptor instead') const GetSemestersRequest$json = { @@ -944,13 +945,13 @@ final $typed_data.Uint8List getSemestersRequestDescriptor = $convert.base64Decod const GetCourseStreamsRequest$json = { '1': 'GetCourseStreamsRequest', '2': [ - {'1': 'courseID', '3': 1, '4': 1, '5': 5, '10': 'courseID'}, + {'1': 'courseID', '3': 1, '4': 1, '5': 13, '10': 'courseID'}, ], }; /// Descriptor for `GetCourseStreamsRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getCourseStreamsRequestDescriptor = $convert.base64Decode( - 'ChdHZXRDb3Vyc2VTdHJlYW1zUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoBVIIY291cnNlSUQ='); + 'ChdHZXRDb3Vyc2VTdHJlYW1zUmVxdWVzdBIaCghjb3Vyc2VJRBgBIAEoDVIIY291cnNlSUQ='); @$core.Deprecated('Use getPublicCoursesResponseDescriptor instead') const GetPublicCoursesResponse$json = { @@ -997,7 +998,7 @@ final $typed_data.Uint8List getCourseStreamsResponseDescriptor = $convert.base64 const Stream$json = { '1': 'Stream', '2': [ - {'1': 'id', '3': 1, '4': 1, '5': 4, '10': 'id'}, + {'1': 'id', '3': 1, '4': 1, '5': 13, '10': 'id'}, {'1': 'name', '3': 2, '4': 1, '5': 9, '10': 'name'}, {'1': 'description', '3': 3, '4': 1, '5': 9, '10': 'description'}, {'1': 'courseID', '3': 4, '4': 1, '5': 13, '10': 'courseID'}, @@ -1020,7 +1021,7 @@ const Stream$json = { {'1': 'vodViews', '3': 21, '4': 1, '5': 13, '10': 'vodViews'}, {'1': 'startOffset', '3': 22, '4': 1, '5': 13, '10': 'startOffset'}, {'1': 'endOffset', '3': 23, '4': 1, '5': 13, '10': 'endOffset'}, - {'1': 'duration', '3': 28, '4': 1, '5': 5, '10': 'duration'}, + {'1': 'duration', '3': 28, '4': 1, '5': 13, '10': 'duration'}, {'1': 'downloads', '3': 29, '4': 3, '5': 11, '6': '.protobuf.Download', '10': 'downloads'}, {'1': 'isPlanned', '3': 30, '4': 1, '5': 8, '10': 'isPlanned'}, {'1': 'isComingUp', '3': 31, '4': 1, '5': 8, '10': 'isComingUp'}, @@ -1030,7 +1031,7 @@ const Stream$json = { /// Descriptor for `Stream`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List streamDescriptor = $convert.base64Decode( - 'CgZTdHJlYW0SDgoCaWQYASABKARSAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLZGVzY3JpcH' + 'CgZTdHJlYW0SDgoCaWQYASABKA1SAmlkEhIKBG5hbWUYAiABKAlSBG5hbWUSIAoLZGVzY3JpcH' 'Rpb24YAyABKAlSC2Rlc2NyaXB0aW9uEhoKCGNvdXJzZUlEGAQgASgNUghjb3Vyc2VJRBIwCgVz' 'dGFydBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSBXN0YXJ0EiwKA2VuZBgGIA' 'EoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBSA2VuZBIgCgtjaGF0RW5hYmxlZBgHIAEo' @@ -1044,7 +1045,7 @@ final $typed_data.Uint8List streamDescriptor = $convert.base64Decode( 'RhbXBSEGxpdmVOb3dUaW1lc3RhbXASHAoJcmVjb3JkaW5nGBIgASgIUglyZWNvcmRpbmcSGgoI' 'cHJlbWllcmUYEyABKAhSCHByZW1pZXJlEhQKBWVuZGVkGBQgASgIUgVlbmRlZBIaCgh2b2RWaW' 'V3cxgVIAEoDVIIdm9kVmlld3MSIAoLc3RhcnRPZmZzZXQYFiABKA1SC3N0YXJ0T2Zmc2V0EhwK' - 'CWVuZE9mZnNldBgXIAEoDVIJZW5kT2Zmc2V0EhoKCGR1cmF0aW9uGBwgASgFUghkdXJhdGlvbh' + 'CWVuZE9mZnNldBgXIAEoDVIJZW5kT2Zmc2V0EhoKCGR1cmF0aW9uGBwgASgNUghkdXJhdGlvbh' 'IwCglkb3dubG9hZHMYHSADKAsyEi5wcm90b2J1Zi5Eb3dubG9hZFIJZG93bmxvYWRzEhwKCWlz' 'UGxhbm5lZBgeIAEoCFIJaXNQbGFubmVkEh4KCmlzQ29taW5nVXAYHyABKAhSCmlzQ29taW5nVX' 'ASFgoGSExTVXJsGCAgASgJUgZITFNVcmw='); @@ -1053,13 +1054,13 @@ final $typed_data.Uint8List streamDescriptor = $convert.base64Decode( const GetStreamRequest$json = { '1': 'GetStreamRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetStreamRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getStreamRequestDescriptor = $convert.base64Decode( - 'ChBHZXRTdHJlYW1SZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUghzdHJlYW1JRA=='); + 'ChBHZXRTdHJlYW1SZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use getNowLiveRequestDescriptor instead') const GetNowLiveRequest$json = { @@ -1074,25 +1075,25 @@ final $typed_data.Uint8List getNowLiveRequestDescriptor = $convert.base64Decode( const GetThumbsLiveRequest$json = { '1': 'GetThumbsLiveRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetThumbsLiveRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getThumbsLiveRequestDescriptor = $convert.base64Decode( - 'ChRHZXRUaHVtYnNMaXZlUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoBFIIc3RyZWFtSUQ='); + 'ChRHZXRUaHVtYnNMaXZlUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ='); @$core.Deprecated('Use getThumbsVODRequestDescriptor instead') const GetThumbsVODRequest$json = { '1': 'GetThumbsVODRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetThumbsVODRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getThumbsVODRequestDescriptor = $convert.base64Decode( - 'ChNHZXRUaHVtYnNWT0RSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgEUghzdHJlYW1JRA=='); + 'ChNHZXRUaHVtYnNWT0RSZXF1ZXN0EhoKCHN0cmVhbUlEGAEgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use getStreamResponseDescriptor instead') const GetStreamResponse$json = { @@ -1179,39 +1180,39 @@ final $typed_data.Uint8List progressDescriptor = $convert.base64Decode( const GetProgressRequest$json = { '1': 'GetProgressRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `GetProgressRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getProgressRequestDescriptor = $convert.base64Decode( - 'ChJHZXRQcm9ncmVzc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKARSCHN0cmVhbUlE'); + 'ChJHZXRQcm9ncmVzc1JlcXVlc3QSGgoIc3RyZWFtSUQYASABKA1SCHN0cmVhbUlE'); @$core.Deprecated('Use putProgressRequestDescriptor instead') const PutProgressRequest$json = { '1': 'PutProgressRequest', '2': [ {'1': 'progress', '3': 1, '4': 1, '5': 2, '10': 'progress'}, - {'1': 'streamID', '3': 3, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 3, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `PutProgressRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List putProgressRequestDescriptor = $convert.base64Decode( 'ChJQdXRQcm9ncmVzc1JlcXVlc3QSGgoIcHJvZ3Jlc3MYASABKAJSCHByb2dyZXNzEhoKCHN0cm' - 'VhbUlEGAMgASgEUghzdHJlYW1JRA=='); + 'VhbUlEGAMgASgNUghzdHJlYW1JRA=='); @$core.Deprecated('Use markAsWatchedRequestDescriptor instead') const MarkAsWatchedRequest$json = { '1': 'MarkAsWatchedRequest', '2': [ - {'1': 'streamID', '3': 1, '4': 1, '5': 4, '10': 'streamID'}, + {'1': 'streamID', '3': 1, '4': 1, '5': 13, '10': 'streamID'}, ], }; /// Descriptor for `MarkAsWatchedRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List markAsWatchedRequestDescriptor = $convert.base64Decode( - 'ChRNYXJrQXNXYXRjaGVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoBFIIc3RyZWFtSUQ='); + 'ChRNYXJrQXNXYXRjaGVkUmVxdWVzdBIaCghzdHJlYW1JRBgBIAEoDVIIc3RyZWFtSUQ='); @$core.Deprecated('Use getProgressResponseDescriptor instead') const GetProgressResponse$json = { diff --git a/lib/base/networking/api/handler/chat_handler.dart b/lib/base/networking/api/handler/chat_handler.dart index 1383d6fd..73003577 100644 --- a/lib/base/networking/api/handler/chat_handler.dart +++ b/lib/base/networking/api/handler/chat_handler.dart @@ -11,7 +11,7 @@ class ChatHandlers { ChatHandlers(this._grpcHandler); -Future> getChatMessages(Int64 streamID) async { + Future> getChatMessages(int streamID) async { _logger.i('Fetching chat messages'); return _grpcHandler.callGrpcMethod( (client) async { @@ -23,7 +23,7 @@ Future> getChatMessages(Int64 streamID) async { ); } - Future postChatMessage(Int64 streamID, String message) async { + Future postChatMessage(int streamID, String message) async { _logger.i('Posting chat message'); return _grpcHandler.callGrpcMethod( (client) async { @@ -35,7 +35,8 @@ Future> getChatMessages(Int64 streamID) async { ); } -Future postMessageReaction(Int64 messageID, Int64 streamID, String emoji) async { + Future postMessageReaction( + int messageID, int streamID, String emoji) async { _logger.i('Posting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { @@ -46,7 +47,8 @@ Future postMessageReaction(Int64 messageID, Int64 streamID, String ); } -Future deleteMessageReaction(Int64 messageID, Int64 streamID, Int64 reactionID) async { + Future deleteMessageReaction( + int messageID, int streamID, int reactionID) async { _logger.i('Deleting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { @@ -56,7 +58,8 @@ Future deleteMessageReaction(Int64 messageID, Int64 streamID, Int64 reacti ); } -Future postChatReply(Int64 messageID, Int64 streamID, String message) async { + Future postChatReply( + int messageID, int streamID, String message) async { _logger.i('Posting chat reply'); return _grpcHandler.callGrpcMethod( (client) async { @@ -67,7 +70,7 @@ Future postChatReply(Int64 messageID, Int64 streamID, String messag ); } -Future markChatMessageAsResolved(Int64 messageID, Int64 streamID) async { + Future markChatMessageAsResolved(int messageID, int streamID) async { _logger.i('Marking chat message as resolved'); return _grpcHandler.callGrpcMethod( (client) async { @@ -77,7 +80,7 @@ Future markChatMessageAsResolved(Int64 messageID, Int64 streamID) async { ); } -Future markChatMessageAsUnresolved(Int64 messageID, Int64 streamID) async { + Future markChatMessageAsUnresolved(int messageID, int streamID) async { _logger.i('Marking chat message as unresolved'); return _grpcHandler.callGrpcMethod( (client) async { diff --git a/lib/base/networking/api/handler/poll_handler.dart b/lib/base/networking/api/handler/poll_handler.dart index 8203f71e..6cde6a5d 100644 --- a/lib/base/networking/api/handler/poll_handler.dart +++ b/lib/base/networking/api/handler/poll_handler.dart @@ -10,7 +10,7 @@ class PollHandlers { PollHandlers(this._grpcHandler); - Future> getPolls(Int64 streamID) async { + Future> getPolls(int streamID) async { _logger.i('Fetching polls for streamID: $streamID'); return _grpcHandler.callGrpcMethod( (client) async { @@ -22,7 +22,7 @@ class PollHandlers { ); } - Future postPollVote(Int64 streamID, Int64 pollOptionID) async { + Future postPollVote(int streamID, int pollOptionID) async { _logger.i( 'Posting poll vote for streamID: $streamID, pollOptionID: $pollOptionID'); return _grpcHandler.callGrpcMethod( diff --git a/lib/base/networking/api/handler/stream_handler.dart b/lib/base/networking/api/handler/stream_handler.dart index f81a8fac..e4cb797c 100644 --- a/lib/base/networking/api/handler/stream_handler.dart +++ b/lib/base/networking/api/handler/stream_handler.dart @@ -35,7 +35,7 @@ class StreamHandler { /// Takes [streamId] as a parameter. /// /// Returns a [Stream] instance that represents the stream of the course. - Future fetchStream(Int64 streamId) async { + Future fetchStream(int streamId) async { _logger.i('Fetching stream'); return _grpcHandler.callGrpcMethod( (client) async { @@ -69,7 +69,7 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [String] instance that represents the thumbnail stream. - Future fetchThumbnailStreams(Int64 streamId) async { + Future fetchThumbnailStreams(int streamId) async { _logger.i('Fetching thumbnail stream'); return _grpcHandler.callGrpcMethod( (client) async { @@ -87,7 +87,7 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [String] instance that represents the thumbnail VOD. - Future fetchThumbnailVOD(Int64 streamId) async { + Future fetchThumbnailVOD(int streamId) async { _logger.i('Fetching thumbnail VOD'); return _grpcHandler.callGrpcMethod( (client) async { @@ -105,7 +105,7 @@ class StreamHandler { /// /// Takes [streamId] as a parameter. /// Returns a [Progress] instance that represents the progress of the stream. - Future fetchProgress(Int64 streamId) async { + Future fetchProgress(int streamId) async { _logger.i('Fetching progress'); try { return _grpcHandler.callGrpcMethod( @@ -128,7 +128,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(Int64 streamId, Progress progress) async { + Future putProgress(int streamId, Progress progress) async { _logger.i('Updating progress'); await _grpcHandler.callGrpcMethod( (client) async { @@ -148,7 +148,7 @@ class StreamHandler { /// This method sends a `markAsWatched` gRPC call to mark a stream as watched. /// /// Takes [streamId] as a parameter. - Future markAsWatched(Int64 streamId) async { + Future markAsWatched(int streamId) async { _logger.i('Marking stream as watched'); await _grpcHandler.callGrpcMethod( (client) async { diff --git a/lib/providers.dart b/lib/providers.dart index cc9b2d56..10efa225 100644 --- a/lib/providers.dart +++ b/lib/providers.dart @@ -5,12 +5,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'; @@ -60,9 +62,12 @@ 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 { +final progressProvider = FutureProvider.autoDispose.family( + (ref, streamId) async { final videoViewModel = ref.watch(videoViewModelProvider.notifier); return videoViewModel.fetchProgressForStream(streamId); }, diff --git a/lib/view_models/chat_view_model.dart b/lib/view_models/chat_view_model.dart index 366e5041..d8430e76 100644 --- a/lib/view_models/chat_view_model.dart +++ b/lib/view_models/chat_view_model.dart @@ -13,7 +13,7 @@ class ChatViewModel extends StateNotifier { ChatViewModel(this._grpcHandler) : super(const ChatState()); - Future fetchChatMessages(Int64 streamId) async { + Future fetchChatMessages(int streamId) async { state = state.copyWith(isLoading: true); state = state.clearError(); try { @@ -25,7 +25,7 @@ class ChatViewModel extends StateNotifier { } } - Future postChatMessage(Int64 streamId, String message) async { + Future postChatMessage(int streamId, String message) async { try { fetchChatMessages(streamId); var chatMessage = await ChatHandlers(_grpcHandler).postChatMessage(streamId, message); @@ -50,7 +50,8 @@ class ChatViewModel extends StateNotifier { } } - Future postMessageReaction(Int64 messageId, Int64 streamId, String emoji) async { + Future postMessageReaction( + int messageId, int streamId, String emoji) async { try { var reaction= await ChatHandlers(_grpcHandler).postMessageReaction(messageId, streamId, emoji); state = state.addReaction(reaction); @@ -60,7 +61,8 @@ class ChatViewModel extends StateNotifier { } } - Future deleteMessageReaction(Int64 messageId, Int64 streamId, Int64 reactionId) async { + Future deleteMessageReaction( + int messageId, int streamId, int reactionId) async { try { await ChatHandlers(_grpcHandler).deleteMessageReaction(messageId, streamId, reactionId); } catch (e) { @@ -69,7 +71,8 @@ class ChatViewModel extends StateNotifier { } } - Future postChatReply(Int64 messageId, Int64 streamId, String message) async { + Future postChatReply( + int messageId, int streamId, String message) async { try { var replay = await ChatHandlers(_grpcHandler).postChatReply(messageId, streamId, message); state = state.addReply(replay); @@ -79,7 +82,7 @@ class ChatViewModel extends StateNotifier { } } - Future markChatMessageAsResolved(Int64 messageId, Int64 streamId) async { + Future markChatMessageAsResolved(int messageId, int streamId) async { try { await ChatHandlers(_grpcHandler).markChatMessageAsResolved(messageId, streamId); } catch (e) { @@ -87,7 +90,8 @@ class ChatViewModel extends StateNotifier { state = state.copyWith(error: e as AppError); } } - Future markChatMessageAsUnresolved(Int64 messageId, Int64 streamId) async { + + Future markChatMessageAsUnresolved(int messageId, int streamId) async { try { await ChatHandlers(_grpcHandler).markChatMessageAsUnresolved(messageId, streamId); } catch (e) { diff --git a/lib/view_models/download_view_model.dart b/lib/view_models/download_view_model.dart index dfe86eef..2a69e440 100644 --- a/lib/view_models/download_view_model.dart +++ b/lib/view_models/download_view_model.dart @@ -27,7 +27,10 @@ class DownloadViewModel extends StateNotifier { } Future downloadVideo( - String videoUrl, Int64 streamId, String fileName,) async { + String videoUrl, + int streamId, + String fileName, + ) async { try { final directory = await getApplicationDocumentsDirectory(); final filePath = '${directory.path}/$fileName'; @@ -120,8 +123,7 @@ class DownloadViewModel extends StateNotifier { } } - bool isStreamDownloaded(Int64 id) { - final int streamIdInt = id.toInt(); // Convert Int64 to int - return state.downloadedVideos.containsKey(streamIdInt); + bool isStreamDownloaded(int id) { + return state.downloadedVideos.containsKey(id); } } diff --git a/lib/view_models/poll_view_model.dart b/lib/view_models/poll_view_model.dart index c456e0bd..b2bb41be 100644 --- a/lib/view_models/poll_view_model.dart +++ b/lib/view_models/poll_view_model.dart @@ -12,7 +12,7 @@ class PollViewModel extends StateNotifier { PollViewModel(this._grpcHandler) : super(const PollState()); - Future fetchPolls(Int64 streamId) async { + Future fetchPolls(int streamId) async { state = state.copyWith(isLoading: true); state = state.clearError(); try { @@ -24,7 +24,7 @@ class PollViewModel extends StateNotifier { } } - Future postPollVote(Int64 streamId, Int64 pollOptionId) async { + Future postPollVote(int streamId, int pollOptionId) async { try { await PollHandlers(_grpcHandler).postPollVote(streamId, pollOptionId); } catch (e) { diff --git a/lib/view_models/stream_view_model.dart b/lib/view_models/stream_view_model.dart index c17c01f3..f0e8f0bf 100644 --- a/lib/view_models/stream_view_model.dart +++ b/lib/view_models/stream_view_model.dart @@ -86,7 +86,7 @@ class StreamViewModel extends StateNotifier { /// Fetches the thumbnail for a live stream. /// Parameters: /// [streamId] - The identifier of the stream. - Future fetchStreamThumbnail(Int64 streamId) async { + Future fetchStreamThumbnail(int streamId) async { try { _logger.i('Fetching thumbnail for live stream ID: $streamId'); return await StreamHandler(_grpcHandler).fetchThumbnailStreams(streamId); @@ -99,7 +99,7 @@ class StreamViewModel extends StateNotifier { /// Fetches the thumbnail for a recorded stream. /// Parameters: /// [streamId] - The identifier of the stream. - Future fetchVODThumbnail(Int64 streamId) async { + Future fetchVODThumbnail(int streamId) async { try { _logger.i('Fetching thumbnail for VOD stream ID: $streamId'); return await StreamHandler(_grpcHandler).fetchThumbnailVOD(streamId); @@ -109,7 +109,7 @@ class StreamViewModel extends StateNotifier { } } - Future fetchStream(Int64 streamId) async { + Future fetchStream(int streamId) async { _logger.i('Fetching stream'); state = state.copyWith(isLoading: true); try { @@ -133,7 +133,7 @@ class StreamViewModel extends StateNotifier { } } - Future fetchProgress(Int64 streamId) async { + Future fetchProgress(int streamId) async { state = state.copyWith(isLoading: true); try { final progress = @@ -148,7 +148,7 @@ class StreamViewModel extends StateNotifier { } } - Future fetchProgressForStream(Int64 streamId) async { + Future fetchProgressForStream(int streamId) async { try { final progress = await StreamHandler(_grpcHandler).fetchProgress(streamId); @@ -158,7 +158,7 @@ class StreamViewModel extends StateNotifier { } } - Future updateProgress(Int64 streamId, Progress progress) async { + Future updateProgress(int streamId, Progress progress) async { _logger.i('Updating progress'); state = state.copyWith(isLoading: true); try { @@ -170,7 +170,7 @@ class StreamViewModel extends StateNotifier { } } - Future markAsWatched(Int64 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 6a8c39e3..625d0620 100644 --- a/lib/views/chat_view/chat_view.dart +++ b/lib/views/chat_view/chat_view.dart @@ -5,7 +5,7 @@ import 'package:gocast_mobile/views/chat_view/chat_view_state.dart'; class ChatView extends ConsumerStatefulWidget { - final Int64? streamID; + final int? streamID; const ChatView({ super.key, diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index 741e89c9..f35d7816 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -192,7 +192,7 @@ class ChatViewState extends ConsumerState { void postMessage(BuildContext context, WidgetRef ref, String message) { if (!_isCooldownActive && message.isNotEmpty && message.trim().isNotEmpty) { - final Int64? streamId = widget.streamID; + final int? streamId = widget.streamID; ref.read(chatViewModelProvider.notifier).postChatMessage(streamId!, message); // Start cooldown Logger().i('Cooldown started'); diff --git a/lib/views/chat_view/inactive_view.dart b/lib/views/chat_view/inactive_view.dart index 1063c932..d1a22e8f 100644 --- a/lib/views/chat_view/inactive_view.dart +++ b/lib/views/chat_view/inactive_view.dart @@ -8,7 +8,7 @@ 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 Int64? streamID; + final int? streamID; const InactiveView({ super.key, diff --git a/lib/views/chat_view/poll_view.dart b/lib/views/chat_view/poll_view.dart index 6c38c618..48dfd060 100644 --- a/lib/views/chat_view/poll_view.dart +++ b/lib/views/chat_view/poll_view.dart @@ -4,7 +4,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/views/chat_view/poll_view_state.dart'; class PollView extends ConsumerStatefulWidget { - final Int64? streamID; + final int? streamID; const PollView({ super.key, diff --git a/lib/views/chat_view/poll_view_state.dart b/lib/views/chat_view/poll_view_state.dart index a479a841..9b6e3ce8 100644 --- a/lib/views/chat_view/poll_view_state.dart +++ b/lib/views/chat_view/poll_view_state.dart @@ -1,29 +1,139 @@ -import 'package:flutter/cupertino.dart'; +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; + final Map _selectedOptions = {}; + final Set _submittedPolls = {}; + @override void initState() { super.initState(); - // Initialize state here if needed + _initializeTimer(); } @override void dispose() { - // Dispose resources if needed + _updateTimer?.cancel(); super.dispose(); } + void _initializeTimer() { + _updateTimer = Timer.periodic(const Duration(seconds: 30), (_) { + if (mounted && widget.streamID != null) { + ref.read(pollViewModelProvider.notifier).fetchPolls(widget.streamID!); + } + }); + + if (widget.streamID != null) { + Future.microtask(() => ref + .read(pollViewModelProvider.notifier) + .fetchPolls(widget.streamID!)); + } + } + @override Widget build(BuildContext context) { + final polls = ref + .watch(pollViewModelProvider) + .polls + ?.where((poll) => poll.active) + .toList() ?? + []; return Scaffold( - appBar: AppBar( - title: Text('Poll View'), + body: _buildPollsList(polls), + ); + } + + Widget _buildPollsList(List polls) { + return polls.isEmpty + ? const Center(child: Text('No active polls')) + : ListView.builder( + itemCount: polls.length, + itemBuilder: (context, index) => + _buildPollCard(context, polls[index]), + ); + } + + Widget _buildPollCard(BuildContext context, Poll poll) { + bool isSubmitted = _submittedPolls.contains(poll.id); + return Opacity( + opacity: isSubmitted ? 0.5 : 1, + // Make the card semi-transparent if submitted + child: Card( + margin: const EdgeInsets.all(8.0), + color: isSubmitted ? Colors.grey.shade200 : null, + // Change background if submitted + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + _buildPollQuestion(poll), + ...poll.pollOptions + .map((option) => _buildPollOption(context, poll, option)), + _buildSubmitButton(poll), + ], + ), ), - body: Center( - child: Text('Poll view content goes here'), + ); + } + + Widget _buildPollQuestion(Poll poll) { + return Padding( + padding: const EdgeInsets.all(16.0), + child: Text( + poll.question, + style: Theme.of(context).textTheme.titleLarge, + textAlign: TextAlign.center, + ), + ); + } + + Widget _buildPollOption(BuildContext context, Poll poll, PollOption option) { + bool isSubmitted = _submittedPolls.contains(poll.id); + return ListTile( + title: Text(option.answer), + leading: Radio( + value: option.id, + groupValue: _selectedOptions[poll.id], + onChanged: isSubmitted + ? null + : (int? value) { + // Disable if submitted + setState(() { + _selectedOptions[poll.id] = value!; + }); + }, + ), + ); + } + + Widget _buildSubmitButton(Poll poll) { + bool isSubmitted = _submittedPolls.contains(poll.id); + return Padding( + padding: const EdgeInsets.symmetric(vertical: 16.0), + child: ElevatedButton( + onPressed: !isSubmitted && _selectedOptions.containsKey(poll.id) + ? () { + // Add poll to submitted set + setState(() { + _submittedPolls.add(poll.id); + }); + + ref + .read(pollViewModelProvider.notifier) + .postPollVote(poll.streamID, _selectedOptions[poll.id]!); + } + : null, + style: ElevatedButton.styleFrom( + backgroundColor: isSubmitted + ? Colors.grey + : null, // Change color to grey if submitted + ), + child: Text(isSubmitted ? 'Submitted' : 'Submit'), ), ); } diff --git a/lib/views/course_view/components/course_card.dart b/lib/views/course_view/components/course_card.dart index 539602e0..f4587e85 100644 --- a/lib/views/course_view/components/course_card.dart +++ b/lib/views/course_view/components/course_card.dart @@ -25,7 +25,7 @@ class CourseCard extends StatelessWidget { //for displaying courses final bool? live; - final Int64? lastLectureId; + final int? lastLectureId; final String? semester; //for displaying livestreams @@ -304,7 +304,7 @@ class CourseCard extends StatelessWidget { ); } - VoidCallback _buildLastStream(BuildContext context, Int64 lastLectureId) { + VoidCallback _buildLastStream(BuildContext context, int lastLectureId) { return () async { await fetchDataAsync(context); diff --git a/lib/views/course_view/components/course_section.dart b/lib/views/course_view/components/course_section.dart index 16f272d8..44f7557a 100644 --- a/lib/views/course_view/components/course_section.dart +++ b/lib/views/course_view/components/course_section.dart @@ -144,7 +144,7 @@ class CourseSection extends StatelessWidget { ref: ref, title: course.name, tumID: course.tUMOnlineIdentifier, - lastLectureId: Int64(course.lastRecordingID), + lastLectureId: course.lastRecordingID, path: imagePath, live: streams.any((stream) => stream.courseID == course.id), semester: diff --git a/lib/views/course_view/list_courses_view/courses_list_view.dart b/lib/views/course_view/list_courses_view/courses_list_view.dart index c4d2f301..2365a1f0 100644 --- a/lib/views/course_view/list_courses_view/courses_list_view.dart +++ b/lib/views/course_view/list_courses_view/courses_list_view.dart @@ -72,7 +72,7 @@ class CoursesList extends ConsumerWidget { courseId: course.id, semester: course.semester.teachingTerm + course.semester.year.toString(), - lastLectureId: Int64(course.lastRecordingID), + lastLectureId: course.lastRecordingID, isCourse: true, onTap: () { Navigator.push( diff --git a/proto/gocast/api_v2.proto b/proto/gocast/api_v2.proto index 6433f2f1..fe5d58b7 100644 --- a/proto/gocast/api_v2.proto +++ b/proto/gocast/api_v2.proto @@ -517,40 +517,40 @@ message ChatMessage { /////////////////////////////// message GetChatMessagesRequest { - uint64 streamID = 1; + uint32 streamID = 1; } message PostChatMessageRequest { string message = 1; - uint64 streamID = 2; + uint32 streamID = 2; } message PostChatReactionRequest { string emoji = 1; - uint64 streamID = 2; - uint64 chatID = 3; + uint32 streamID = 2; + uint32 chatID = 3; } message DeleteChatReactionRequest { - uint64 streamID = 1; - uint64 chatID = 2; - uint64 reactionID = 3; + uint32 streamID = 1; + uint32 chatID = 2; + uint32 reactionID = 3; } message PostChatReplyRequest { string message = 1; - uint64 streamID = 2; - uint64 chatID = 3; + uint32 streamID = 2; + uint32 chatID = 3; } message MarkChatMessageAsResolvedRequest { - uint64 streamID = 1; - uint64 chatID = 2; + uint32 streamID = 1; + uint32 chatID = 2; } message MarkChatMessageAsUnresolvedRequest { - uint64 streamID = 1; - uint64 chatID = 2; + uint32 streamID = 1; + uint32 chatID = 2; } /////////////////////////////// @@ -600,6 +600,7 @@ message PollOption { uint32 id = 1; string answer = 2; uint32 votes = 3; + bool voted = 4; } /////////////////////////////// @@ -607,12 +608,12 @@ message PollOption { /////////////////////////////// message GetPollsRequest { - uint64 streamID = 1; + uint32 streamID = 1; } message PostPollVoteRequest { - uint64 streamID = 1; - uint64 pollOptionID = 2; + uint32 streamID = 1; + uint32 pollOptionID = 2; } /////////////////////////////// @@ -662,17 +663,17 @@ enum UserSettingType { message GetUserRequest {} message GetUserCoursesRequest { - int32 year = 1; + uint32 year = 1; string term = 2; - int32 limit = 3; - int32 skip = 4; + uint32 limit = 3; + uint32 skip = 4; } message GetUserPinnedRequest { - int32 year = 1; - string term = 2; - int32 limit = 3; - int32 skip = 4; + uint32 year = 1; + string term = 2; + uint32 limit = 3; + uint32 skip = 4; } message GetUserAdminRequest {} @@ -688,11 +689,11 @@ message PatchUserSettingsResponse { } message PostPinnedRequest { - int32 courseID = 1; + uint32 courseID = 1; } message DeletePinnedRequest { - int32 courseID = 1; + uint32 courseID = 1; } /////////////////////////////// @@ -742,7 +743,7 @@ message Bookmark { /////////////////////////////// message GetBookmarksRequest { - int32 streamID = 1; + uint32 streamID = 1; } message PutBookmarkRequest { @@ -868,16 +869,16 @@ message Semester { /////////////////////////////// message GetPublicCoursesRequest { - int32 year = 1; + uint32 year = 1; string term = 2; - int32 limit = 3; - int32 skip = 4; + uint32 limit = 3; + uint32 skip = 4; } message GetSemestersRequest {} message GetCourseStreamsRequest { - int32 courseID = 1; + uint32 courseID = 1; } /////////////////////////////// /////// COURSE_RESPONSE /////// @@ -901,7 +902,7 @@ message GetCourseStreamsResponse { /////////////////////////////// message Stream { - uint64 id = 1; + uint32 id = 1; string name = 2; string description = 3; uint32 courseID = 4; @@ -924,7 +925,7 @@ message Stream { uint32 vodViews = 21; uint32 startOffset = 22; uint32 endOffset = 23; - int32 duration = 28; + uint32 duration = 28; repeated Download downloads = 29; bool isPlanned = 30; bool isComingUp = 31; @@ -936,17 +937,17 @@ message Stream { /////////////////////////////// message GetStreamRequest { - uint64 streamID = 1; + uint32 streamID = 1; } message GetNowLiveRequest {} message GetThumbsLiveRequest { - uint64 streamID = 1; + uint32 streamID = 1; } message GetThumbsVODRequest { - uint64 streamID = 1; + uint32 streamID = 1; } /////////////////////////////// @@ -995,16 +996,16 @@ message Progress { /////////////////////////////// message GetProgressRequest { - uint64 streamID = 1; + uint32 streamID = 1; } message PutProgressRequest { float progress = 1; - uint64 streamID = 3; + uint32 streamID = 3; } message MarkAsWatchedRequest { - uint64 streamID = 1; + uint32 streamID = 1; } /////////////////////////////// From b31e808846f9062357e8958b34deb589ace82e97 Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Sun, 28 Jan 2024 13:42:58 +0100 Subject: [PATCH 6/7] fix the trailing comma --- lib/base/networking/api/gocast/api_v2.pb.dart | 1796 +++++++++++------ .../networking/api/gocast/api_v2.pbjson.dart | 143 +- .../networking/api/handler/chat_handler.dart | 17 +- .../networking/api/handler/poll_handler.dart | 11 +- lib/views/chat_view/chat_view.dart | 1 - lib/views/chat_view/chat_view_state.dart | 4 - lib/views/chat_view/inactive_view.dart | 4 +- lib/views/chat_view/poll_view.dart | 1 - lib/views/chat_view/poll_view_state.dart | 1 - 9 files changed, 1289 insertions(+), 689 deletions(-) diff --git a/lib/base/networking/api/gocast/api_v2.pb.dart b/lib/base/networking/api/gocast/api_v2.pb.dart index cfbe564c..fe76f766 100644 --- a/lib/base/networking/api/gocast/api_v2.pb.dart +++ b/lib/base/networking/api/gocast/api_v2.pb.dart @@ -42,22 +42,29 @@ class ChatReaction extends $pb.GeneratedMessage { } ChatReaction._() : super(); - factory ChatReaction.fromBuffer($core.List<$core.int> 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; @@ -152,18 +159,23 @@ class AddressedUser extends $pb.GeneratedMessage { } 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; @@ -282,39 +294,52 @@ class ChatMessage extends $pb.GeneratedMessage { } 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') + 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; @@ -497,20 +522,26 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { } 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. ' @@ -523,7 +554,8 @@ class GetChatMessagesRequest extends $pb.GeneratedMessage { '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; @@ -569,21 +601,27 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { } 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. ' @@ -596,7 +634,8 @@ class PostChatMessageRequest extends $pb.GeneratedMessage { '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; @@ -658,23 +697,30 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { } 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. ' @@ -687,7 +733,8 @@ class PostChatReactionRequest extends $pb.GeneratedMessage { '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; @@ -761,24 +808,32 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { } 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. ' @@ -791,7 +846,8 @@ class DeleteChatReactionRequest extends $pb.GeneratedMessage { '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; @@ -865,23 +921,30 @@ class PostChatReplyRequest extends $pb.GeneratedMessage { } 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. ' @@ -963,22 +1026,29 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { } 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. ' @@ -991,10 +1061,11 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { '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; @@ -1008,7 +1079,8 @@ class MarkChatMessageAsResolvedRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static MarkChatMessageAsResolvedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static MarkChatMessageAsResolvedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -1052,22 +1124,29 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { } 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. ' @@ -1080,10 +1159,11 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { '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; @@ -1097,7 +1177,8 @@ class MarkChatMessageAsUnresolvedRequest extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static MarkChatMessageAsUnresolvedRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static MarkChatMessageAsUnresolvedRequest? _defaultInstance; @$pb.TagNumber(1) @@ -1137,20 +1218,26 @@ class GetChatMessagesResponse extends $pb.GeneratedMessage { } 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. ' @@ -1163,7 +1250,8 @@ class GetChatMessagesResponse extends $pb.GeneratedMessage { '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; @@ -1196,20 +1284,26 @@ class PostChatMessageResponse extends $pb.GeneratedMessage { } 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. ' @@ -1222,7 +1316,8 @@ class PostChatMessageResponse extends $pb.GeneratedMessage { '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; @@ -1266,20 +1361,26 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { } 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. ' @@ -1292,7 +1393,8 @@ class PostChatReactionResponse extends $pb.GeneratedMessage { '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; @@ -1328,19 +1430,23 @@ 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. ' @@ -1352,10 +1458,11 @@ class DeleteChatReactionResponse extends $pb.GeneratedMessage { '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; @@ -1383,20 +1490,26 @@ class PostChatReplyResponse extends $pb.GeneratedMessage { } 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. ' @@ -1409,7 +1522,8 @@ class PostChatReplyResponse extends $pb.GeneratedMessage { '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; @@ -1453,20 +1567,26 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { } 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. ' @@ -1479,10 +1599,11 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { '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; @@ -1496,7 +1617,8 @@ class MarkChatMessageAsResolvedResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static MarkChatMessageAsResolvedResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static MarkChatMessageAsResolvedResponse? _defaultInstance; @$pb.TagNumber(1) @@ -1527,20 +1649,25 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { 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. ' @@ -1553,10 +1680,11 @@ class MarkChatMessageAsUnresolvedResponse extends $pb.GeneratedMessage { '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; @@ -1615,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. ' @@ -1732,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) @@ -1830,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. ' @@ -1896,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. ' @@ -1973,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. ' @@ -2018,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. ' @@ -2112,37 +2288,50 @@ class User extends $pb.GeneratedMessage { } 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') + 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. ' @@ -2283,22 +2472,28 @@ class UserSetting extends $pb.GeneratedMessage { } 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; @@ -2354,19 +2549,23 @@ 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. ' @@ -2418,18 +2617,23 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { } 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) @@ -2446,7 +2650,8 @@ class GetUserCoursesRequest extends $pb.GeneratedMessage { '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; @@ -2536,18 +2741,23 @@ class GetUserPinnedRequest extends $pb.GeneratedMessage { } 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) @@ -2633,19 +2843,23 @@ 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. ' @@ -2677,19 +2891,23 @@ 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. ' @@ -2701,7 +2919,8 @@ class GetUserSettingsRequest extends $pb.GeneratedMessage { '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; @@ -2731,21 +2950,28 @@ class PatchUserSettingsRequest extends $pb.GeneratedMessage { } 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. ' @@ -2758,7 +2984,8 @@ class PatchUserSettingsRequest extends $pb.GeneratedMessage { '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; @@ -2791,21 +3018,28 @@ class PatchUserSettingsResponse extends $pb.GeneratedMessage { } 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. ' @@ -2818,7 +3052,8 @@ class PatchUserSettingsResponse extends $pb.GeneratedMessage { '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; @@ -2851,20 +3086,26 @@ class PostPinnedRequest extends $pb.GeneratedMessage { } 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. ' @@ -2917,20 +3158,26 @@ class DeletePinnedRequest extends $pb.GeneratedMessage { } 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. ' @@ -2983,18 +3230,23 @@ class GetUserResponse extends $pb.GeneratedMessage { } 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; @@ -3050,20 +3302,26 @@ class GetUserCoursesResponse extends $pb.GeneratedMessage { } 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. ' @@ -3076,7 +3334,8 @@ class GetUserCoursesResponse extends $pb.GeneratedMessage { '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; @@ -3109,20 +3368,26 @@ class GetUserPinnedResponse extends $pb.GeneratedMessage { } 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. ' @@ -3135,7 +3400,8 @@ class GetUserPinnedResponse extends $pb.GeneratedMessage { '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; @@ -3168,20 +3434,26 @@ class GetUserAdminResponse extends $pb.GeneratedMessage { } 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. ' @@ -3226,21 +3498,28 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { } 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. ' @@ -3253,7 +3532,8 @@ class GetUserSettingsResponse extends $pb.GeneratedMessage { '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; @@ -3278,19 +3558,23 @@ 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. ' @@ -3322,19 +3606,23 @@ 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. ' @@ -3399,27 +3687,37 @@ class Bookmark extends $pb.GeneratedMessage { } 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') + 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. ' @@ -3541,20 +3839,26 @@ class GetBookmarksRequest extends $pb.GeneratedMessage { } 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. ' @@ -3623,24 +3927,30 @@ class PutBookmarkRequest extends $pb.GeneratedMessage { } 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') + protoName: 'streamID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3757,24 +4067,30 @@ class PatchBookmarkRequest extends $pb.GeneratedMessage { } 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') + protoName: 'bookmarkID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -3876,20 +4192,26 @@ class DeleteBookmarkRequest extends $pb.GeneratedMessage { } 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. ' @@ -3902,7 +4224,8 @@ class DeleteBookmarkRequest extends $pb.GeneratedMessage { '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; @@ -3944,20 +4267,26 @@ class GetBookmarksResponse extends $pb.GeneratedMessage { } 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. ' @@ -4002,20 +4331,26 @@ class PutBookmarkResponse extends $pb.GeneratedMessage { } 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. ' @@ -4070,20 +4405,26 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { } 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. ' @@ -4096,7 +4437,8 @@ class PatchBookmarkResponse extends $pb.GeneratedMessage { '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; @@ -4132,19 +4474,23 @@ 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. ' @@ -4156,7 +4502,8 @@ class DeleteBookmarkResponse extends $pb.GeneratedMessage { '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; @@ -4202,18 +4549,23 @@ class BannerAlert extends $pb.GeneratedMessage { } 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') @@ -4329,23 +4681,29 @@ class FeatureNotification extends $pb.GeneratedMessage { } 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. ' @@ -4434,18 +4792,23 @@ class PostDeviceTokenRequest extends $pb.GeneratedMessage { } 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; @@ -4459,7 +4822,8 @@ class PostDeviceTokenRequest extends $pb.GeneratedMessage { '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; @@ -4501,18 +4865,23 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { } 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; @@ -4526,7 +4895,8 @@ class DeleteDeviceTokenRequest extends $pb.GeneratedMessage { '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; @@ -4560,19 +4930,23 @@ 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. ' @@ -4584,7 +4958,8 @@ class GetBannerAlertsRequest extends $pb.GeneratedMessage { '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; @@ -4606,19 +4981,23 @@ 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. ' @@ -4630,10 +5009,11 @@ class GetFeatureNotificationsRequest extends $pb.GeneratedMessage { '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; @@ -4654,19 +5034,23 @@ 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. ' @@ -4678,7 +5062,8 @@ class PostDeviceTokenResponse extends $pb.GeneratedMessage { '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; @@ -4700,19 +5085,23 @@ 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. ' @@ -4724,7 +5113,8 @@ class DeleteDeviceTokenResponse extends $pb.GeneratedMessage { '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; @@ -4754,21 +5144,28 @@ class GetBannerAlertsResponse extends $pb.GeneratedMessage { } 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. ' @@ -4781,7 +5178,8 @@ class GetBannerAlertsResponse extends $pb.GeneratedMessage { '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; @@ -4814,22 +5212,28 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { } 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. ' @@ -4842,10 +5246,11 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { '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; @@ -4859,7 +5264,8 @@ class GetFeatureNotificationsResponse extends $pb.GeneratedMessage { @$core.pragma('dart2js:noInline') static GetFeatureNotificationsResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor( - create); + create, + ); static GetFeatureNotificationsResponse? _defaultInstance; @$pb.TagNumber(1) @@ -4938,46 +5344,71 @@ class Course extends $pb.GeneratedMessage { } 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') + protoName: 'TUMOnlineIdentifier', + ) ..aOB(6, _omitFieldNames ? '' : 'VODEnabled', protoName: 'VODEnabled')..aOB( 7, _omitFieldNames ? '' : 'downloadsEnabled', - protoName: '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: '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')..a<$core.int>( - 16, _omitFieldNames ? '' : 'nextLectureID', $pb.PbFieldType.OU3, - protoName: 'nextLectureID') + protoName: 'lastRecordingID', + ) + ..a<$core.int>( + 16, + _omitFieldNames ? '' : 'nextLectureID', + $pb.PbFieldType.OU3, + protoName: 'nextLectureID', + ) ..hasRequiredFields = false; @$core.Deprecated('Using this can add significant overhead to your binary. ' @@ -5204,18 +5635,23 @@ class Semester extends $pb.GeneratedMessage { } 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; @@ -5291,18 +5727,23 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { } 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) @@ -5319,7 +5760,8 @@ class GetPublicCoursesRequest extends $pb.GeneratedMessage { '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; @@ -5389,19 +5831,23 @@ 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. ' @@ -5441,20 +5887,26 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { } 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. ' @@ -5467,7 +5919,8 @@ class GetCourseStreamsRequest extends $pb.GeneratedMessage { '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; @@ -5509,20 +5962,26 @@ class GetPublicCoursesResponse extends $pb.GeneratedMessage { } 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. ' @@ -5535,7 +5994,8 @@ class GetPublicCoursesResponse extends $pb.GeneratedMessage { '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; @@ -5572,22 +6032,29 @@ class GetSemestersResponse extends $pb.GeneratedMessage { } 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. ' @@ -5646,20 +6113,26 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { } 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. ' @@ -5672,7 +6145,8 @@ class GetCourseStreamsResponse extends $pb.GeneratedMessage { '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; @@ -5813,58 +6287,79 @@ class Stream extends $pb.GeneratedMessage { } 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') + protoName: 'eventTypeName', + ) ..a<$core.int>( 11, _omitFieldNames ? '' : 'TUMOnlineEventID', $pb.PbFieldType.OU3, - protoName: 'TUMOnlineEventID') + protoName: 'TUMOnlineEventID', + ) ..aOS(12, _omitFieldNames ? '' : 'seriesIdentifier', - protoName: 'seriesIdentifier') + protoName: 'seriesIdentifier', + ) ..aOS(13, _omitFieldNames ? '' : 'playlistUrl', protoName: 'playlistUrl')..aOS( 14, _omitFieldNames ? '' : 'playlistUrlPRES', - protoName: 'playlistUrlPRES')..aOS( - 15, _omitFieldNames ? '' : 'playlistUrlCAM', - protoName: 'playlistUrlCAM') + 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') @@ -6238,20 +6733,26 @@ class GetStreamRequest extends $pb.GeneratedMessage { } 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. ' @@ -6296,19 +6797,23 @@ 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. ' @@ -6348,20 +6853,26 @@ class GetThumbsLiveRequest extends $pb.GeneratedMessage { } 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. ' @@ -6415,20 +6926,26 @@ class GetThumbsVODRequest extends $pb.GeneratedMessage { } 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. ' @@ -6481,18 +6998,23 @@ class GetStreamResponse extends $pb.GeneratedMessage { } 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; @@ -6548,20 +7070,26 @@ class GetNowLiveResponse extends $pb.GeneratedMessage { } 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. ' @@ -6605,18 +7133,23 @@ class GetThumbsVODResponse extends $pb.GeneratedMessage { } 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; @@ -6671,18 +7204,23 @@ class GetThumbsLiveResponse extends $pb.GeneratedMessage { } 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; @@ -6696,7 +7234,8 @@ class GetThumbsLiveResponse extends $pb.GeneratedMessage { '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; @@ -6742,18 +7281,23 @@ class Download extends $pb.GeneratedMessage { } 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; @@ -6829,24 +7373,31 @@ class Progress extends $pb.GeneratedMessage { } 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. ' @@ -6932,20 +7483,26 @@ class GetProgressRequest extends $pb.GeneratedMessage { } 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. ' @@ -7002,21 +7559,27 @@ class PutProgressRequest extends $pb.GeneratedMessage { } 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. ' @@ -7081,20 +7644,26 @@ class MarkAsWatchedRequest extends $pb.GeneratedMessage { } 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. ' @@ -7148,20 +7717,26 @@ class GetProgressResponse extends $pb.GeneratedMessage { } 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. ' @@ -7216,20 +7791,26 @@ class PutProgressResponse extends $pb.GeneratedMessage { } 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. ' @@ -7284,20 +7865,26 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { } 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. ' @@ -7310,7 +7897,8 @@ class MarkAsWatchedResponse extends $pb.GeneratedMessage { '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; 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 a797a4b7..d5343084 100644 --- a/lib/base/networking/api/handler/chat_handler.dart +++ b/lib/base/networking/api/handler/chat_handler.dart @@ -1,6 +1,4 @@ import 'dart:async'; - -import 'package:fixnum/fixnum.dart'; 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'; @@ -39,8 +37,9 @@ class ChatHandlers { ); } - Future postMessageReaction( - int messageID, int streamID, String emoji) async { + Future postMessageReaction(int messageID, + int streamID, + String emoji,) async { _logger.i('Posting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { @@ -57,8 +56,9 @@ class ChatHandlers { ); } - Future deleteMessageReaction( - int messageID, int streamID, int reactionID) async { + Future deleteMessageReaction(int messageID, + int streamID, + int reactionID,) async { _logger.i('Deleting chat reaction'); return _grpcHandler.callGrpcMethod( (client) async { @@ -74,8 +74,9 @@ class ChatHandlers { ); } - Future postChatReply( - int messageID, int streamID, String message) async { + Future postChatReply(int messageID, + int streamID, + String message,) async { _logger.i('Posting chat reply'); return _grpcHandler.callGrpcMethod( (client) async { diff --git a/lib/base/networking/api/handler/poll_handler.dart b/lib/base/networking/api/handler/poll_handler.dart index 4265a0b1..128b578c 100644 --- a/lib/base/networking/api/handler/poll_handler.dart +++ b/lib/base/networking/api/handler/poll_handler.dart @@ -24,13 +24,18 @@ class PollHandlers { Future postPollVote(int streamID, int pollOptionID) async { _logger.i( - 'Posting poll vote for streamID: $streamID, pollOptionID: $pollOptionID'); + 'Posting poll vote for streamID: $streamID, pollOptionID: $pollOptionID', + ); return _grpcHandler.callGrpcMethod( (client) async { await client.postPollVote(PostPollVoteRequest( - streamID: streamID, pollOptionID: pollOptionID)); + streamID: streamID, + pollOptionID: pollOptionID, + ), + ); _logger.i( - 'Poll vote posted successfully for option $pollOptionID in stream $streamID'); + 'Poll vote posted successfully for option $pollOptionID in stream $streamID', + ); // Assuming PostPollVoteResponse doesn't have a field to return, just logging the success }, ); diff --git a/lib/views/chat_view/chat_view.dart b/lib/views/chat_view/chat_view.dart index 3a037484..5abf8a7d 100644 --- a/lib/views/chat_view/chat_view.dart +++ b/lib/views/chat_view/chat_view.dart @@ -1,5 +1,4 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/views/chat_view/chat_view_state.dart'; diff --git a/lib/views/chat_view/chat_view_state.dart b/lib/views/chat_view/chat_view_state.dart index 13e261d8..b4017809 100644 --- a/lib/views/chat_view/chat_view_state.dart +++ b/lib/views/chat_view/chat_view_state.dart @@ -1,15 +1,11 @@ import 'dart:async'; -import 'package:fixnum/fixnum.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; 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 { diff --git a/lib/views/chat_view/inactive_view.dart b/lib/views/chat_view/inactive_view.dart index d1a22e8f..3cb8aeeb 100644 --- a/lib/views/chat_view/inactive_view.dart +++ b/lib/views/chat_view/inactive_view.dart @@ -1,7 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:fixnum/fixnum.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'; @@ -81,7 +80,8 @@ class InactiveViewState extends ConsumerState { Navigator.pushReplacement( context, MaterialPageRoute( - builder: (context) => VideoPlayerPage(stream: stream)), + builder: (context) => VideoPlayerPage(stream: stream), + ), ); }, ), diff --git a/lib/views/chat_view/poll_view.dart b/lib/views/chat_view/poll_view.dart index 48dfd060..e089b224 100644 --- a/lib/views/chat_view/poll_view.dart +++ b/lib/views/chat_view/poll_view.dart @@ -1,4 +1,3 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/views/chat_view/poll_view_state.dart'; diff --git a/lib/views/chat_view/poll_view_state.dart b/lib/views/chat_view/poll_view_state.dart index f2938b5e..7e1ee976 100644 --- a/lib/views/chat_view/poll_view_state.dart +++ b/lib/views/chat_view/poll_view_state.dart @@ -196,7 +196,6 @@ class PollViewState extends ConsumerState { Widget _buildActivePollOption( BuildContext context, Poll poll, PollOption option,) { bool isSelected = selectedOptions[poll.id] == option.id; - ThemeData themeData = Theme.of(context); return GestureDetector( onTap: () { setState(() { From e9d0fc0a856b10ecfdc1a81233174d72db0d07a7 Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Sun, 28 Jan 2024 13:44:37 +0100 Subject: [PATCH 7/7] fix the trailing comma --- lib/view_models/chat_view_model.dart | 13 ++++++------- .../video_view/utils/custom_video_control_bar.dart | 3 ++- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/view_models/chat_view_model.dart b/lib/view_models/chat_view_model.dart index a2ac03b5..4a5f9b9e 100644 --- a/lib/view_models/chat_view_model.dart +++ b/lib/view_models/chat_view_model.dart @@ -1,4 +1,3 @@ -import 'package:fixnum/fixnum.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:gocast_mobile/base/networking/api/handler/chat_handler.dart'; @@ -56,8 +55,8 @@ class ChatViewModel extends StateNotifier { } } - Future postMessageReaction( - int messageId, int streamId, String emoji) async { + Future postMessageReaction(int messageId, int streamId, + String emoji,) async { try { var reaction = await ChatHandlers(_grpcHandler) .postMessageReaction(messageId, streamId, emoji); @@ -68,8 +67,8 @@ class ChatViewModel extends StateNotifier { } } - Future deleteMessageReaction( - int messageId, int streamId, int reactionId) async { + Future deleteMessageReaction(int messageId, int streamId, + int reactionId,) async { try { await ChatHandlers(_grpcHandler) .deleteMessageReaction(messageId, streamId, reactionId); @@ -79,8 +78,8 @@ class ChatViewModel extends StateNotifier { } } - Future postChatReply( - int messageId, int streamId, String message) async { + Future postChatReply(int messageId, int streamId, + String message,) async { try { var replay = await ChatHandlers(_grpcHandler) .postChatReply(messageId, streamId, message); 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 dcfe7ce2..6a160d83 100644 --- a/lib/views/video_view/utils/custom_video_control_bar.dart +++ b/lib/views/video_view/utils/custom_video_control_bar.dart @@ -104,7 +104,8 @@ class CustomVideoControlBar extends StatelessWidget { IconButton( icon: isPollVisible ? Icon(Icons.quiz_outlined, - color: themeData.primaryColor) + color: themeData.primaryColor, + ) : const Icon(Icons.quiz_outlined), color: themeData.iconTheme.color, onPressed: isPollActive ? onOpenPolls : null,