Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/ProcessWatchImpl/Croissant/LiveProgram.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (show annotations) (download)
Tue Dec 15 16:20:54 2009 UTC (14 years, 3 months ago) by netseed
File size: 998 byte(s)


1 using System;
2
3 namespace Toast
4 {
5 public class LiveProgram
6 {
7 private const string UriFormatString = "http://live.nicovideo.jp/watch/lv{0}";
8
9 public LiveProgram(uint id, string communityName, string title, string description)
10 {
11 if (title == null)
12 {
13 throw new ArgumentNullException("title");
14 }
15
16 if (description == null)
17 {
18 throw new ArgumentNullException("description");
19 }
20
21 if (communityName == null)
22 {
23 throw new ArgumentNullException("communityName");
24 }
25
26 Id = id;
27 Title = title;
28 Description = description;
29 CommunityName = communityName;
30 }
31
32 public string ProgramUrl
33 {
34 get
35 {
36 return string.Format(UriFormatString, Id);
37 }
38 }
39
40 public uint Id
41 {
42 get;
43 private set;
44 }
45
46 public string Title
47 {
48 get;
49 private set;
50 }
51
52 public string Description
53 {
54 get;
55 private set;
56 }
57
58 public string CommunityName
59 {
60 get;
61 private set;
62 }
63 }
64 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26