/** * Notifies server that profile has been updated. */ void updateProfile() { SharedDataBuffer serializedProfile = getSerializedProfile(); if ((serializedProfile.first.get() && serializedProfile.second > 0) || context_.getStatus().isProfileResyncNeeded()) { transport_->sync(); } }
/** * Updates profile. Call this method when you finish to update your profile. */ void updateProfile() { if (profileListener_) { profileListener_->onProfileUpdated(getSerializedProfile()); } }