getNoticeList method

Future<List<NoticeModel>> getNoticeList({
  1. required String convId,
  2. int? offset,
  3. int? limit,
})

获取通知列表

Implementation

Future<List<NoticeModel>> getNoticeList({
  required String convId,
  int? offset,
  int? limit,
}) {
  return _sdkManager.findAll(
    query: _sdkManager.noticeModels().buildQuery<NoticeModel>(
          filter: FilterGroup.and([
            FilterCondition.equalTo(
              property: "convId",
              value: convId,
            ),
            const FilterCondition.equalTo(
              property: "deleted",
              value: false,
            ),
          ]),
          sortBy: [
            const SortProperty(
              property: "createTime",
              sort: Sort.desc,
            ),
          ],
          offset: offset,
          limit: limit,
        ),
  );
}