-
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.
- Loading branch information
Showing
12 changed files
with
182 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 |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
build/ | ||
|
||
.flutter-plugins | ||
|
||
*.g.dart |
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
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,11 @@ | ||
abstract class ApiEndpoints { | ||
|
||
static const String SERVER_URL = "http://174.138.0.194:8080"; | ||
|
||
} | ||
|
||
abstract class ApiHeaders { | ||
|
||
static const String AUTHORIZATION_HTTP = "Authorization"; | ||
|
||
} |
3 changes: 2 additions & 1 deletion
3
...ice/api/login/facebook_login_service.dart → ...ogin/facebook/facebook_login_service.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
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,31 @@ | ||
import 'package:json_annotation/json_annotation.dart'; | ||
import 'package:meta/meta.dart'; | ||
|
||
part 'login.g.dart'; | ||
|
||
class AccessToken { | ||
final DateTime expires; | ||
final String userId; | ||
final String token; | ||
|
||
AccessToken({this.token, this.userId, this.expires}); | ||
} | ||
|
||
|
||
@JsonSerializable() | ||
class UserForm { | ||
|
||
@JsonKey(name: 'facebook_id') | ||
final String fbId; | ||
|
||
@JsonKey(name: 'facebook_token') | ||
final String fbToken; | ||
|
||
const UserForm({ | ||
@required this.fbId, | ||
@required this.fbToken | ||
}); | ||
|
||
factory UserForm.fromJson(Map<String, dynamic> json) => _$UserFormFromJson(json); | ||
Map<String, dynamic> toJson() => _$UserFormToJson(this); | ||
} |
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