From e6406773db57d82e2d1da9845801dd1c3213d5ff Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Sat, 27 Jan 2024 15:41:47 +0100 Subject: [PATCH] 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; } ///////////////////////////////