Browse Subversion Repository
Contents of /branches/ProcessWatchImpl/Muffin/RequestResponse.cs
Parent Directory
| Revision Log
Revision 44 -
( show annotations)
( download)
Tue Dec 15 16:20:54 2009 UTC
(14 years, 3 months ago)
by netseed
File size: 697 byte(s)
| 1 |
using System; |
| 2 |
|
| 3 |
namespace Toast.NicoNico |
| 4 |
{ |
| 5 |
internal class RequestResponse |
| 6 |
{ |
| 7 |
public RequestResponse(string address, string port, string threadId) |
| 8 |
{ |
| 9 |
if (address == null) |
| 10 |
{ |
| 11 |
throw new ArgumentNullException("address"); |
| 12 |
} |
| 13 |
|
| 14 |
if (port == null) |
| 15 |
{ |
| 16 |
throw new ArgumentNullException("port"); |
| 17 |
} |
| 18 |
|
| 19 |
if (threadId == null) |
| 20 |
{ |
| 21 |
throw new ArgumentNullException("threadId"); |
| 22 |
} |
| 23 |
|
| 24 |
|
| 25 |
Address = address; |
| 26 |
Port = int.Parse(port); |
| 27 |
ThreadId = threadId; |
| 28 |
} |
| 29 |
|
| 30 |
public string Address |
| 31 |
{ |
| 32 |
get; |
| 33 |
private set; |
| 34 |
} |
| 35 |
|
| 36 |
public int Port |
| 37 |
{ |
| 38 |
get; |
| 39 |
private set; |
| 40 |
} |
| 41 |
|
| 42 |
public string ThreadId |
| 43 |
{ |
| 44 |
get; |
| 45 |
private set; |
| 46 |
} |
| 47 |
} |
| 48 |
} |
|