| OLD | NEW |
| 1 library googleapis.games.v1; | 1 library googleapis.games.v1; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection_1; | 4 import "dart:collection" as collection_1; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 3700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3711 core.String lastUpdatedTimestamp; | 3711 core.String lastUpdatedTimestamp; |
| 3712 | 3712 |
| 3713 /** | 3713 /** |
| 3714 * The number of leaderboards visible to the currently authenticated player. | 3714 * The number of leaderboards visible to the currently authenticated player. |
| 3715 */ | 3715 */ |
| 3716 core.int leaderboardCount; | 3716 core.int leaderboardCount; |
| 3717 | 3717 |
| 3718 /** The name of the application. */ | 3718 /** The name of the application. */ |
| 3719 core.String name; | 3719 core.String name; |
| 3720 | 3720 |
| 3721 /** |
| 3722 * A hint to the client UI for what color to use as an app-themed color. The |
| 3723 * color is given as an RGB triplet (e.g. "E0E0E0"). |
| 3724 */ |
| 3725 core.String themeColor; |
| 3726 |
| 3721 | 3727 |
| 3722 Application(); | 3728 Application(); |
| 3723 | 3729 |
| 3724 Application.fromJson(core.Map _json) { | 3730 Application.fromJson(core.Map _json) { |
| 3725 if (_json.containsKey("achievement_count")) { | 3731 if (_json.containsKey("achievement_count")) { |
| 3726 achievementCount = _json["achievement_count"]; | 3732 achievementCount = _json["achievement_count"]; |
| 3727 } | 3733 } |
| 3728 if (_json.containsKey("assets")) { | 3734 if (_json.containsKey("assets")) { |
| 3729 assets = _json["assets"].map((value) => new ImageAsset.fromJson(value)).to
List(); | 3735 assets = _json["assets"].map((value) => new ImageAsset.fromJson(value)).to
List(); |
| 3730 } | 3736 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3751 } | 3757 } |
| 3752 if (_json.containsKey("lastUpdatedTimestamp")) { | 3758 if (_json.containsKey("lastUpdatedTimestamp")) { |
| 3753 lastUpdatedTimestamp = _json["lastUpdatedTimestamp"]; | 3759 lastUpdatedTimestamp = _json["lastUpdatedTimestamp"]; |
| 3754 } | 3760 } |
| 3755 if (_json.containsKey("leaderboard_count")) { | 3761 if (_json.containsKey("leaderboard_count")) { |
| 3756 leaderboardCount = _json["leaderboard_count"]; | 3762 leaderboardCount = _json["leaderboard_count"]; |
| 3757 } | 3763 } |
| 3758 if (_json.containsKey("name")) { | 3764 if (_json.containsKey("name")) { |
| 3759 name = _json["name"]; | 3765 name = _json["name"]; |
| 3760 } | 3766 } |
| 3767 if (_json.containsKey("themeColor")) { |
| 3768 themeColor = _json["themeColor"]; |
| 3769 } |
| 3761 } | 3770 } |
| 3762 | 3771 |
| 3763 core.Map toJson() { | 3772 core.Map toJson() { |
| 3764 var _json = new core.Map(); | 3773 var _json = new core.Map(); |
| 3765 if (achievementCount != null) { | 3774 if (achievementCount != null) { |
| 3766 _json["achievement_count"] = achievementCount; | 3775 _json["achievement_count"] = achievementCount; |
| 3767 } | 3776 } |
| 3768 if (assets != null) { | 3777 if (assets != null) { |
| 3769 _json["assets"] = assets.map((value) => (value).toJson()).toList(); | 3778 _json["assets"] = assets.map((value) => (value).toJson()).toList(); |
| 3770 } | 3779 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 3791 } | 3800 } |
| 3792 if (lastUpdatedTimestamp != null) { | 3801 if (lastUpdatedTimestamp != null) { |
| 3793 _json["lastUpdatedTimestamp"] = lastUpdatedTimestamp; | 3802 _json["lastUpdatedTimestamp"] = lastUpdatedTimestamp; |
| 3794 } | 3803 } |
| 3795 if (leaderboardCount != null) { | 3804 if (leaderboardCount != null) { |
| 3796 _json["leaderboard_count"] = leaderboardCount; | 3805 _json["leaderboard_count"] = leaderboardCount; |
| 3797 } | 3806 } |
| 3798 if (name != null) { | 3807 if (name != null) { |
| 3799 _json["name"] = name; | 3808 _json["name"] = name; |
| 3800 } | 3809 } |
| 3810 if (themeColor != null) { |
| 3811 _json["themeColor"] = themeColor; |
| 3812 } |
| 3801 return _json; | 3813 return _json; |
| 3802 } | 3814 } |
| 3803 } | 3815 } |
| 3804 | 3816 |
| 3805 | 3817 |
| 3806 /** This is a JSON template for an application category object. */ | 3818 /** This is a JSON template for an application category object. */ |
| 3807 class ApplicationCategory { | 3819 class ApplicationCategory { |
| 3808 /** | 3820 /** |
| 3809 * Uniquely identifies the type of this resource. Value is always the fixed | 3821 * Uniquely identifies the type of this resource. Value is always the fixed |
| 3810 * string games#applicationCategory. | 3822 * string games#applicationCategory. |
| (...skipping 5835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9646 _json["pendingParticipantId"] = pendingParticipantId; | 9658 _json["pendingParticipantId"] = pendingParticipantId; |
| 9647 } | 9659 } |
| 9648 if (results != null) { | 9660 if (results != null) { |
| 9649 _json["results"] = results.map((value) => (value).toJson()).toList(); | 9661 _json["results"] = results.map((value) => (value).toJson()).toList(); |
| 9650 } | 9662 } |
| 9651 return _json; | 9663 return _json; |
| 9652 } | 9664 } |
| 9653 } | 9665 } |
| 9654 | 9666 |
| 9655 | 9667 |
| OLD | NEW |