diff --git a/lib/base/networking/apis/tumdev/campus_backend.pb.dart b/lib/base/networking/apis/tumdev/campus_backend.pb.dart index e7f0b15f..e189f087 100644 --- a/lib/base/networking/apis/tumdev/campus_backend.pb.dart +++ b/lib/base/networking/apis/tumdev/campus_backend.pb.dart @@ -3788,56 +3788,6 @@ class GetMemberReply extends $pb.GeneratedMessage { void clearMemberId() => clearField(3); } -class GetUploadStatusRequest extends $pb.GeneratedMessage { - factory GetUploadStatusRequest({ - $core.String? lrzId, - }) { - final $result = create(); - if (lrzId != null) { - $result.lrzId = lrzId; - } - return $result; - } - GetUploadStatusRequest._() : super(); - factory GetUploadStatusRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetUploadStatusRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUploadStatusRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'lrzId') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetUploadStatusRequest clone() => GetUploadStatusRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetUploadStatusRequest copyWith(void Function(GetUploadStatusRequest) updates) => super.copyWith((message) => updates(message as GetUploadStatusRequest)) as GetUploadStatusRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetUploadStatusRequest create() => GetUploadStatusRequest._(); - GetUploadStatusRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetUploadStatusRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetUploadStatusRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get lrzId => $_getSZ(0); - @$pb.TagNumber(1) - set lrzId($core.String v) { $_setString(0, v); } - @$pb.TagNumber(1) - $core.bool hasLrzId() => $_has(0); - @$pb.TagNumber(1) - void clearLrzId() => clearField(1); -} - class GetUploadStatusReply extends $pb.GeneratedMessage { factory GetUploadStatusReply({ $core.String? fcmToken, @@ -3944,262 +3894,6 @@ class GetUploadStatusReply extends $pb.GeneratedMessage { void clearExternalId() => clearField(5); } -class GetNotificationRequest extends $pb.GeneratedMessage { - factory GetNotificationRequest({ - $core.int? notificationId, - }) { - final $result = create(); - if (notificationId != null) { - $result.notificationId = notificationId; - } - return $result; - } - GetNotificationRequest._() : super(); - factory GetNotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'notificationId', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNotificationRequest clone() => GetNotificationRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNotificationRequest copyWith(void Function(GetNotificationRequest) updates) => super.copyWith((message) => updates(message as GetNotificationRequest)) as GetNotificationRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetNotificationRequest create() => GetNotificationRequest._(); - GetNotificationRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetNotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetNotificationRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get notificationId => $_getIZ(0); - @$pb.TagNumber(1) - set notificationId($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNotificationId() => $_has(0); - @$pb.TagNumber(1) - void clearNotificationId() => clearField(1); -} - -class GetNotificationReply extends $pb.GeneratedMessage { - factory GetNotificationReply({ - $core.int? notificationId, - $core.int? type, - $core.String? title, - $core.String? description, - $core.String? signature, - }) { - final $result = create(); - if (notificationId != null) { - $result.notificationId = notificationId; - } - if (type != null) { - $result.type = type; - } - if (title != null) { - $result.title = title; - } - if (description != null) { - $result.description = description; - } - if (signature != null) { - $result.signature = signature; - } - return $result; - } - GetNotificationReply._() : super(); - factory GetNotificationReply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNotificationReply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'notificationId', $pb.PbFieldType.O3) - ..a<$core.int>(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.O3) - ..aOS(3, _omitFieldNames ? '' : 'title') - ..aOS(4, _omitFieldNames ? '' : 'description') - ..aOS(5, _omitFieldNames ? '' : 'signature') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNotificationReply clone() => GetNotificationReply()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNotificationReply copyWith(void Function(GetNotificationReply) updates) => super.copyWith((message) => updates(message as GetNotificationReply)) as GetNotificationReply; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetNotificationReply create() => GetNotificationReply._(); - GetNotificationReply createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetNotificationReply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetNotificationReply? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get notificationId => $_getIZ(0); - @$pb.TagNumber(1) - set notificationId($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNotificationId() => $_has(0); - @$pb.TagNumber(1) - void clearNotificationId() => clearField(1); - - @$pb.TagNumber(2) - $core.int get type => $_getIZ(1); - @$pb.TagNumber(2) - set type($core.int v) { $_setSignedInt32(1, v); } - @$pb.TagNumber(2) - $core.bool hasType() => $_has(1); - @$pb.TagNumber(2) - void clearType() => clearField(2); - - @$pb.TagNumber(3) - $core.String get title => $_getSZ(2); - @$pb.TagNumber(3) - set title($core.String v) { $_setString(2, v); } - @$pb.TagNumber(3) - $core.bool hasTitle() => $_has(2); - @$pb.TagNumber(3) - void clearTitle() => clearField(3); - - @$pb.TagNumber(4) - $core.String get description => $_getSZ(3); - @$pb.TagNumber(4) - set description($core.String v) { $_setString(3, v); } - @$pb.TagNumber(4) - $core.bool hasDescription() => $_has(3); - @$pb.TagNumber(4) - void clearDescription() => clearField(4); - - @$pb.TagNumber(5) - $core.String get signature => $_getSZ(4); - @$pb.TagNumber(5) - set signature($core.String v) { $_setString(4, v); } - @$pb.TagNumber(5) - $core.bool hasSignature() => $_has(4); - @$pb.TagNumber(5) - void clearSignature() => clearField(5); -} - -class GetNotificationConfirmRequest extends $pb.GeneratedMessage { - factory GetNotificationConfirmRequest({ - $core.int? notificationId, - }) { - final $result = create(); - if (notificationId != null) { - $result.notificationId = notificationId; - } - return $result; - } - GetNotificationConfirmRequest._() : super(); - factory GetNotificationConfirmRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNotificationConfirmRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationConfirmRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) - ..a<$core.int>(1, _omitFieldNames ? '' : 'notificationId', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNotificationConfirmRequest clone() => GetNotificationConfirmRequest()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNotificationConfirmRequest copyWith(void Function(GetNotificationConfirmRequest) updates) => super.copyWith((message) => updates(message as GetNotificationConfirmRequest)) as GetNotificationConfirmRequest; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetNotificationConfirmRequest create() => GetNotificationConfirmRequest._(); - GetNotificationConfirmRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetNotificationConfirmRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetNotificationConfirmRequest? _defaultInstance; - - @$pb.TagNumber(1) - $core.int get notificationId => $_getIZ(0); - @$pb.TagNumber(1) - set notificationId($core.int v) { $_setSignedInt32(0, v); } - @$pb.TagNumber(1) - $core.bool hasNotificationId() => $_has(0); - @$pb.TagNumber(1) - void clearNotificationId() => clearField(1); -} - -class GetNotificationConfirmReply extends $pb.GeneratedMessage { - factory GetNotificationConfirmReply({ - $core.String? status, - }) { - final $result = create(); - if (status != null) { - $result.status = status; - } - return $result; - } - GetNotificationConfirmReply._() : super(); - factory GetNotificationConfirmReply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetNotificationConfirmReply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); - - static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationConfirmReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) - ..aOS(1, _omitFieldNames ? '' : 'status') - ..hasRequiredFields = false - ; - - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' - 'Will be removed in next major version') - GetNotificationConfirmReply clone() => GetNotificationConfirmReply()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - GetNotificationConfirmReply copyWith(void Function(GetNotificationConfirmReply) updates) => super.copyWith((message) => updates(message as GetNotificationConfirmReply)) as GetNotificationConfirmReply; - - $pb.BuilderInfo get info_ => _i; - - @$core.pragma('dart2js:noInline') - static GetNotificationConfirmReply create() => GetNotificationConfirmReply._(); - GetNotificationConfirmReply createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); - @$core.pragma('dart2js:noInline') - static GetNotificationConfirmReply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetNotificationConfirmReply? _defaultInstance; - - @$pb.TagNumber(1) - $core.String get status => $_getSZ(0); - @$pb.TagNumber(1) - set status($core.String v) { $_setString(0, v); } - @$pb.TagNumber(1) - $core.bool hasStatus() => $_has(0); - @$pb.TagNumber(1) - void clearStatus() => clearField(1); -} - class GetCanteenHeadCountRequest extends $pb.GeneratedMessage { factory GetCanteenHeadCountRequest({ $core.String? canteenId, diff --git a/lib/base/networking/apis/tumdev/campus_backend.pbgrpc.dart b/lib/base/networking/apis/tumdev/campus_backend.pbgrpc.dart index a806781e..212f77b8 100644 --- a/lib/base/networking/apis/tumdev/campus_backend.pbgrpc.dart +++ b/lib/base/networking/apis/tumdev/campus_backend.pbgrpc.dart @@ -81,22 +81,6 @@ class CampusClient extends $grpc.Client { '/api.Campus/CreateFeedback', ($0.CreateFeedbackRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.CreateFeedbackReply.fromBuffer(value)); - static final _$getUploadStatus = $grpc.ClientMethod<$0.GetUploadStatusRequest, $0.GetUploadStatusReply>( - '/api.Campus/GetUploadStatus', - ($0.GetUploadStatusRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetUploadStatusReply.fromBuffer(value)); - static final _$getNotification = $grpc.ClientMethod<$0.GetNotificationRequest, $0.GetNotificationReply>( - '/api.Campus/GetNotification', - ($0.GetNotificationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetNotificationReply.fromBuffer(value)); - static final _$getNotificationConfirm = $grpc.ClientMethod<$0.GetNotificationConfirmRequest, $0.GetNotificationConfirmReply>( - '/api.Campus/GetNotificationConfirm', - ($0.GetNotificationConfirmRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetNotificationConfirmReply.fromBuffer(value)); - static final _$getMember = $grpc.ClientMethod<$0.GetMemberRequest, $0.GetMemberReply>( - '/api.Campus/GetMember', - ($0.GetMemberRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $0.GetMemberReply.fromBuffer(value)); static final _$getCanteenHeadCount = $grpc.ClientMethod<$0.GetCanteenHeadCountRequest, $0.GetCanteenHeadCountReply>( '/api.Campus/GetCanteenHeadCount', ($0.GetCanteenHeadCountRequest value) => value.writeToBuffer(), @@ -180,22 +164,6 @@ class CampusClient extends $grpc.Client { return $createStreamingCall(_$createFeedback, request, options: options).single; } - $grpc.ResponseFuture<$0.GetUploadStatusReply> getUploadStatus($0.GetUploadStatusRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getUploadStatus, request, options: options); - } - - $grpc.ResponseFuture<$0.GetNotificationReply> getNotification($0.GetNotificationRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getNotification, request, options: options); - } - - $grpc.ResponseFuture<$0.GetNotificationConfirmReply> getNotificationConfirm($0.GetNotificationConfirmRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getNotificationConfirm, request, options: options); - } - - $grpc.ResponseFuture<$0.GetMemberReply> getMember($0.GetMemberRequest request, {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getMember, request, options: options); - } - $grpc.ResponseFuture<$0.GetCanteenHeadCountReply> getCanteenHeadCount($0.GetCanteenHeadCountRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getCanteenHeadCount, request, options: options); } @@ -323,34 +291,6 @@ abstract class CampusServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $0.CreateFeedbackRequest.fromBuffer(value), ($0.CreateFeedbackReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetUploadStatusRequest, $0.GetUploadStatusReply>( - 'GetUploadStatus', - getUploadStatus_Pre, - false, - false, - ($core.List<$core.int> value) => $0.GetUploadStatusRequest.fromBuffer(value), - ($0.GetUploadStatusReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetNotificationRequest, $0.GetNotificationReply>( - 'GetNotification', - getNotification_Pre, - false, - false, - ($core.List<$core.int> value) => $0.GetNotificationRequest.fromBuffer(value), - ($0.GetNotificationReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetNotificationConfirmRequest, $0.GetNotificationConfirmReply>( - 'GetNotificationConfirm', - getNotificationConfirm_Pre, - false, - false, - ($core.List<$core.int> value) => $0.GetNotificationConfirmRequest.fromBuffer(value), - ($0.GetNotificationConfirmReply value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetMemberRequest, $0.GetMemberReply>( - 'GetMember', - getMember_Pre, - false, - false, - ($core.List<$core.int> value) => $0.GetMemberRequest.fromBuffer(value), - ($0.GetMemberReply value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$0.GetCanteenHeadCountRequest, $0.GetCanteenHeadCountReply>( 'GetCanteenHeadCount', getCanteenHeadCount_Pre, @@ -437,22 +377,6 @@ abstract class CampusServiceBase extends $grpc.Service { return listMovies(call, await request); } - $async.Future<$0.GetUploadStatusReply> getUploadStatus_Pre($grpc.ServiceCall call, $async.Future<$0.GetUploadStatusRequest> request) async { - return getUploadStatus(call, await request); - } - - $async.Future<$0.GetNotificationReply> getNotification_Pre($grpc.ServiceCall call, $async.Future<$0.GetNotificationRequest> request) async { - return getNotification(call, await request); - } - - $async.Future<$0.GetNotificationConfirmReply> getNotificationConfirm_Pre($grpc.ServiceCall call, $async.Future<$0.GetNotificationConfirmRequest> request) async { - return getNotificationConfirm(call, await request); - } - - $async.Future<$0.GetMemberReply> getMember_Pre($grpc.ServiceCall call, $async.Future<$0.GetMemberRequest> request) async { - return getMember(call, await request); - } - $async.Future<$0.GetCanteenHeadCountReply> getCanteenHeadCount_Pre($grpc.ServiceCall call, $async.Future<$0.GetCanteenHeadCountRequest> request) async { return getCanteenHeadCount(call, await request); } @@ -484,10 +408,6 @@ abstract class CampusServiceBase extends $grpc.Service { $async.Future<$0.GetUpdateNoteReply> getUpdateNote($grpc.ServiceCall call, $0.GetUpdateNoteRequest request); $async.Future<$0.ListMoviesReply> listMovies($grpc.ServiceCall call, $0.ListMoviesRequest request); $async.Future<$0.CreateFeedbackReply> createFeedback($grpc.ServiceCall call, $async.Stream<$0.CreateFeedbackRequest> request); - $async.Future<$0.GetUploadStatusReply> getUploadStatus($grpc.ServiceCall call, $0.GetUploadStatusRequest request); - $async.Future<$0.GetNotificationReply> getNotification($grpc.ServiceCall call, $0.GetNotificationRequest request); - $async.Future<$0.GetNotificationConfirmReply> getNotificationConfirm($grpc.ServiceCall call, $0.GetNotificationConfirmRequest request); - $async.Future<$0.GetMemberReply> getMember($grpc.ServiceCall call, $0.GetMemberRequest request); $async.Future<$0.GetCanteenHeadCountReply> getCanteenHeadCount($grpc.ServiceCall call, $0.GetCanteenHeadCountRequest request); $async.Future<$0.CreateDeviceReply> createDevice($grpc.ServiceCall call, $0.CreateDeviceRequest request); $async.Future<$0.DeleteDeviceReply> deleteDevice($grpc.ServiceCall call, $0.DeleteDeviceRequest request); diff --git a/lib/base/networking/apis/tumdev/campus_backend.pbjson.dart b/lib/base/networking/apis/tumdev/campus_backend.pbjson.dart index cb725b89..efd4245d 100644 --- a/lib/base/networking/apis/tumdev/campus_backend.pbjson.dart +++ b/lib/base/networking/apis/tumdev/campus_backend.pbjson.dart @@ -805,18 +805,6 @@ final $typed_data.Uint8List getMemberReplyDescriptor = $convert.base64Decode( 'Cg5HZXRNZW1iZXJSZXBseRIVCgZscnpfaWQYASABKAlSBWxyeklkEhIKBG5hbWUYAiABKAlSBG' '5hbWUSGwoJbWVtYmVyX2lkGAMgASgFUghtZW1iZXJJZA=='); -@$core.Deprecated('Use getUploadStatusRequestDescriptor instead') -const GetUploadStatusRequest$json = { - '1': 'GetUploadStatusRequest', - '2': [ - {'1': 'lrz_id', '3': 1, '4': 1, '5': 9, '10': 'lrzId'}, - ], -}; - -/// Descriptor for `GetUploadStatusRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getUploadStatusRequestDescriptor = $convert.base64Decode( - 'ChZHZXRVcGxvYWRTdGF0dXNSZXF1ZXN0EhUKBmxyel9pZBgBIAEoCVIFbHJ6SWQ='); - @$core.Deprecated('Use getUploadStatusReplyDescriptor instead') const GetUploadStatusReply$json = { '1': 'GetUploadStatusReply', @@ -836,63 +824,6 @@ final $typed_data.Uint8List getUploadStatusReplyDescriptor = $convert.base64Deco 'SWQSHwoLZW1wbG95ZWVfaWQYBCABKAhSCmVtcGxveWVlSWQSHwoLZXh0ZXJuYWxfaWQYBSABKA' 'hSCmV4dGVybmFsSWQ='); -@$core.Deprecated('Use getNotificationRequestDescriptor instead') -const GetNotificationRequest$json = { - '1': 'GetNotificationRequest', - '2': [ - {'1': 'notification_id', '3': 1, '4': 1, '5': 5, '10': 'notificationId'}, - ], -}; - -/// Descriptor for `GetNotificationRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNotificationRequestDescriptor = $convert.base64Decode( - 'ChZHZXROb3RpZmljYXRpb25SZXF1ZXN0EicKD25vdGlmaWNhdGlvbl9pZBgBIAEoBVIObm90aW' - 'ZpY2F0aW9uSWQ='); - -@$core.Deprecated('Use getNotificationReplyDescriptor instead') -const GetNotificationReply$json = { - '1': 'GetNotificationReply', - '2': [ - {'1': 'notification_id', '3': 1, '4': 1, '5': 5, '10': 'notificationId'}, - {'1': 'type', '3': 2, '4': 1, '5': 5, '10': 'type'}, - {'1': 'title', '3': 3, '4': 1, '5': 9, '10': 'title'}, - {'1': 'description', '3': 4, '4': 1, '5': 9, '10': 'description'}, - {'1': 'signature', '3': 5, '4': 1, '5': 9, '10': 'signature'}, - ], -}; - -/// Descriptor for `GetNotificationReply`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNotificationReplyDescriptor = $convert.base64Decode( - 'ChRHZXROb3RpZmljYXRpb25SZXBseRInCg9ub3RpZmljYXRpb25faWQYASABKAVSDm5vdGlmaW' - 'NhdGlvbklkEhIKBHR5cGUYAiABKAVSBHR5cGUSFAoFdGl0bGUYAyABKAlSBXRpdGxlEiAKC2Rl' - 'c2NyaXB0aW9uGAQgASgJUgtkZXNjcmlwdGlvbhIcCglzaWduYXR1cmUYBSABKAlSCXNpZ25hdH' - 'VyZQ=='); - -@$core.Deprecated('Use getNotificationConfirmRequestDescriptor instead') -const GetNotificationConfirmRequest$json = { - '1': 'GetNotificationConfirmRequest', - '2': [ - {'1': 'notification_id', '3': 1, '4': 1, '5': 5, '10': 'notificationId'}, - ], -}; - -/// Descriptor for `GetNotificationConfirmRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNotificationConfirmRequestDescriptor = $convert.base64Decode( - 'Ch1HZXROb3RpZmljYXRpb25Db25maXJtUmVxdWVzdBInCg9ub3RpZmljYXRpb25faWQYASABKA' - 'VSDm5vdGlmaWNhdGlvbklk'); - -@$core.Deprecated('Use getNotificationConfirmReplyDescriptor instead') -const GetNotificationConfirmReply$json = { - '1': 'GetNotificationConfirmReply', - '2': [ - {'1': 'status', '3': 1, '4': 1, '5': 9, '10': 'status'}, - ], -}; - -/// Descriptor for `GetNotificationConfirmReply`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getNotificationConfirmReplyDescriptor = $convert.base64Decode( - 'ChtHZXROb3RpZmljYXRpb25Db25maXJtUmVwbHkSFgoGc3RhdHVzGAEgASgJUgZzdGF0dXM='); - @$core.Deprecated('Use getCanteenHeadCountRequestDescriptor instead') const GetCanteenHeadCountRequest$json = { '1': 'GetCanteenHeadCountRequest', diff --git a/protos/tumdev/campus_backend.proto b/protos/tumdev/campus_backend.proto index 4ecb265c..bd66d0dc 100644 --- a/protos/tumdev/campus_backend.proto +++ b/protos/tumdev/campus_backend.proto @@ -114,22 +114,6 @@ service Campus { }; } - rpc GetUploadStatus(GetUploadStatusRequest) returns (GetUploadStatusReply) { - option (google.api.http) = {get: "/device/uploaded/{lrz_id}"}; - } - - rpc GetNotification(GetNotificationRequest) returns (GetNotificationReply) { - option (google.api.http) = {get: "/notifications/{notification_id}"}; - } - - rpc GetNotificationConfirm(GetNotificationConfirmRequest) returns (GetNotificationConfirmReply) { - option (google.api.http) = {get: "/notifications/confirm/{notification_id}"}; - } - - rpc GetMember(GetMemberRequest) returns (GetMemberReply) { - option (google.api.http) = {get: "/members/{lrz_id}"}; - } - rpc GetCanteenHeadCount(GetCanteenHeadCountRequest) returns (GetCanteenHeadCountReply) { option (google.api.http) = {get: "/canteen/headCount/{canteen_id}"}; } @@ -519,10 +503,6 @@ message GetMemberReply { int32 member_id = 3; } -message GetUploadStatusRequest { - string lrz_id = 1; -} - message GetUploadStatusReply { string fcm_token = 1; string public_key = 2; @@ -531,24 +511,6 @@ message GetUploadStatusReply { bool external_id = 5; } -message GetNotificationRequest { - int32 notification_id = 1; -} -message GetNotificationReply { - int32 notification_id = 1; - int32 type = 2; - string title = 3; - string description = 4; - string signature = 5; -} - -message GetNotificationConfirmRequest { - int32 notification_id = 1; -} -message GetNotificationConfirmReply { - string status = 1; -} - message GetCanteenHeadCountRequest { // The requested canteen ID string canteen_id = 1;