|
|
|
@ -191,7 +191,7 @@ namespace FLocal.Common.dataobjects { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, UserContext context) { |
|
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, UserContext context, SortSpec[] sortBy) { |
|
|
|
|
return Thread.LoadByIds( |
|
|
|
|
from stringId in Config.instance.mainConnection.LoadIdsByConditions( |
|
|
|
|
Thread.TableSpec.instance, |
|
|
|
@ -202,17 +202,25 @@ namespace FLocal.Common.dataobjects { |
|
|
|
|
), |
|
|
|
|
diapasone, |
|
|
|
|
new JoinSpec[0], |
|
|
|
|
sortBy |
|
|
|
|
) select int.Parse(stringId) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public IEnumerable<Thread> getThreads(Diapasone diapasone, UserContext context) { |
|
|
|
|
return this.getThreads( |
|
|
|
|
diapasone, |
|
|
|
|
context, |
|
|
|
|
new SortSpec[] { |
|
|
|
|
new SortSpec( |
|
|
|
|
Thread.TableSpec.instance.getColumnSpec(Thread.TableSpec.FIELD_ISANNOUNCEMENT), |
|
|
|
|
false |
|
|
|
|
), |
|
|
|
|
new SortSpec( |
|
|
|
|
Thread.TableSpec.instance.getColumnSpec(Thread.TableSpec.FIELD_LASTPOSTDATE), |
|
|
|
|
Thread.TableSpec.instance.getColumnSpec(Thread.TableSpec.FIELD_LASTPOSTID), |
|
|
|
|
true |
|
|
|
|
), |
|
|
|
|
} |
|
|
|
|
) select int.Parse(stringId) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|