コード例 #1
0
ファイル: ActionEvent.cs プロジェクト: Elbunda7/ZalDomain_old
        internal static async Task <ChangedActiveRecords <ActionEvent> > GetChangedAsync(int userRank, DateTime lastCheck, int currentYear, int count)
        {
            var requestModel = new ActionChangesRequestModel {
                Rank      = userRank,
                LastCheck = lastCheck,
                Year      = currentYear,
                Count     = count
            };
            var rawChanges = await Gateway.GetAllChangedAsync(requestModel, Zal.Session.Token);

            var items = rawChanges.Changed.Select(x => new ActionEvent(x));

            return(new ChangedActiveRecords <ActionEvent>(rawChanges, items));
        }
コード例 #2
0
        public async Task <FullChangesRespondModel <ActionModel> > GetAllChangedAsync(ActionChangesRequestModel model, string token)
        {
            var respond = await SendRequestForNullable <FullChangesRespondModel <ActionModel> >(API.METHOD.GET_CHANGED, model, token);

            return(respond ?? new FullChangesRespondModel <ActionModel>());
        }