apiGetGamePeriodResult static method
dynamic
apiGetGamePeriodResult(
- dynamic dict,
- dynamic successCallBack,
- dynamic errorCallBack
根据奖期获取开奖结果-直播间
Implementation
static apiGetGamePeriodResult(dict, successCallBack, errorCallBack) {
DioManager().request<dynamic>(RequestType.POST, RequestApi.apiGetGamePeriodResult, params: dict, onSuccess: (data) {
// onSuccess
GameLotteryRecordModel recordModel = GameLotteryRecordModel.fromJson(data);
successCallBack(recordModel);
}, onError: (error) {
// when called , already show toast, then do another things
errorCallBack(error);
}, onStart: () {
// onStart
}, onFinish: () {
// onFinish
}, errorToast: false);
}