// Token: 0x060050C3 RID: 20675 RVA: 0x00181D2C File Offset: 0x0017FF2C private static ProRafflePool RafflePool2PbRafflePool(RafflePool rafflePool) { ProRafflePool proRafflePool = new ProRafflePool { RafflePoolId = rafflePool.PoolId, DrawedCount = rafflePool.DrawedCount, FreeDrawedCount = rafflePool.FreeDrawedCount }; proRafflePool.DrawedItemIds.AddRange(rafflePool.DrawedRaffleIds); return(proRafflePool); }
// Token: 0x060050C4 RID: 20676 RVA: 0x00181D78 File Offset: 0x0017FF78 public static RafflePool PBRafflePoolToRafflePool(ProRafflePool pbRafflePool) { RafflePool rafflePool = new RafflePool(pbRafflePool.RafflePoolId) { DrawedCount = pbRafflePool.DrawedCount, FreeDrawedCount = pbRafflePool.FreeDrawedCount }; pbRafflePool.DrawedItemIds.ForEach(delegate(int e) { rafflePool.DrawedRaffleIds.Add(e); }); return(rafflePool); }
// Token: 0x060050C2 RID: 20674 RVA: 0x00181CC0 File Offset: 0x0017FEC0 public static List <ProRafflePool> RafflePools2PbActivityRafflePools(List <RafflePool> rafflePools) { List <ProRafflePool> list = new List <ProRafflePool>(); foreach (RafflePool rafflePool in rafflePools) { ProRafflePool proRafflePool = RafflePool.RafflePool2PbRafflePool(rafflePool); if (proRafflePool != null) { list.Add(proRafflePool); } } return(list); }