@@ -799,6 +799,7 @@ data Player = Player'
799 , _pTitle :: !(Maybe Text)
799 , _pTitle :: !(Maybe Text)
800 , _pBannerURLPortrait :: !(Maybe Text)
800 , _pBannerURLPortrait :: !(Maybe Text)
801 , _pPlayerId :: !(Maybe Text)
801 , _pPlayerId :: !(Maybe Text)
802+ , _pProFileSettings :: !(Maybe ProFileSettings)
802 } deriving (Eq,Show,Data,Typeable,Generic)
803 } deriving (Eq,Show,Data,Typeable,Generic)
804-- | Creates a value of 'Player' with the minimum fields required to make a request.
805-- | Creates a value of 'Player' with the minimum fields required to make a request.
@@ -826,6 +827,8 @@ data Player = Player'
826-- * 'pBannerURLPortrait'
827-- * 'pBannerURLPortrait'
828-- * 'pPlayerId'
829-- * 'pPlayerId'
831+-- * 'pProFileSettings'
830 :: Player
833 :: Player
@@ -841,6 +844,7 @@ player =
841 , _pTitle = Nothing
844 , _pTitle = Nothing
842 , _pBannerURLPortrait = Nothing
845 , _pBannerURLPortrait = Nothing
843 , _pPlayerId = Nothing
846 , _pPlayerId = Nothing
847+ , _pProFileSettings = Nothing
846-- | The url to the landscape mode player banner image.
850-- | The url to the landscape mode player banner image.
@@ -909,6 +913,13 @@ pPlayerId :: Lens' Player (Maybe Text)
910 = lens _pPlayerId (\ s a -> s{_pPlayerId = a})
914 = lens _pPlayerId (\ s a -> s{_pPlayerId = a})
916+-- | The player\'s profile settings. Controls whether or not the player\'s
917+-- profile is visible to other players.
918+pProFileSettings :: Lens' Player (Maybe ProFileSettings)
920+ = lens _pProFileSettings
921+ (\ s a -> s{_pProFileSettings = a})
912instance FromJSON Player where
923instance FromJSON Player where
913 parseJSON
924 parseJSON
914 = withObject "Player"
925 = withObject "Player"
@@ -924,7 +935,8 @@ instance FromJSON Player where
924 <*> (o .:? "displayName")
935 <*> (o .:? "displayName")
925 <*> (o .:? "title")
936 <*> (o .:? "title")
926 <*> (o .:? "bannerUrlPortrait")
937 <*> (o .:? "bannerUrlPortrait")
927− <*> (o .:? "playerId"))
938+ <*> (o .:? "playerId")
939+ <*> (o .:? "profileSettings"))
929instance ToJSON Player where
941instance ToJSON Player where
930 toJSON Player'{..}
942 toJSON Player'{..}
@@ -940,7 +952,58 @@ instance ToJSON Player where
940 ("displayName" .=) <$> _pDisplayName,
952 ("displayName" .=) <$> _pDisplayName,
941 ("title" .=) <$> _pTitle,
953 ("title" .=) <$> _pTitle,
942 ("bannerUrlPortrait" .=) <$> _pBannerURLPortrait,
954 ("bannerUrlPortrait" .=) <$> _pBannerURLPortrait,
943− ("playerId" .=) <$> _pPlayerId])
955+ ("playerId" .=) <$> _pPlayerId,
956+ ("profileSettings" .=) <$> _pProFileSettings])
958+-- | This is a JSON template for profile settings
960+-- /See:/ 'proFileSettings' smart constructor.
961+data ProFileSettings = ProFileSettings'
962+ { _pfsProFileVisible :: !(Maybe Bool)
964+ } deriving (Eq,Show,Data,Typeable,Generic)
966+-- | Creates a value of 'ProFileSettings' with the minimum fields required to make a request.
968+-- Use one of the following lenses to modify other fields as desired:
970+-- * 'pfsProFileVisible'
977+ { _pfsProFileVisible = Nothing
978+ , _pfsKind = "gamesManagement#profileSettings"
981+-- | The player\'s current profile visibility. This field is visible to both
983+pfsProFileVisible :: Lens' ProFileSettings (Maybe Bool)
985+ = lens _pfsProFileVisible
986+ (\ s a -> s{_pfsProFileVisible = a})
988+-- | Uniquely identifies the type of this resource. Value is always the fixed
989+-- string gamesManagement#profileSettings.
990+pfsKind :: Lens' ProFileSettings Text
991+pfsKind = lens _pfsKind (\ s a -> s{_pfsKind = a})
993+instance FromJSON ProFileSettings where
995+ = withObject "ProFileSettings"
997+ ProFileSettings' <$>
998+ (o .:? "profileVisible") <*>
999+ (o .:? "kind" .!= "gamesManagement#profileSettings"))
1001+instance ToJSON ProFileSettings where
1002+ toJSON ProFileSettings'{..}
1005+ [("profileVisible" .=) <$> _pfsProFileVisible,
1006+ Just ("kind" .= _pfsKind)])
945-- | This is a JSON template for an achievement reset response.
1008-- | This is a JSON template for an achievement reset response.