-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from PLADI-ALM/PDA-44-equipment
[PDA-44] Equipment UI & API
- Loading branch information
Showing
26 changed files
with
1,683 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
APP_IDENTIFIER="com.example.pladi" | ||
APPLE_ID="[email protected]" | ||
SLACK_WEBHOOK_URL="https://hooks.slack.com/services/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" | ||
FASTLANE_USER="fastlane" | ||
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD="ilyo-rtji-kcfa-lqhg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
class EquipmentAddRequest { | ||
String category; | ||
String? description; | ||
String? imgKey; | ||
String? location; | ||
String name; | ||
String quantity; | ||
|
||
EquipmentAddRequest({ | ||
required this.category, | ||
required this.description, | ||
required this.imgKey, | ||
required this.location, | ||
required this.name, | ||
required this.quantity, | ||
}); | ||
|
||
factory EquipmentAddRequest.fromJson(Map<String, dynamic> json) => | ||
EquipmentAddRequest( | ||
category: json["category"], | ||
description: json["description"], | ||
imgKey: json["imgKey"], | ||
location: json["location"], | ||
name: json["name"], | ||
quantity: json["quantity"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"category": category, | ||
"description": description, | ||
"imgKey": imgKey, | ||
"location": location, | ||
"name": name, | ||
"quantity": quantity, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import 'package:frontend/Model/model/general_model.dart'; | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'equipment_category_model.g.dart'; | ||
|
||
@JsonSerializable() | ||
class EquipmentCategoryResponseModel extends GeneralModel { | ||
final EquipmentCategory data; | ||
|
||
EquipmentCategoryResponseModel( | ||
{required super.status, | ||
required super.code, | ||
required super.message, | ||
required this.data}); | ||
|
||
factory EquipmentCategoryResponseModel.fromJson(Map<String, dynamic> json) => | ||
_$EquipmentCategoryResponseModelFromJson(json); | ||
} | ||
|
||
@JsonSerializable() | ||
class EquipmentCategory { | ||
List<String> categoryNames; | ||
|
||
EquipmentCategory({ | ||
required this.categoryNames, | ||
}); | ||
|
||
factory EquipmentCategory.fromJson(Map<String, dynamic> json) => | ||
_$EquipmentCategoryFromJson(json); | ||
} |
Oops, something went wrong.