public byte[] ExportBZip2Bytes(string owner) { PoeItemsByOwner pibo = new PoeItemsByOwner(); pibo.Owner = owner; pibo.ListVersion = OwnerItemsListUpdateTime[owner]; pibo.Items = ItemsByOwner[owner]; pibo.League = LeagueIndex; return(Serializer <PoeItemsByOwner> .SerializeToBytesBZip2(pibo)); }
public void ExportBZip2File(string owner, string fileName) { PoeItemsByOwner pibo = new PoeItemsByOwner(); pibo.Owner = owner; pibo.ListVersion = OwnerItemsListUpdateTime[owner]; pibo.Items = ItemsByOwner[owner]; pibo.League = LeagueIndex; Serializer <PoeItemsByOwner> .SerializeToFileBZip2(pibo, fileName); }