C# Class SipSharp.StatusCodeHelper

Helper to check kind of status code.
Show file Open project: jgauffin/SipSharp

Public Methods

Method Description
Is1xx ( IResponse msg ) : bool

Is is a 1xx message?

Is1xx ( StatusCode code ) : bool

Is is a 1xx message?

Is2xx ( IResponse msg ) : bool
Is2xx ( StatusCode code ) : bool
Is3456xx ( IResponse msg ) : bool

Check if it's either a 3xx, 4xx, 5xx or 6xx response

Is4xx ( IResponse response ) : bool
IsRedirected ( IResponse response ) : bool

Method Details

Is1xx() public static method

Is is a 1xx message?
public static Is1xx ( IResponse msg ) : bool
msg IResponse Response to check
return bool

Is1xx() public static method

Is is a 1xx message?
public static Is1xx ( StatusCode code ) : bool
code StatusCode StatusCode to check
return bool

Is2xx() public static method

public static Is2xx ( IResponse msg ) : bool
msg IResponse
return bool

Is2xx() public static method

public static Is2xx ( StatusCode code ) : bool
code StatusCode
return bool

Is3456xx() public static method

Check if it's either a 3xx, 4xx, 5xx or 6xx response
public static Is3456xx ( IResponse msg ) : bool
msg IResponse
return bool

Is4xx() public static method

public static Is4xx ( IResponse response ) : bool
response IResponse
return bool

IsRedirected() public static method

public static IsRedirected ( IResponse response ) : bool
response IResponse
return bool