C# Class Faker.Phone

Static phone class
Exibir arquivo Open project: AdmiringWorm/Faker.NET.Portable

Public Methods

Method Description
CellNumber ( ) : string

Gets a random cell phone number.

Extension ( ) : string

Generates a random extension with a length of 4. (US based)

Extension ( int length ) : string

Generates a random extension with the specified length. (US based)

Number ( ) : string

Generates a random phone number with a random pattern.

Number ( string pattern ) : string

Generates a random phone number from the specified pattern.

SubscriberNumber ( ) : string

Generates a random Subscriber number. (US Based).

Method Details

CellNumber() public static method

Gets a random cell phone number.
public static CellNumber ( ) : string
return string

Extension() public static method

Generates a random extension with a length of 4. (US based)
public static Extension ( ) : string
return string

Extension() public static method

Generates a random extension with the specified length. (US based)
public static Extension ( int length ) : string
length int The extension length
return string

Number() public static method

Generates a random phone number with a random pattern.
public static Number ( ) : string
return string

Number() public static method

Generates a random phone number from the specified pattern.
public static Number ( string pattern ) : string
pattern string The pattern to generate a phone number from.
return string

SubscriberNumber() public static method

Generates a random Subscriber number. (US Based).
public static SubscriberNumber ( ) : string
return string