|
|
|
@ -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,19 +202,27 @@ namespace FLocal.Common.dataobjects { |
|
|
|
|
), |
|
|
|
|
diapasone, |
|
|
|
|
new JoinSpec[0], |
|
|
|
|
new SortSpec[] { |
|
|
|
|
new SortSpec( |
|
|
|
|
Thread.TableSpec.instance.getColumnSpec(Thread.TableSpec.FIELD_ISANNOUNCEMENT), |
|
|
|
|
false |
|
|
|
|
), |
|
|
|
|
new SortSpec( |
|
|
|
|
Thread.TableSpec.instance.getColumnSpec(Thread.TableSpec.FIELD_LASTPOSTDATE), |
|
|
|
|
true |
|
|
|
|
), |
|
|
|
|
} |
|
|
|
|
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_LASTPOSTID), |
|
|
|
|
true |
|
|
|
|
), |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|