protected override void PopulateSquadMsgsReceived(object response) { SquadNotifsResponse squadNotifsResponse = (SquadNotifsResponse)response; List <object> notifs = squadNotifsResponse.Notifs; if (notifs != null) { int i = 0; int count = notifs.Count; while (i < count) { SquadMsg squadMsg = SquadMsgUtils.GenerateMessageFromNotifObject(notifs[i]); if (squadMsg != null) { this.list.Add(squadMsg); if (squadMsg.TimeSent > this.request.Since) { this.request.Since = squadMsg.TimeSent; } } i++; } } }
private void OnGetNotifs(SquadNotifsResponse response, object cookie) { base.OnPollFinished(response); }