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)); }
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>()); }