Ejemplo n.º 1
0
        /// <summary>
        ///     Gets the station information.
        /// </summary>
        /// <param name="callId">The call identifier.</param>
        /// <returns>StationItem.</returns>
        public StationItem GetStationInfo(string callId)
        {
            try
            {
                callId = callId.ToUpper();
                StationItem si = null;
                logger.Info("Saving {0}.", callId);
                CallSign res = QrzDotComPortal
                               .Proxy
                               .GetCallSign(callId);
                si = res != null?res.ToStationItem() : CreateUnknownStationItem(callId);

                return(Provider <StationItem> .Save(si));
            }
            catch (Exception exception)
            {
                logger.Error(exception.GetCombinedMessages());
                return(null);
            }
        }