예제 #1
0
 public PVEManager(RESTClient client, DateTime reset,
                   DateTime limit, List <Member> Members, string ID, byte mode)
 {
     rClient          = client;
     Reset_time       = reset;
     Date_limit       = limit;
     Member_list      = Members;
     Actual_member_ID = ID;
     Activity_mode    = mode;
 }
예제 #2
0
        public DestinyCharacter(RESTClient client, string characterID, string playerID, string playerType)
        {
            baselevel = ushort.MinValue;
            light     = baselevel;
            race      = byte.MinValue;
            gender    = race;
            c_class   = race;
            ID        = characterID;

            client.URL = "https://www.bungie.net/Platform/Destiny2/" + playerType + "/Profile/" + playerID + "/Character/" + ID + "/?components=200";
            outPut     = client.makeRequest();
            ParseCharacter();

            string Race = string.Empty;

            if (race == 0)
            {
                Race = "Humano";
            }
            else if (race == 1)
            {
                Race = "Insomne";
            }
            else if (race == 2)
            {
                Race = "Exo";
            }
            else
            {
                Race = "Desconocido";
            }
            string Class = string.Empty;

            if (c_class == 0)
            {
                Class = "Titan";
            }
            else if (c_class == 1)
            {
                Class = "Cazador";
            }
            else if (c_class == 2)
            {
                Class = "Hechicero";
            }
            else
            {
                Class = "Desconocido";
            }
            string Gender = string.Empty;

            if (gender == 0)
            {
                Gender = "Hombre";
            }
            else if (gender == 1)
            {
                Gender = "Mujer";
            }
            else
            {
                Gender = "Desconocido";
            }

            outPut = "Personaje: " + Environment.NewLine +
                     Environment.NewLine + Class + " " + Race + Environment.NewLine +
                     Gender + Environment.NewLine + Environment.NewLine +
                     "Nivel: " + baselevel + Environment.NewLine +
                     "Potencia: " + light + Environment.NewLine +
                     Environment.NewLine + "Ultima vez jugado: " + LastPlayed;
        }
예제 #3
0
 public CrucibleManager(RESTClient client, DateTime reset,
                        DateTime limit, List <Member> Members, string ID, byte mode) :
     base(client, reset, limit, Members, ID, mode)
 {
 }
예제 #4
0
 public OtherPVE(RESTClient client, DateTime reset,
                 DateTime limit, List <Member> Members, string ID, byte mode) :
     base(client, reset, limit, Members, ID, mode)
 {
 }