Beispiel #1
0
        public void Initialization(string token)
        {
            Log.DebugFormat("[Pilot.Initialization] starting for token = {0}", token);

            CrestData = new CrestAuthorization(token);

            dynamic data = CrestData.ObtainingCharacterData();

            Id   = data.CharacterID;
            Name = data.CharacterName;

            LoadLocationInfo();

            LoadCharacterInfo();

            LastTokenUpdate = DateTime.Now;
        }
Beispiel #2
0
        public void Initialization(string token)
        {
            Log.DebugFormat("[Pilot.Initialization] starting for token = {0}", token);

            CrestData = new CrestAuthorization(token, Global.Settings.CCPSSO_AUTH_CLIENT_ID, Global.Settings.CCPSSO_AUTH_CLIENT_SECRET);

            RefreshToken = CrestData.RefreshToken;

            dynamic data = CrestData.ObtainingCharacterData();

            Id   = data.CharacterID;
            Name = data.CharacterName;

            LoadLocationInfo();

            LoadCharacterInfo();

            _lastTokenUpdate = DateTime.Now;
        }