Example #1
0
        public static BaseRegion GetRegion(String requestedRegion)
        {
            requestedRegion = requestedRegion.ToUpper();
            BaseRegion toReturn;

            switch (requestedRegion)
            {
            case "BR":
                toReturn = new BaseRegions.BR();
                return(toReturn);

            case "EUW":
                toReturn = new BaseRegions.EUW();
                return(toReturn);

            case "EUNE":
                toReturn = new BaseRegions.EUNE();
                return(toReturn);

            case "KR":
                toReturn = new BaseRegions.KR();
                return(toReturn);

            case "LAN":
                toReturn = new BaseRegions.LAN();
                return(toReturn);

            case "LAS":
                toReturn = new BaseRegions.LAS();
                return(toReturn);

            case "NA":
                toReturn = new BaseRegions.NA();
                return(toReturn);

            case "OCE":
                toReturn = new BaseRegions.OCE();
                return(toReturn);

            case "RU":
                toReturn = new BaseRegions.RU();
                return(toReturn);

            case "TR":
                toReturn = new BaseRegions.TR();
                return(toReturn);

            default:
                return(null);
            }
        }
Example #2
0
 public static BaseRegion GetRegion(String requestedRegion)
 {
     requestedRegion = requestedRegion.ToUpper();
     BaseRegion toReturn;
     switch (requestedRegion)
     {
         case "BR":
             toReturn = new BaseRegions.BR();
             return toReturn;
         case "EUW":
             toReturn = new BaseRegions.EUW();
             return toReturn;
         case "EUNE":
             toReturn = new BaseRegions.EUNE();
             return toReturn;
         case "KR":
             toReturn = new BaseRegions.KR();
             return toReturn;
         case "LAN":
             toReturn = new BaseRegions.LAN();
             return toReturn;
         case "LAS":
             toReturn = new BaseRegions.LAS();
             return toReturn;
         case "NA":
             toReturn = new BaseRegions.NA();
             return toReturn;
         case "OCE":
             toReturn = new BaseRegions.OCE();
             return toReturn;
         case "RU":
             toReturn = new BaseRegions.RU();
             return toReturn;
         case "TR":
             toReturn = new BaseRegions.TR();
             return toReturn;
         default:
             return null;
     }
 }