Ejemplo n.º 1
0
        public UserAccountProxyTest()
        {
            UserProperties userProperties = new UserProperties();

            userProperties.SetProperty(UserAccountProperties.FirstTimeUser, true);
            userProperties.SetProperty(UserAccountProperties.HasCompletedShoppingTutorial, false);

            mTestUserAccountProxy = new UserAccountProxy(userProperties);
        }
Ejemplo n.º 2
0
 public bool SetAccountProperty <T>(UserAccountProperties userAccountProperty, T value)
 {
     try
     {
         mUserProperties.SetProperty(userAccountProperty, value);
         SaveUserProperties();
         return(true);
     }
     catch (System.Exception)
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
        private static void SetDefaultUserProperties(ref UserProperties userProperties)
        {
            if (!userProperties.TryGetProperty(UserAccountProperties.FirstTimeUser))
            {
                userProperties.SetProperty(UserAccountProperties.FirstTimeUser, true);
            }

            if (!userProperties.TryGetProperty(UserAccountProperties.HasCompletedShoppingTutorial))
            {
                userProperties.SetProperty(UserAccountProperties.HasCompletedShoppingTutorial, false);
            }

            if (!userProperties.TryGetProperty(UserAccountProperties.HasPlayedFashionMiniGame))
            {
                userProperties.SetProperty(UserAccountProperties.HasPlayedFashionMiniGame, false);
            }

            if (!userProperties.TryGetProperty(UserAccountProperties.HasCompletedOpenMapTutorial))
            {
                userProperties.SetProperty(UserAccountProperties.HasCompletedOpenMapTutorial, false);
            }

            if (!userProperties.TryGetProperty(UserAccountProperties.HasCompletedDecorateTutorial))
            {
                userProperties.SetProperty(UserAccountProperties.HasCompletedDecorateTutorial, false);
            }

            if (!userProperties.TryGetProperty(UserAccountProperties.HasCompletedGetCashTutorial))
            {
                userProperties.SetProperty(UserAccountProperties.HasCompletedGetCashTutorial, false);
            }

            if (!userProperties.TryGetProperty(UserAccountProperties.HasCompleteMoveTutorial))
            {
                userProperties.SetProperty(UserAccountProperties.HasCompleteMoveTutorial, false);
            }



            if (!userProperties.TryGetProperty(UserAccountProperties.LastRoomId))
            {
                userProperties.SetProperty(UserAccountProperties.LastRoomId, GetRandomDefaultPublicRoomId());
            }
        }
Ejemplo n.º 4
0
 public UserPropertiesTest()
 {
     mTestObjectProperties.SetProperty(UserAccountProperties.FirstTimeUser, true);
     mTestObjectProperties.SetProperty(UserAccountProperties.HasCompletedShoppingTutorial, true);
 }