Esempio n. 1
0
        public Fivem(string Code)
        {
            EpHTTP http = new EpHTTP();

            this.RServer = http.GetServer(Code);
            if (this.RServer != null)
            {
                this.RServer.isOnline = true;
            }
            else
            {
                this.RServer = new RServer()
                {
                    isOnline = false
                };
            }
        }
Esempio n. 2
0
        public Fivem(string ipport)
        {
            EpHTTP http = new EpHTTP(ipport);

            Info        Info    = http.GetInfo();
            List <User> Players = http.GetPlayers();

            RServer = new RServer()
            {
                isOnline = false
            };

            if (Info != null && Players != null)
            {
                RServer = new RServer()
                {
                    isOnline = true, Players = Players, Info = Info
                };
            }
        }