Ejemplo n.º 1
0
 public static string GetDropType(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetPairAssignment().DropType;
         case FacilityType.FiberFacility: return args.GetFiberPlantData().DropType;
         default: return string.Empty;
     }
 }
Ejemplo n.º 2
0
 public static string GetCustomerPremisePhoneNumber(FacilityDataRetrievalArgument args)
 {
     switch (args.GetFacilityType())
     {
         case FacilityType.CopperFacility: return args.GetPairAssignment().LineCardTN;
         case FacilityType.FiberFacility: return args.GetTelephoneNumber();
         default: return string.Empty;
     }
 }
Ejemplo n.º 3
0
 public static string GetDslamHsiPort(FacilityDataRetrievalArgument args)
 {
     return args.GetPairAssignment().HsiPort;
 }
Ejemplo n.º 4
0
        public static string GetVpiVci(FacilityDataRetrievalArgument args)
        {
            var assignment = args.GetPairAssignment();

            switch (args.GetFacilityType())
            {
                case FacilityType.CopperFacility: return string.Format("{0}/{1}", assignment.VPI, assignment.VCI);
                case FacilityType.FiberFacility:
                {
                    var portAssignment = new OntPortAssignmentsDto().Assignment;
                    if (args.GetFiberPlantData().OntPortAssignments != null)
                    {
                        portAssignment = (args.GetFiberPlantData().OntPortAssignments.FirstOrDefault()
                                           ?? new OntPortAssignmentsDto()).Assignment;
                    }
                    return GetUnderscoreSeparatedValueByIndex(portAssignment, 1);
                }
                default: return string.Empty;
            }
        }
Ejemplo n.º 5
0
 public static string GetCopperTerminalDropType(FacilityDataRetrievalArgument args)
 {
     return args.GetPairAssignment().DropType;
 }