From a2d46caa11b28ce8841f842d7a8c19ebf78f7ff6 Mon Sep 17 00:00:00 2001 From: Yurin Andrey Date: Sun, 30 Nov 2025 22:53:30 +0300 Subject: [PATCH 1/3] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D0=B5=20userId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/models/about/author.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core/models/about/author.dart b/lib/core/models/about/author.dart index feab6944..b4256b0d 100644 --- a/lib/core/models/about/author.dart +++ b/lib/core/models/about/author.dart @@ -7,12 +7,14 @@ import 'package:unn_mobile/core/constants/api/protocol_type.dart'; import 'package:unn_mobile/core/misc/json/json_utils.dart'; class _AuthorJsonKeys { + static const String userId = 'user_id'; static const String fullname = 'fullname'; static const String educationGroup = 'education_group'; static const String avatar = 'avatar'; } class Author { + final int? userId; final String fullname; final String? educationGroup; final String avatar; @@ -23,16 +25,19 @@ class Author { Author({ required this.fullname, required this.avatar, + this.userId, this.educationGroup, }); factory Author.fromJson(JsonMap json) => Author( + userId: json[_AuthorJsonKeys.userId] as int?, fullname: json[_AuthorJsonKeys.fullname]! as String, educationGroup: json[_AuthorJsonKeys.educationGroup] as String?, avatar: json[_AuthorJsonKeys.avatar]! as String, ); JsonMap toJson() => { + _AuthorJsonKeys.userId: userId, _AuthorJsonKeys.fullname: fullname, _AuthorJsonKeys.educationGroup: educationGroup, _AuthorJsonKeys.avatar: avatar, From 727c5ef1a80fbc60b86a2e1a901765d41142b15f Mon Sep 17 00:00:00 2001 From: UNN MOBILE runner Date: Sun, 30 Nov 2025 19:54:32 +0000 Subject: [PATCH 2/3] Change version in pubspec --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 126406a6..5f8ee076 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: unn_mobile description: A mobile application for UNN Portal website publish_to: 'none' -version: 0.6.0+375 +version: 0.6.0+376 environment: sdk: '>=3.1.2 <4.0.0' From 6a4ebd9c754927d52a112a705a83a88b318fb433 Mon Sep 17 00:00:00 2001 From: UNN MOBILE runner Date: Tue, 9 Dec 2025 19:34:10 +0000 Subject: [PATCH 3/3] Change version in pubspec --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 5f8ee076..4b5b5cba 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: unn_mobile description: A mobile application for UNN Portal website publish_to: 'none' -version: 0.6.0+376 +version: 0.6.0+377 environment: sdk: '>=3.1.2 <4.0.0'