Пример #1
0
        public bool UploadNextUserCorrespond(MessShortCorrespondence newMessShortCorrespondence, MessCorrespondence newMessCorrespondence)
        {
            try
            {
                if (newMessShortCorrespondence == null)
                {
                    throw new Exception();
                }

                try
                {
                    foreach (var val in newMessShortCorrespondence.MessList)
                    {
                        if (!newMessCorrespondence.UserIsInList(val.mUserID))
                        {
                            RefreshUserCorrespondence(val.mUserID, true, false, newMessCorrespondence); // для каждого пользователя грузим цепочку
                            return true;
                        }
                    }
                }
                catch (VKException)
                {
                    throw;
                }
                catch (OutOfMemoryException)
                {
                    throw;
                }
            }
            catch (Exception)
            {
                // если нет в кэше то выходим

                return false;
            }

            return false;
        }