added cpsActiveFlag and cgsActiveFlag

This commit is contained in:
Jonathan Lamothe 2020-02-13 23:18:53 -05:00
parent 28b1fa0e06
commit 7e409fdbd4

View File

@ -89,12 +89,14 @@ module Mtlstats.Types (
cpsName, cpsName,
cpsPosition, cpsPosition,
cpsRookieFlag, cpsRookieFlag,
cpsActiveFlag,
cpsSuccessCallback, cpsSuccessCallback,
cpsFailureCallback, cpsFailureCallback,
-- ** CreateGoalieState Lenses -- ** CreateGoalieState Lenses
cgsNumber, cgsNumber,
cgsName, cgsName,
cgsRookieFlag, cgsRookieFlag,
cgsActiveFlag,
cgsSuccessCallback, cgsSuccessCallback,
cgsFailureCallback, cgsFailureCallback,
-- ** EditPlayerState Lenses -- ** EditPlayerState Lenses
@ -332,6 +334,8 @@ data CreatePlayerState = CreatePlayerState
-- ^ The player's position -- ^ The player's position
, _cpsRookieFlag :: Maybe Bool , _cpsRookieFlag :: Maybe Bool
-- ^ Indicates whether or not the player is a rookie -- ^ Indicates whether or not the player is a rookie
, _cpsActiveFlag :: Maybe Bool
-- ^ Indicates whether or not the plauer is active
, _cpsSuccessCallback :: Action () , _cpsSuccessCallback :: Action ()
-- ^ The function to call on success -- ^ The function to call on success
, _cpsFailureCallback :: Action () , _cpsFailureCallback :: Action ()
@ -346,6 +350,8 @@ data CreateGoalieState = CreateGoalieState
-- ^ The goalie's name -- ^ The goalie's name
, _cgsRookieFlag :: Maybe Bool , _cgsRookieFlag :: Maybe Bool
-- ^ Indicates whether or not the goalie is a rookie -- ^ Indicates whether or not the goalie is a rookie
, _cgsActiveFlag :: Maybe Bool
-- ^ Indicates whether or not the goalie is active
, _cgsSuccessCallback :: Action () , _cgsSuccessCallback :: Action ()
-- ^ The function to call on success -- ^ The function to call on success
, _cgsFailureCallback :: Action () , _cgsFailureCallback :: Action ()
@ -814,6 +820,7 @@ newCreatePlayerState = CreatePlayerState
, _cpsName = "" , _cpsName = ""
, _cpsPosition = "" , _cpsPosition = ""
, _cpsRookieFlag = Nothing , _cpsRookieFlag = Nothing
, _cpsActiveFlag = Nothing
, _cpsSuccessCallback = return () , _cpsSuccessCallback = return ()
, _cpsFailureCallback = return () , _cpsFailureCallback = return ()
} }
@ -824,6 +831,7 @@ newCreateGoalieState = CreateGoalieState
{ _cgsNumber = Nothing { _cgsNumber = Nothing
, _cgsName = "" , _cgsName = ""
, _cgsRookieFlag = Nothing , _cgsRookieFlag = Nothing
, _cgsActiveFlag = Nothing
, _cgsSuccessCallback = return () , _cgsSuccessCallback = return ()
, _cgsFailureCallback = return () , _cgsFailureCallback = return ()
} }