示例#1
0
        UpdateFriendsTableAsync(FriendsTable objFriendsTable)
        {
            var ExistingFriendsTable =
                _context.FriendsTable
                .Where(x => x.Id == objFriendsTable.Id)
                .FirstOrDefault();

            if (ExistingFriendsTable != null)
            {
                ExistingFriendsTable.FriendName =
                    objFriendsTable.FriendName;
                ExistingFriendsTable.UserName =
                    objFriendsTable.UserName;
                ExistingFriendsTable.FriendId =
                    objFriendsTable.FriendId;
                ExistingFriendsTable.UserId =
                    objFriendsTable.UserId;

                _context.SaveChanges();
            }
            else
            {
                return(Task.FromResult(false));
            }
            return(Task.FromResult(true));
        }
        private void SetFriendsTile()
        {
            var TileList = new List <ITableScrollItemModel>();

            TileList.Add(
                new FriendsTileViewModel
            {
                Selfie = _ViewController._MasterRepo.DataSource.DefaultBeneficiary.UserPicture
            });
            foreach (var contact in _ViewController._MasterRepo.DataSource.TrustedSources)
            {
                TileList.Add(
                    new FriendsTileViewModel
                {
                    Selfie = contact.UserPicture
                });
            }
            FriendsTable.SetTableWithItems(TileList);
        }
示例#3
0
        static void Main(string[] args)
        {
            Console.Title = "Point Blank Auth Server";
            Logger.Info("===============================================================================");
            Logger.Info("Point Blank Auth Server");
            Logger.Info("Develop OZ-Network.RU - 2016");
            Logger.Info("===============================================================================");
            ConfigModel.Load();
            Logger.Warn("Load XML=======================================================================");
            TutorialParser.Load();
            GameServersParser.Load();
            Logger.Warn("Load DataBase==================================================================");
            Connector.Connect();
            ClansTable.LoadTable();
            AccountTable.LoadTable();
            ItemsTable.LoadTable();
            PlayersTable.LoadTable();
            QuestsTable.LoadTable();
            PlayersConfigTable.LoadTable();
            PlayersStatsTable.LoadTable();
            TitlesTable.LoadTable();
            PlayerEquipTable.LoadTable();
            PlayersMedalsTable.LoadTable();
            FriendsTable.LoadTable();
            Logger.Warn("Load Protection================================================================");
            ProtectionService.Initialization();
            Logger.Warn("Load Network===================================================================");
            NetworkS.Load();

            int Mask = 0;

            Mask |= 1 << (int)Maps.StageId.TD_PORTAKABA;
            Mask |= 1 << (int)Maps.StageId.TD_REDROCK;

            Console.WriteLine(Mask);
        }
示例#4
0
 CreateFriendsTableAsync(FriendsTable objFriendsTable)
 {
     _context.FriendsTable.Add(objFriendsTable);
     _context.SaveChanges();
     return(Task.FromResult(objFriendsTable));
 }