Пример #1
0
        internal static NetworkCdmaSysInfo ConvertCdmaStruct(NetworkCdmaSysStruct cdmaStruct)
        {
            NetworkCdmaSysInfo cdmaInfo = new NetworkCdmaSysInfo();

            cdmaInfo.Car              = cdmaStruct.Carrier;
            cdmaInfo.BaseStnId        = cdmaStruct.BaseStnId;
            cdmaInfo.BaseStnLatitude  = cdmaStruct.BaseStnLatitude;
            cdmaInfo.BaseStnLongitude = cdmaStruct.BaseStnLongitude;
            cdmaInfo.NwId             = cdmaStruct.NwId;
            cdmaInfo.Offset           = cdmaStruct.Offset;
            cdmaInfo.RegZone          = cdmaStruct.RegZone;
            cdmaInfo.SysId            = cdmaStruct.SysId;
            return(cdmaInfo);
        }
Пример #2
0
        internal static NetworkServing ConvertNetworkServingStruct(NetworkServingStruct servStruct)
        {
            NetworkServing       servingInfo = new NetworkServing();
            NetworkAreaStruct    areaStruct  = servStruct.Area;
            NetworkCdmaSysStruct cdmaStruct  = areaStruct.Cdma;
            NetworkCdmaSysInfo   cdmaInfo    = ConvertCdmaStruct(cdmaStruct);

            NetworkAreaInfo areaInfo = new NetworkAreaInfo();

            areaInfo.Code = areaStruct.Lac;
            areaInfo.Cdma = cdmaInfo;

            servingInfo.NwPlmn = servStruct.Plmn;
            servingInfo.Type   = servStruct.SysType;
            servingInfo.Area   = areaInfo;

            return(servingInfo);
        }