public void HeartSelected() { if (!m_user.IsLoggedIn()) { m_loginFlow.OpenCloseSwitch(); return; } m_heartOn = !m_heartOn; m_numLikes = m_heartOn ? m_numLikes + 1 : m_numLikes - 1; m_heartObject.GetComponentInChildren <SelectedButton>().ButtonSelected(m_heartOn); m_likesObject.GetComponentInChildren <Text>().text = m_numLikes.ToString(); m_posts.LikeOrUnlikePost(m_imageIdentifier, m_heartOn); }
public void OpenUserProfile() { if (m_user.IsLoggedIn()) { m_userId = m_user.m_id; m_handle = m_user.m_handle; m_appDirector.RequestProfileState(); OpenProfileInternal(); } else { m_loginFlow.OpenCloseSwitch(); } }
public void OptionsSelected() { m_keyboard.AcceptText(); if (!m_user.IsLoggedIn()) { Close(); m_loginFlow.OpenCloseSwitch(); return; } if (m_currImageSphere.IsLoggedUserImage()) { SetImageFlowPage(5); } else { SetImageFlowPage(6); } }
public void FollowSelected(int userResultItemIndex) { if (!m_user.IsLoggedIn()) { CloseListUsers(); m_loginFlow.OpenCloseSwitch(); return; } int actualResultIndex = m_currResultIndex + userResultItemIndex; m_userResults[actualResultIndex].followedByMe = !m_userResults[actualResultIndex].followedByMe; m_displayItems[userResultItemIndex].GetComponentInChildren <FollowButton>().FollowOnOffSwitch(m_userResults[actualResultIndex].followedByMe); FollowOrUnfollowUser(m_userResults[actualResultIndex].userId, m_userResults[actualResultIndex].followedByMe); }
public void OpenCloseSwitch() { if (!m_optionsOpen) { if (!m_user.IsLoggedIn()) { m_loginFlow.OpenCloseSwitch(); return; } OpenOptions(); } else { CloseOptions(); } }
public void RequestFollowingState() { if (!m_user.IsLoggedIn()) { m_loginFlow.OpenCloseSwitch(); return; } if (Debug.isDebugBuild) { Debug.Log("------- VREEL: RequestFollowingState() called"); } if (m_appState != AppState.kFollowing) { SetFollowingState(); } }