3 using System.Collections.Generic;
\r
8 class ThreadDescriptionImple : IThreadDescription
\r
14 public string getTitle() { return mTitle; }
\r
15 public string getDatName() { return mDatName; }
\r
16 public IBoard getBoard() { return mBoard; }
\r
18 public void setTitle(string title)
\r
23 public bool Equals(IThreadDescription threadDecl)
\r
25 return (mDatName.Equals(threadDecl.getDatName()) &&
\r
26 mBoard.getName().Equals(threadDecl.getBoard().getName()));
\r
29 public static ThreadDescriptionImple
\r
30 createThreadDescription(IThread thread)
\r
32 ThreadDescriptionImple threadImpl = new ThreadDescriptionImple(
\r
33 thread.getBoard(), thread.getDatName());
\r
34 string title = thread.getTitle();
\r
35 if(title != null && title.Length > 0)
\r
36 threadImpl.setTitle(title);
\r
40 public static ThreadDescriptionImple
\r
41 createThreadDescription(IBoard board, string datName)
\r
43 ThreadDescriptionImple thread = new ThreadDescriptionImple(
\r
49 private ThreadDescriptionImple(IBoard board, string datName)
\r