-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13c4eb3
commit 125490e
Showing
28 changed files
with
759 additions
and
298 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import 'package:azkar/models/challenge.dart'; | ||
|
||
|
||
class GlobalChallenge { | ||
GlobalChallenge({ | ||
required this.challenge, | ||
required this.finishedCount, | ||
}); | ||
|
||
Challenge challenge; | ||
int finishedCount; | ||
|
||
factory GlobalChallenge.fromJson(Map<String, dynamic> json) => | ||
GlobalChallenge( | ||
challenge: Challenge.fromJson(json["challenge"]), | ||
finishedCount: json["finishedCount"], | ||
); | ||
|
||
Map<String, dynamic> toJson() => { | ||
"challenge": challenge.toJson(), | ||
"finishedCount": finishedCount, | ||
}; | ||
} |
14 changes: 0 additions & 14 deletions
14
lib/net/api_interface/authentication/requests/facebook_authentication_request_body.dart
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
lib/net/api_interface/challenges/responses/finish_custom_simple_challenge_response.dart
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,14 @@ | ||
import 'package:azkar/net/api_interface/response_base.dart'; | ||
|
||
class FinishCustomSimpleChallengeResponse extends ResponseBase { | ||
static FinishCustomSimpleChallengeResponse fromJson( | ||
Map<String, dynamic> json) { | ||
FinishCustomSimpleChallengeResponse response = | ||
new FinishCustomSimpleChallengeResponse(); | ||
response.setError(json); | ||
if (response.hasError()) { | ||
return response; | ||
} | ||
return response; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
lib/net/api_interface/challenges/responses/finish_global_challenge_response.dart
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,14 @@ | ||
import 'package:azkar/net/api_interface/response_base.dart'; | ||
|
||
class FinishGlobalChallengeResponse extends ResponseBase { | ||
static FinishGlobalChallengeResponse fromJson( | ||
Map<String, dynamic> json) { | ||
FinishGlobalChallengeResponse response = | ||
new FinishGlobalChallengeResponse(); | ||
response.setError(json); | ||
if (response.hasError()) { | ||
return response; | ||
} | ||
return response; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
lib/net/api_interface/challenges/responses/get_global_challenge_response.dart
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,21 @@ | ||
import 'package:azkar/models/global_challenge.dart'; | ||
import 'package:azkar/net/api_interface/response_base.dart'; | ||
|
||
class GetGlobalChallengeResponse extends ResponseBase { | ||
late GlobalChallenge challenge; | ||
|
||
GetGlobalChallengeResponse(); | ||
|
||
static GetGlobalChallengeResponse fromJson(Map<String, dynamic> json) { | ||
GetGlobalChallengeResponse response = new GetGlobalChallengeResponse(); | ||
response.setError(json); | ||
if (response.hasError()) { | ||
return response; | ||
} | ||
response.challenge = GlobalChallenge.fromJson(json['data']); | ||
return response; | ||
} | ||
|
||
Map<String, dynamic> toJson() => | ||
{'data': challenge.toJson()}; | ||
} |
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
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
39 changes: 0 additions & 39 deletions
39
lib/views/core_views/friends/add_friend/facebook_friends_screen.dart
This file was deleted.
Oops, something went wrong.
88 changes: 0 additions & 88 deletions
88
lib/views/core_views/friends/add_friend/invite_facebook_friend_widget.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.