コード例 #1
0
        public async Task <ActionResult> StationInfoSetSystemAsWaypoint(UniverseStationInfoPageViewModel model)
        {
            AuthDTO auth = GetAuth(_ESIClient);

            _Log.LogDebug(String.Format("Logged in to retrieve Character Info for Character Id: {0}", auth.CharacterId));
            await _ESIClient.UserInterface.SetAutopilotWaypointV2Async(auth, model.SetDestination.AddToBeginning, model.SetDestination.ClearOtherWaypoints, model.SetDestination.DestinationId);

            return(RedirectToAction("StationInfo", new { id = model.SetDestination.DestinationId }));
        }
コード例 #2
0
        public async Task <ActionResult> StationInfoOpenInfoWindowForItemType(UniverseStationInfoPageViewModel model)
        {
            AuthDTO auth = GetAuth(_ESIClient);

            _Log.LogDebug(String.Format("Logged in to retrieve Character Info for Character Id: {0}", auth.CharacterId));
            await _ESIClient.UserInterface.OpenInformationWindowV1Async(auth, model.OpenInfoModel.ItemTypeId);

            return(RedirectToAction("StationInfo", new { id = model.OpenInfoModel.SystemId }));
        }
コード例 #3
0
        public async Task <IActionResult> StationInfo(int id)
        {
            Station_V_Row station = _DBService.GetStation(id);

            var model = new UniverseStationInfoPageViewModel
            {
                Station        = station,
                SetDestination = new UniverseSetDestinationModel(),
                OpenInfoModel  = new UniverseSystemInfoItemTypeOpenInfoModel()
            };

            return(View(model));
        }