public void ChangeUserProfileProperties()
        {
            var userProfileServiceAPI = ServerComponents.GetComponent <IUserProfileServiceAPI>().AssertNotNull();
            var parameters            = new ChangeUserProfilePropertiesRequestParameters(userId, clientPeerProvider.PeerId, serverType, ConnectionStatus.Connected);

            userProfileServiceAPI.ChangeUserProfileProperties(parameters);
        }
        private void ChangeUserToOfflineStatus()
        {
            if (isManuallyDisconnected || !isUserProfileChanged)
            {
                return;
            }

            var userProfileServiceAPI = ServerComponents.GetComponent <IUserProfileServiceAPI>().AssertNotNull();
            var parameters            = new ChangeUserProfilePropertiesRequestParameters(userId, ConnectionStatus.Disconnected);

            userProfileServiceAPI.ChangeUserProfileProperties(parameters);

            RemoveAuthorizationForUser();
        }
示例#3
0
 public void ChangeUserProfileProperties(ChangeUserProfilePropertiesRequestParameters parameters)
 {
     outboundServerPeerLogic?.SendOperation((byte)UserProfileOperations.ChangeUserProfileProperties, parameters);
 }