Skip to content

Commit

Permalink
Revert "LA-1204 quotaId optional and changed isLastChunk to lastChunk"
Browse files Browse the repository at this point in the history
This reverts commit 5e8e474.
  • Loading branch information
KhaledNjim authored and hoangdat committed Apr 1, 2024
1 parent 2df3f02 commit fb5e3c7
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 50 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
// the Additional Terms applicable to LinShare software.

import 'package:data/src/network/model/converter/datetime_converter.dart';
import 'package:data/src/network/model/converter/quota_id_nullable_converter.dart';
import 'package:data/src/network/model/converter/shared_space_id_nullable_converter.dart';
import 'package:data/src/network/model/converter/quota_id_converter.dart';
import 'package:data/src/network/model/converter/shared_space_id_converter.dart';
Expand All @@ -48,7 +47,6 @@ part 'shared_space_node_nested_response.g.dart';
@QuotaIdConverter()
@SharedSpaceIdConverter()
@SharedSpaceIdNullableConverter()
@QuotaIdNullableConverter()
class SharedSpaceNodeNestedResponse extends Equatable {
SharedSpaceNodeNestedResponse(
this.sharedSpaceId,
Expand All @@ -75,7 +73,7 @@ class SharedSpaceNodeNestedResponse extends Equatable {
final LinShareNodeType? nodeType;

@JsonKey(name: Attribute.quotaUuid)
final QuotaId? quotaId;
final QuotaId quotaId;

final VersioningParameterDto? versioningParameters;

Expand Down
1 change: 0 additions & 1 deletion data/lib/src/repository/flow/flow_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ part 'flow_response.g.dart';
@JsonSerializable()
class FlowResponse with EquatableMixin {
final int chunkNumber;
@JsonKey(name:"lastChunk")
final bool isLastChunk;
final bool chunkUploadSuccess;
final String? fileName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SharedSpaceNodeNested extends Equatable {
final DateTime modificationDate;
final String name;
final LinShareNodeType? nodeType;
final QuotaId? quotaId;
final QuotaId quotaId;
final VersioningParameter versioningParameters;

SharedSpaceNodeNested(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class SharedSpaceDetailsViewModel extends BaseViewModel {

await sharedSpaceViewState.fold((_) => null, (success) async {
if (success is SharedSpaceDetailViewState) {
store.dispatch(_getAccountQuotaAction(success.sharedSpace.quotaId!));
store.dispatch(_getAccountQuotaAction(success.sharedSpace.quotaId));
}
});
});
Expand Down

0 comments on commit fb5e3c7

Please sign in to comment.