repo.or.cz
/
smsapi-csharp.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Extract response exceptions
[smsapi-csharp.git]
/
smsapi
/
Api
/
Response
/
HttpCodesGroupHelper.cs
blob
1cde0945a80fa8530db7a1566647bb269c0b00a4
1
using
System
.
Net
;
2
3
namespace
SMSApi
.
Api
.
Response
;
4
5
public static class
HttpCodesGroupHelper
6
{
7
public static bool
IsSuccessful
(
this
HttpStatusCode statusCode
)
8
{
9
var
intRepresentation
= (
int
)
statusCode
;
10
11
return
intRepresentation
is
>=
200
and
<=
299
;
12
}
13
}