1 // generated by fakerjsgenerator 2 /// 3 module faked.faker_fr_ch; 4 5 import faked.base; 6 7 8 /// 9 class Faker_fr_ch : Faker { 10 @safe: 11 import std.random; 12 import std.array; 13 import std.format; 14 import std.conv : to; 15 16 /// 17 this(int seed) { 18 super(seed); 19 } 20 21 /// 22 override string phoneNumberFormats() { 23 static enum data = [ 24 "0800 ### ###", 25 "0800 ## ## ##", 26 "0## ### ## ##", 27 "0## ### ## ##", 28 "+41 ## ### ## ##", 29 "0900 ### ###", 30 "076 ### ## ##", 31 "079 ### ## ##", 32 "078 ### ## ##", 33 "+4176 ### ## ##", 34 "+4178 ### ## ##", 35 "+4179 ### ## ##", 36 "0041 76 ### ## ##", 37 "0041 78 ### ## ##", 38 "0041 79 ### ## ##" 39 ]; 40 return this.digitBuild(choice(data, this.rnd)); 41 } 42 43 /// 44 override string internetDomainSuffix() { 45 static enum data = [ 46 "com", 47 "net", 48 "biz", 49 "ch", 50 "ch", 51 "ch" 52 ]; 53 return choice(data, this.rnd); 54 } 55 56 /// 57 override string addressCityName() { 58 static enum data = [ 59 "Aarau", 60 "Adliswil", 61 "Aesch", 62 "Affoltern am Albis", 63 "Aigle", 64 "Allschwil", 65 "Altdorf", 66 "Altstätten", 67 "Amriswil", 68 "Appenzell", 69 "Arbon", 70 "Arlesheim", 71 "Arosa", 72 "Arth", 73 "Baar", 74 "Baden", 75 "Bassersdorf", 76 "Bellinzone", 77 "Belp", 78 "Berne", 79 "Berthoud", 80 "Bienne", 81 "Binningen", 82 "Birsfelden", 83 "Brigue-Glis", 84 "Brugg", 85 "Buchs", 86 "Bulle", 87 "Bussigny", 88 "Bâle", 89 "Bülach", 90 "Carouge", 91 "Cham", 92 "Chiasso", 93 "Chêne-Bougeries", 94 "Coire", 95 "Crissier", 96 "Davos", 97 "Delémont", 98 "Dietikon", 99 "Dübendorf", 100 "Ebikon", 101 "Einsiedeln", 102 "Emmen", 103 "Flawil", 104 "Frauenfeld", 105 "Freienbach", 106 "Fribourg", 107 "Genève", 108 "Gland", 109 "Glaris Centre", 110 "Glaris Nord", 111 "Gossau", 112 "Granges", 113 "Herisau", 114 "Hinwil", 115 "Horgen", 116 "Horw", 117 "Illnau-Effretikon", 118 "Interlaken", 119 "Ittigen", 120 "Kloten", 121 "Kreuzlingen", 122 "Kriens", 123 "Köniz", 124 "Küsnacht", 125 "La Chaux-de-Fonds", 126 "La Neuveville", 127 "La Tour-de-Peilz", 128 "Lancy", 129 "Langenthal", 130 "Lausanne", 131 "Le Grand-Saconnex", 132 "Le Locle", 133 "Lenzbourg", 134 "Liestal", 135 "Locarno", 136 "Lucerne", 137 "Lugano", 138 "Lyss", 139 "Martigny", 140 "Meilen", 141 "Mendrisio", 142 "Meyrin", 143 "Monthey", 144 "Montreux", 145 "Morat", 146 "Morges", 147 "Moutier", 148 "Muri bei Bern", 149 "Muttenz", 150 "Männedorf", 151 "Möhlin", 152 "Münchenbuchsee", 153 "Münchenstein", 154 "Münsingen", 155 "Neuchâtel", 156 "Neuhausen am Rheinfall", 157 "Nyon", 158 "Oberwil", 159 "Oftringen", 160 "Olten", 161 "Onex", 162 "Opfikon", 163 "Ostermundigen", 164 "Payerne", 165 "Peseux", 166 "Pfäffikon", 167 "Plan-les-Ouates", 168 "Poliez-Pittet", 169 "Porrentruy", 170 "Pratteln", 171 "Prilly", 172 "Pully", 173 "Rapperswil-Jona", 174 "Regensdorf", 175 "Reinach", 176 "Renens", 177 "Rheinfelden", 178 "Richterswil", 179 "Riehen", 180 "Risch-Rotkreuz", 181 "Romanshorn", 182 "Rorschach", 183 "Rüti", 184 "Saint-Gall", 185 "Saint-Moritz", 186 "Sarnen", 187 "Schaffhouse", 188 "Schlieren", 189 "Schwytz", 190 "Sierre", 191 "Sion", 192 "Soleure", 193 "Spiez", 194 "Spreitenbach", 195 "Stans", 196 "Steffisburg", 197 "Steinhausen", 198 "Stäfa", 199 "Suhr", 200 "Sursee", 201 "Thalwil", 202 "Thoune", 203 "Thônex", 204 "Urdorf", 205 "Uster", 206 "Uzwil", 207 "Vernier", 208 "Versoix", 209 "Vevey", 210 "Veyrier", 211 "Villars-sur-Glâne", 212 "Viège", 213 "Volketswil", 214 "Wallisellen", 215 "Weinfelden", 216 "Wettingen", 217 "Wetzikon", 218 "Wil", 219 "Winterthour", 220 "Wohlen", 221 "Worb", 222 "Wädenswil", 223 "Yverdon-les-Bains", 224 "Zermatt", 225 "Zofingue", 226 "Zollikofen", 227 "Zollikon", 228 "Zoug", 229 "Zuchwil", 230 "Zurich", 231 "Écublens" 232 ]; 233 return choice(data, this.rnd); 234 } 235 236 /// 237 override string addressState() { 238 static enum data = [ 239 "Argovie", 240 "Appenzell Rhodes-Intérieures", 241 "Appenzell Rhodes-Extérieures", 242 "Bâle-Ville", 243 "Bâle-Campagne", 244 "Berne", 245 "Fribourg", 246 "Genève", 247 "Glaris", 248 "Grisons", 249 "Jura", 250 "Lucerne", 251 "Neuchâtel", 252 "Nidwald", 253 "Obwald", 254 "Schaffhouse", 255 "Schwyt", 256 "Soleure", 257 "Saint-Gall", 258 "Thurgovie", 259 "Tessin", 260 "Uri", 261 "Valai", 262 "Vaud", 263 "Zoug", 264 "Zurich" 265 ]; 266 return choice(data, this.rnd); 267 } 268 269 /// 270 override string addressPostcode() { 271 static enum data = [ 272 "1###", 273 "2###", 274 "3###", 275 "4###", 276 "5###", 277 "6###", 278 "7###", 279 "8###", 280 "9###" 281 ]; 282 return this.digitBuild(choice(data, this.rnd)); 283 } 284 285 /// 286 override string addressCity() { 287 return format!"%s"(addressCityName()); 288 } 289 290 /// 291 override string addressDefaultCountry() { 292 static enum data = [ 293 "Suisse" 294 ]; 295 return choice(data, this.rnd); 296 } 297 298 /// 299 override string addressCountryCode() { 300 static enum data = [ 301 "CH" 302 ]; 303 return choice(data, this.rnd); 304 } 305 306 }