-
-
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 #9 from arielmagbanua/0.2.0
Added Retrieval of Reading Plans
- Loading branch information
Showing
14 changed files
with
201 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,8 @@ | |
## 0.1.0 | ||
|
||
- Added parsing of book chapters and verses. | ||
|
||
|
||
## 0.2.0 | ||
|
||
- Added retrieving of reading plans. |
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import 'package:equatable/equatable.dart'; | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'reading_plan.g.dart'; | ||
|
||
/// ReadingPlan | ||
/// | ||
/// The entity class for reading plan. | ||
@JsonSerializable() | ||
class ReadingPlan extends Equatable { | ||
/// The id of the reading plan. | ||
final String id; | ||
|
||
/// The title of the reading plan. | ||
final String? title; | ||
|
||
/// The text content of the reading plan. | ||
@JsonKey(ignore: true) | ||
final String? text; | ||
|
||
/// Constructor | ||
/// | ||
/// The [id] is id of the reading plan. | ||
/// The [title] is the tile of the reading plan. | ||
/// The [text] is the text content of the reading plan. | ||
ReadingPlan({ | ||
required this.id, | ||
required this.title, | ||
this.text = null, | ||
}); | ||
|
||
/// Generates [ReadingPlan] object from [json] map object. | ||
factory ReadingPlan.fromJson(Map<String, dynamic> json) => | ||
_$ReadingPlanFromJson(json); | ||
|
||
/// Converts this object to a json map object. | ||
Map<String, dynamic> toJson() { | ||
final json = _$ReadingPlanToJson(this); | ||
json['text'] = text; | ||
|
||
return json; | ||
} | ||
|
||
/// Retrieves all properties of this class. | ||
@override | ||
List<Object?> get props => [ | ||
id, | ||
title, | ||
text, | ||
]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# format dart files | ||
dart format . | ||
|
||
# run the test | ||
dart test | ||
|
||
# execute dry run publish | ||
dart pub publish --dry-run |
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
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