isSameUserSendSameGift method

bool isSameUserSendSameGift(
  1. ImGift preGift,
  2. ImGift nextGift
)

是否相同用户发送的相同礼物 preGift 上一个的礼物 nextGift 下一个的礼物

Implementation

bool isSameUserSendSameGift(ImGift preGift, ImGift nextGift) {
  return (preGift.userId == nextGift.userId) && (preGift.giftId == nextGift.giftId);
}