// Token: 0x06001076 RID: 4214 RVA: 0x00014F70 File Offset: 0x00013170
        public static PublicProfileView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            PublicProfileView publicProfileView = new PublicProfileView();

            publicProfileView.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            publicProfileView.Cmid = Int32Proxy.Deserialize(bytes);
            publicProfileView.EmailAddressStatus = EnumProxy <EmailAddressStatus> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                publicProfileView.FacebookId = StringProxy.Deserialize(bytes);
            }
            if ((num & 2) != 0)
            {
                publicProfileView.GroupTag = StringProxy.Deserialize(bytes);
            }
            publicProfileView.IsChatDisabled = BooleanProxy.Deserialize(bytes);
            publicProfileView.LastLoginDate  = DateTimeProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                publicProfileView.Name = StringProxy.Deserialize(bytes);
            }
            return(publicProfileView);
        }
        // Token: 0x06001060 RID: 4192 RVA: 0x00014234 File Offset: 0x00012434
        public static MemberSessionDataView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MemberSessionDataView memberSessionDataView = new MemberSessionDataView();

            memberSessionDataView.AccessLevel = EnumProxy <MemberAccessLevel> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                memberSessionDataView.AuthToken = StringProxy.Deserialize(bytes);
            }
            memberSessionDataView.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 2) != 0)
            {
                memberSessionDataView.ClanTag = StringProxy.Deserialize(bytes);
            }
            memberSessionDataView.Cmid      = Int32Proxy.Deserialize(bytes);
            memberSessionDataView.IsBanned  = BooleanProxy.Deserialize(bytes);
            memberSessionDataView.Level     = Int32Proxy.Deserialize(bytes);
            memberSessionDataView.LoginDate = DateTimeProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                memberSessionDataView.Name = StringProxy.Deserialize(bytes);
            }
            memberSessionDataView.XP = Int32Proxy.Deserialize(bytes);
            return(memberSessionDataView);
        }
Пример #3
0
        // Token: 0x060010DD RID: 4317 RVA: 0x00018200 File Offset: 0x00016400
        public static void Serialize(Stream stream, LiveFeedView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                DateTimeProxy.Serialize(memoryStream, instance.Date);
                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 1;
                }
                Int32Proxy.Serialize(memoryStream, instance.LivedFeedId);
                Int32Proxy.Serialize(memoryStream, instance.Priority);
                if (instance.Url != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Url);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
        // Token: 0x06001073 RID: 4211 RVA: 0x00014D00 File Offset: 0x00012F00
        public static void Serialize(Stream stream, PrivateMessageView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.ContentText != null)
                {
                    StringProxy.Serialize(memoryStream, instance.ContentText);
                }
                else
                {
                    num |= 1;
                }
                DateTimeProxy.Serialize(memoryStream, instance.DateSent);
                Int32Proxy.Serialize(memoryStream, instance.FromCmid);
                if (instance.FromName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.FromName);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.HasAttachment);
                BooleanProxy.Serialize(memoryStream, instance.IsDeletedByReceiver);
                BooleanProxy.Serialize(memoryStream, instance.IsDeletedBySender);
                BooleanProxy.Serialize(memoryStream, instance.IsRead);
                Int32Proxy.Serialize(memoryStream, instance.PrivateMessageId);
                Int32Proxy.Serialize(memoryStream, instance.ToCmid);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #5
0
        // Token: 0x06001065 RID: 4197 RVA: 0x000144C0 File Offset: 0x000126C0
        public static void Serialize(Stream stream, MessageThreadView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                BooleanProxy.Serialize(memoryStream, instance.HasNewMessages);
                if (instance.LastMessagePreview != null)
                {
                    StringProxy.Serialize(memoryStream, instance.LastMessagePreview);
                }
                else
                {
                    num |= 1;
                }
                DateTimeProxy.Serialize(memoryStream, instance.LastUpdate);
                Int32Proxy.Serialize(memoryStream, instance.MessageCount);
                Int32Proxy.Serialize(memoryStream, instance.ThreadId);
                if (instance.ThreadName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.ThreadName);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #6
0
        // Token: 0x0600104B RID: 4171 RVA: 0x00013214 File Offset: 0x00011414
        public static void Serialize(Stream stream, ContactRequestView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.InitiatorCmid);
                if (instance.InitiatorMessage != null)
                {
                    StringProxy.Serialize(memoryStream, instance.InitiatorMessage);
                }
                else
                {
                    num |= 1;
                }
                if (instance.InitiatorName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.InitiatorName);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.ReceiverCmid);
                Int32Proxy.Serialize(memoryStream, instance.RequestId);
                DateTimeProxy.Serialize(memoryStream, instance.SentDate);
                EnumProxy <ContactRequestStatus> .Serialize(memoryStream, instance.Status);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #7
0
        // Token: 0x06001106 RID: 4358 RVA: 0x0001A6A8 File Offset: 0x000188A8
        public static MemberAuthenticationResultView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MemberAuthenticationResultView memberAuthenticationResultView = new MemberAuthenticationResultView();

            if ((num & 1) != 0)
            {
                memberAuthenticationResultView.AuthToken = StringProxy.Deserialize(bytes);
            }
            memberAuthenticationResultView.IsAccountComplete = BooleanProxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                memberAuthenticationResultView.LuckyDraw = LuckyDrawUnityViewProxy.Deserialize(bytes);
            }
            memberAuthenticationResultView.MemberAuthenticationResult = EnumProxy <MemberAuthenticationResult> .Deserialize(bytes);

            if ((num & 4) != 0)
            {
                memberAuthenticationResultView.MemberView = MemberViewProxy.Deserialize(bytes);
            }
            if ((num & 8) != 0)
            {
                memberAuthenticationResultView.PlayerStatisticsView = PlayerStatisticsViewProxy.Deserialize(bytes);
            }
            memberAuthenticationResultView.ServerTime = DateTimeProxy.Deserialize(bytes);
            return(memberAuthenticationResultView);
        }
Пример #8
0
        // Token: 0x0600104D RID: 4173 RVA: 0x00013358 File Offset: 0x00011558
        public static void Serialize(Stream stream, CurrencyDepositView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.ApplicationId);
                if (instance.BundleId != null)
                {
                    Stream bytes    = memoryStream;
                    int?   bundleId = instance.BundleId;
                    Int32Proxy.Serialize(bytes, (bundleId == null) ? 0 : bundleId.Value);
                }
                else
                {
                    num |= 1;
                }
                if (instance.BundleName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.BundleName);
                }
                else
                {
                    num |= 2;
                }
                DecimalProxy.Serialize(memoryStream, instance.Cash);
                EnumProxy <ChannelType> .Serialize(memoryStream, instance.ChannelId);

                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                Int32Proxy.Serialize(memoryStream, instance.Credits);
                Int32Proxy.Serialize(memoryStream, instance.CreditsDepositId);
                if (instance.CurrencyLabel != null)
                {
                    StringProxy.Serialize(memoryStream, instance.CurrencyLabel);
                }
                else
                {
                    num |= 4;
                }
                DateTimeProxy.Serialize(memoryStream, instance.DepositDate);
                BooleanProxy.Serialize(memoryStream, instance.IsAdminAction);
                EnumProxy <PaymentProviderType> .Serialize(memoryStream, instance.PaymentProviderId);

                Int32Proxy.Serialize(memoryStream, instance.Points);
                if (instance.TransactionKey != null)
                {
                    StringProxy.Serialize(memoryStream, instance.TransactionKey);
                }
                else
                {
                    num |= 8;
                }
                DecimalProxy.Serialize(memoryStream, instance.UsdAmount);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
 // Token: 0x06001064 RID: 4196 RVA: 0x00014470 File Offset: 0x00012670
 public static MemberWalletView Deserialize(Stream bytes)
 {
     return(new MemberWalletView
     {
         Cmid = Int32Proxy.Deserialize(bytes),
         Credits = Int32Proxy.Deserialize(bytes),
         CreditsExpiration = DateTimeProxy.Deserialize(bytes),
         Points = Int32Proxy.Deserialize(bytes),
         PointsExpiration = DateTimeProxy.Deserialize(bytes)
     });
 }
 // Token: 0x06001063 RID: 4195 RVA: 0x000143F8 File Offset: 0x000125F8
 public static void Serialize(Stream stream, MemberWalletView instance)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Int32Proxy.Serialize(memoryStream, instance.Cmid);
         Int32Proxy.Serialize(memoryStream, instance.Credits);
         DateTimeProxy.Serialize(memoryStream, instance.CreditsExpiration);
         Int32Proxy.Serialize(memoryStream, instance.Points);
         DateTimeProxy.Serialize(memoryStream, instance.PointsExpiration);
         memoryStream.WriteTo(stream);
     }
 }
Пример #11
0
 // Token: 0x06001072 RID: 4210 RVA: 0x00014CA4 File Offset: 0x00012EA4
 public static PointDepositView Deserialize(Stream bytes)
 {
     return(new PointDepositView
     {
         Cmid = Int32Proxy.Deserialize(bytes),
         DepositDate = DateTimeProxy.Deserialize(bytes),
         DepositType = EnumProxy <PointsDepositType> .Deserialize(bytes),
         IsAdminAction = BooleanProxy.Deserialize(bytes),
         PointDepositId = Int32Proxy.Deserialize(bytes),
         Points = Int32Proxy.Deserialize(bytes)
     });
 }
Пример #12
0
        // Token: 0x06001048 RID: 4168 RVA: 0x00012FD0 File Offset: 0x000111D0
        public static ClanView Deserialize(Stream bytes)
        {
            int      num      = Int32Proxy.Deserialize(bytes);
            ClanView clanView = new ClanView();

            if ((num & 1) != 0)
            {
                clanView.Address = StringProxy.Deserialize(bytes);
            }
            clanView.ApplicationId = Int32Proxy.Deserialize(bytes);
            clanView.ColorStyle    = EnumProxy <GroupColor> .Deserialize(bytes);

            if ((num & 2) != 0)
            {
                clanView.Description = StringProxy.Deserialize(bytes);
            }
            clanView.FontStyle = EnumProxy <GroupFontStyle> .Deserialize(bytes);

            clanView.FoundingDate = DateTimeProxy.Deserialize(bytes);
            clanView.GroupId      = Int32Proxy.Deserialize(bytes);
            clanView.LastUpdated  = DateTimeProxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                clanView.Members = ListProxy <ClanMemberView> .Deserialize(bytes, new ListProxy <ClanMemberView> .Deserializer <ClanMemberView>(ClanMemberViewProxy.Deserialize));
            }
            clanView.MembersCount = Int32Proxy.Deserialize(bytes);
            clanView.MembersLimit = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                clanView.Motto = StringProxy.Deserialize(bytes);
            }
            if ((num & 16) != 0)
            {
                clanView.Name = StringProxy.Deserialize(bytes);
            }
            clanView.OwnerCmid = Int32Proxy.Deserialize(bytes);
            if ((num & 32) != 0)
            {
                clanView.OwnerName = StringProxy.Deserialize(bytes);
            }
            if ((num & 64) != 0)
            {
                clanView.Picture = StringProxy.Deserialize(bytes);
            }
            if ((num & 128) != 0)
            {
                clanView.Tag = StringProxy.Deserialize(bytes);
            }
            clanView.Type = EnumProxy <GroupType> .Deserialize(bytes);

            return(clanView);
        }
 // Token: 0x06001056 RID: 4182 RVA: 0x00013B4C File Offset: 0x00011D4C
 public static ItemTransactionView Deserialize(Stream bytes)
 {
     return new ItemTransactionView
     {
         Cmid = Int32Proxy.Deserialize(bytes),
         Credits = Int32Proxy.Deserialize(bytes),
         Duration = EnumProxy<BuyingDurationType>.Deserialize(bytes),
         IsAdminAction = BooleanProxy.Deserialize(bytes),
         ItemId = Int32Proxy.Deserialize(bytes),
         Points = Int32Proxy.Deserialize(bytes),
         WithdrawalDate = DateTimeProxy.Deserialize(bytes),
         WithdrawalId = Int32Proxy.Deserialize(bytes)
     };
 }
Пример #14
0
        // Token: 0x06001054 RID: 4180 RVA: 0x00013A58 File Offset: 0x00011C58
        public static ItemInventoryView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            ItemInventoryView itemInventoryView = new ItemInventoryView();

            itemInventoryView.AmountRemaining = Int32Proxy.Deserialize(bytes);
            itemInventoryView.Cmid            = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                itemInventoryView.ExpirationDate = new DateTime?(DateTimeProxy.Deserialize(bytes));
            }
            itemInventoryView.ItemId = Int32Proxy.Deserialize(bytes);
            return(itemInventoryView);
        }
Пример #15
0
        // Token: 0x06001071 RID: 4209 RVA: 0x00014C20 File Offset: 0x00012E20
        public static void Serialize(Stream stream, PointDepositView instance)
        {
            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                DateTimeProxy.Serialize(memoryStream, instance.DepositDate);
                EnumProxy <PointsDepositType> .Serialize(memoryStream, instance.DepositType);

                BooleanProxy.Serialize(memoryStream, instance.IsAdminAction);
                Int32Proxy.Serialize(memoryStream, instance.PointDepositId);
                Int32Proxy.Serialize(memoryStream, instance.Points);
                memoryStream.WriteTo(stream);
            }
        }
 // Token: 0x06001055 RID: 4181 RVA: 0x00013AB0 File Offset: 0x00011CB0
 public static void Serialize(Stream stream, ItemTransactionView instance)
 {
     using (MemoryStream memoryStream = new MemoryStream())
     {
         Int32Proxy.Serialize(memoryStream, instance.Cmid);
         Int32Proxy.Serialize(memoryStream, instance.Credits);
         EnumProxy<BuyingDurationType>.Serialize(memoryStream, instance.Duration);
         BooleanProxy.Serialize(memoryStream, instance.IsAdminAction);
         Int32Proxy.Serialize(memoryStream, instance.ItemId);
         Int32Proxy.Serialize(memoryStream, instance.Points);
         DateTimeProxy.Serialize(memoryStream, instance.WithdrawalDate);
         Int32Proxy.Serialize(memoryStream, instance.WithdrawalId);
         memoryStream.WriteTo(stream);
     }
 }
        // Token: 0x06001042 RID: 4162 RVA: 0x00012C48 File Offset: 0x00010E48
        public static ClanMemberView Deserialize(Stream bytes)
        {
            int            num            = Int32Proxy.Deserialize(bytes);
            ClanMemberView clanMemberView = new ClanMemberView();

            clanMemberView.Cmid        = Int32Proxy.Deserialize(bytes);
            clanMemberView.JoiningDate = DateTimeProxy.Deserialize(bytes);
            clanMemberView.Lastlogin   = DateTimeProxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                clanMemberView.Name = StringProxy.Deserialize(bytes);
            }
            clanMemberView.Position = EnumProxy <GroupPosition> .Deserialize(bytes);

            return(clanMemberView);
        }
Пример #18
0
        // Token: 0x06001105 RID: 4357 RVA: 0x0001A5BC File Offset: 0x000187BC
        public static void Serialize(Stream stream, MemberAuthenticationResultView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.AuthToken != null)
                {
                    StringProxy.Serialize(memoryStream, instance.AuthToken);
                }
                else
                {
                    num |= 1;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsAccountComplete);
                if (instance.LuckyDraw != null)
                {
                    LuckyDrawUnityViewProxy.Serialize(memoryStream, instance.LuckyDraw);
                }
                else
                {
                    num |= 2;
                }
                EnumProxy <MemberAuthenticationResult> .Serialize(memoryStream, instance.MemberAuthenticationResult);

                if (instance.MemberView != null)
                {
                    MemberViewProxy.Serialize(memoryStream, instance.MemberView);
                }
                else
                {
                    num |= 4;
                }
                if (instance.PlayerStatisticsView != null)
                {
                    PlayerStatisticsViewProxy.Serialize(memoryStream, instance.PlayerStatisticsView);
                }
                else
                {
                    num |= 8;
                }
                DateTimeProxy.Serialize(memoryStream, instance.ServerTime);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #19
0
        // Token: 0x060010DE RID: 4318 RVA: 0x000182AC File Offset: 0x000164AC
        public static LiveFeedView Deserialize(Stream bytes)
        {
            int          num          = Int32Proxy.Deserialize(bytes);
            LiveFeedView liveFeedView = new LiveFeedView();

            liveFeedView.Date = DateTimeProxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                liveFeedView.Description = StringProxy.Deserialize(bytes);
            }
            liveFeedView.LivedFeedId = Int32Proxy.Deserialize(bytes);
            liveFeedView.Priority    = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                liveFeedView.Url = StringProxy.Deserialize(bytes);
            }
            return(liveFeedView);
        }
        // Token: 0x0600105F RID: 4191 RVA: 0x00014138 File Offset: 0x00012338
        public static void Serialize(Stream stream, MemberSessionDataView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel);

                if (instance.AuthToken != null)
                {
                    StringProxy.Serialize(memoryStream, instance.AuthToken);
                }
                else
                {
                    num |= 1;
                }
                EnumProxy <ChannelType> .Serialize(memoryStream, instance.Channel);

                if (instance.ClanTag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.ClanTag);
                }
                else
                {
                    num |= 2;
                }
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                BooleanProxy.Serialize(memoryStream, instance.IsBanned);
                Int32Proxy.Serialize(memoryStream, instance.Level);
                DateTimeProxy.Serialize(memoryStream, instance.LoginDate);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.XP);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #21
0
        // Token: 0x06001066 RID: 4198 RVA: 0x00014578 File Offset: 0x00012778
        public static MessageThreadView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            MessageThreadView messageThreadView = new MessageThreadView();

            messageThreadView.HasNewMessages = BooleanProxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                messageThreadView.LastMessagePreview = StringProxy.Deserialize(bytes);
            }
            messageThreadView.LastUpdate   = DateTimeProxy.Deserialize(bytes);
            messageThreadView.MessageCount = Int32Proxy.Deserialize(bytes);
            messageThreadView.ThreadId     = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                messageThreadView.ThreadName = StringProxy.Deserialize(bytes);
            }
            return(messageThreadView);
        }
        // Token: 0x06001075 RID: 4213 RVA: 0x00014E8C File Offset: 0x0001308C
        public static void Serialize(Stream stream, PublicProfileView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                EnumProxy <MemberAccessLevel> .Serialize(memoryStream, instance.AccessLevel);

                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                EnumProxy <EmailAddressStatus> .Serialize(memoryStream, instance.EmailAddressStatus);

                if (instance.FacebookId != null)
                {
                    StringProxy.Serialize(memoryStream, instance.FacebookId);
                }
                else
                {
                    num |= 1;
                }
                if (instance.GroupTag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.GroupTag);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsChatDisabled);
                DateTimeProxy.Serialize(memoryStream, instance.LastLoginDate);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #23
0
        // Token: 0x0600104C RID: 4172 RVA: 0x000132D8 File Offset: 0x000114D8
        public static ContactRequestView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            ContactRequestView contactRequestView = new ContactRequestView();

            contactRequestView.InitiatorCmid = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                contactRequestView.InitiatorMessage = StringProxy.Deserialize(bytes);
            }
            if ((num & 2) != 0)
            {
                contactRequestView.InitiatorName = StringProxy.Deserialize(bytes);
            }
            contactRequestView.ReceiverCmid = Int32Proxy.Deserialize(bytes);
            contactRequestView.RequestId    = Int32Proxy.Deserialize(bytes);
            contactRequestView.SentDate     = DateTimeProxy.Deserialize(bytes);
            contactRequestView.Status       = EnumProxy <ContactRequestStatus> .Deserialize(bytes);

            return(contactRequestView);
        }
        // Token: 0x06001032 RID: 4146 RVA: 0x0001205C File Offset: 0x0001025C
        public static ApplicationView Deserialize(Stream bytes)
        {
            int             num             = Int32Proxy.Deserialize(bytes);
            ApplicationView applicationView = new ApplicationView();

            applicationView.ApplicationVersionId = Int32Proxy.Deserialize(bytes);
            applicationView.Build = EnumProxy <BuildType> .Deserialize(bytes);

            applicationView.Channel = EnumProxy <ChannelType> .Deserialize(bytes);

            if ((num & 1) != 0)
            {
                applicationView.ExpirationDate = new DateTime?(DateTimeProxy.Deserialize(bytes));
            }
            if ((num & 2) != 0)
            {
                applicationView.FileName = StringProxy.Deserialize(bytes);
            }
            applicationView.IsCurrent     = BooleanProxy.Deserialize(bytes);
            applicationView.PhotonGroupId = Int32Proxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                applicationView.PhotonGroupName = StringProxy.Deserialize(bytes);
            }
            applicationView.ReleaseDate   = DateTimeProxy.Deserialize(bytes);
            applicationView.RemainingTime = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                applicationView.Servers = ListProxy <PhotonView> .Deserialize(bytes, new ListProxy <PhotonView> .Deserializer <PhotonView>(PhotonViewProxy.Deserialize));
            }
            if ((num & 16) != 0)
            {
                applicationView.SupportUrl = StringProxy.Deserialize(bytes);
            }
            if ((num & 32) != 0)
            {
                applicationView.Version = StringProxy.Deserialize(bytes);
            }
            return(applicationView);
        }
        // Token: 0x06001074 RID: 4212 RVA: 0x00014DE8 File Offset: 0x00012FE8
        public static PrivateMessageView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            PrivateMessageView privateMessageView = new PrivateMessageView();

            if ((num & 1) != 0)
            {
                privateMessageView.ContentText = StringProxy.Deserialize(bytes);
            }
            privateMessageView.DateSent = DateTimeProxy.Deserialize(bytes);
            privateMessageView.FromCmid = Int32Proxy.Deserialize(bytes);
            if ((num & 2) != 0)
            {
                privateMessageView.FromName = StringProxy.Deserialize(bytes);
            }
            privateMessageView.HasAttachment       = BooleanProxy.Deserialize(bytes);
            privateMessageView.IsDeletedByReceiver = BooleanProxy.Deserialize(bytes);
            privateMessageView.IsDeletedBySender   = BooleanProxy.Deserialize(bytes);
            privateMessageView.IsRead           = BooleanProxy.Deserialize(bytes);
            privateMessageView.PrivateMessageId = Int32Proxy.Deserialize(bytes);
            privateMessageView.ToCmid           = Int32Proxy.Deserialize(bytes);
            return(privateMessageView);
        }
Пример #26
0
        // Token: 0x06001053 RID: 4179 RVA: 0x000139A0 File Offset: 0x00011BA0
        public static void Serialize(Stream stream, ItemInventoryView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.AmountRemaining);
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                if (instance.ExpirationDate != null)
                {
                    Stream   bytes          = memoryStream;
                    DateTime?expirationDate = instance.ExpirationDate;
                    DateTimeProxy.Serialize(bytes, (expirationDate == null) ? default(DateTime) : expirationDate.Value);
                }
                else
                {
                    num |= 1;
                }
                Int32Proxy.Serialize(memoryStream, instance.ItemId);
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
        // Token: 0x06001041 RID: 4161 RVA: 0x00012BB0 File Offset: 0x00010DB0
        public static void Serialize(Stream stream, ClanMemberView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.Cmid);
                DateTimeProxy.Serialize(memoryStream, instance.JoiningDate);
                DateTimeProxy.Serialize(memoryStream, instance.Lastlogin);
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 1;
                }
                EnumProxy <GroupPosition> .Serialize(memoryStream, instance.Position);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #28
0
        // Token: 0x0600104E RID: 4174 RVA: 0x000134D0 File Offset: 0x000116D0
        public static CurrencyDepositView Deserialize(Stream bytes)
        {
            int num = Int32Proxy.Deserialize(bytes);
            CurrencyDepositView currencyDepositView = new CurrencyDepositView();

            currencyDepositView.ApplicationId = Int32Proxy.Deserialize(bytes);
            if ((num & 1) != 0)
            {
                currencyDepositView.BundleId = new int?(Int32Proxy.Deserialize(bytes));
            }
            if ((num & 2) != 0)
            {
                currencyDepositView.BundleName = StringProxy.Deserialize(bytes);
            }
            currencyDepositView.Cash      = DecimalProxy.Deserialize(bytes);
            currencyDepositView.ChannelId = EnumProxy <ChannelType> .Deserialize(bytes);

            currencyDepositView.Cmid             = Int32Proxy.Deserialize(bytes);
            currencyDepositView.Credits          = Int32Proxy.Deserialize(bytes);
            currencyDepositView.CreditsDepositId = Int32Proxy.Deserialize(bytes);
            if ((num & 4) != 0)
            {
                currencyDepositView.CurrencyLabel = StringProxy.Deserialize(bytes);
            }
            currencyDepositView.DepositDate       = DateTimeProxy.Deserialize(bytes);
            currencyDepositView.IsAdminAction     = BooleanProxy.Deserialize(bytes);
            currencyDepositView.PaymentProviderId = EnumProxy <PaymentProviderType> .Deserialize(bytes);

            currencyDepositView.Points = Int32Proxy.Deserialize(bytes);
            if ((num & 8) != 0)
            {
                currencyDepositView.TransactionKey = StringProxy.Deserialize(bytes);
            }
            currencyDepositView.UsdAmount = DecimalProxy.Deserialize(bytes);
            return(currencyDepositView);
        }
        // Token: 0x06001031 RID: 4145 RVA: 0x00011EBC File Offset: 0x000100BC
        public static void Serialize(Stream stream, ApplicationView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                Int32Proxy.Serialize(memoryStream, instance.ApplicationVersionId);
                EnumProxy <BuildType> .Serialize(memoryStream, instance.Build);

                EnumProxy <ChannelType> .Serialize(memoryStream, instance.Channel);

                if (instance.ExpirationDate != null)
                {
                    Stream   bytes          = memoryStream;
                    DateTime?expirationDate = instance.ExpirationDate;
                    DateTimeProxy.Serialize(bytes, (expirationDate == null) ? default(DateTime) : expirationDate.Value);
                }
                else
                {
                    num |= 1;
                }
                if (instance.FileName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.FileName);
                }
                else
                {
                    num |= 2;
                }
                BooleanProxy.Serialize(memoryStream, instance.IsCurrent);
                Int32Proxy.Serialize(memoryStream, instance.PhotonGroupId);
                if (instance.PhotonGroupName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.PhotonGroupName);
                }
                else
                {
                    num |= 4;
                }
                DateTimeProxy.Serialize(memoryStream, instance.ReleaseDate);
                Int32Proxy.Serialize(memoryStream, instance.RemainingTime);
                if (instance.Servers != null)
                {
                    ListProxy <PhotonView> .Serialize(memoryStream, instance.Servers, new ListProxy <PhotonView> .Serializer <PhotonView>(PhotonViewProxy.Serialize));
                }
                else
                {
                    num |= 8;
                }
                if (instance.SupportUrl != null)
                {
                    StringProxy.Serialize(memoryStream, instance.SupportUrl);
                }
                else
                {
                    num |= 16;
                }
                if (instance.Version != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Version);
                }
                else
                {
                    num |= 32;
                }
                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }
Пример #30
0
        // Token: 0x06001047 RID: 4167 RVA: 0x00012DF0 File Offset: 0x00010FF0
        public static void Serialize(Stream stream, ClanView instance)
        {
            int num = 0;

            using (MemoryStream memoryStream = new MemoryStream())
            {
                if (instance.Address != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Address);
                }
                else
                {
                    num |= 1;
                }
                Int32Proxy.Serialize(memoryStream, instance.ApplicationId);
                EnumProxy <GroupColor> .Serialize(memoryStream, instance.ColorStyle);

                if (instance.Description != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Description);
                }
                else
                {
                    num |= 2;
                }
                EnumProxy <GroupFontStyle> .Serialize(memoryStream, instance.FontStyle);

                DateTimeProxy.Serialize(memoryStream, instance.FoundingDate);
                Int32Proxy.Serialize(memoryStream, instance.GroupId);
                DateTimeProxy.Serialize(memoryStream, instance.LastUpdated);
                if (instance.Members != null)
                {
                    ListProxy <ClanMemberView> .Serialize(memoryStream, instance.Members, new ListProxy <ClanMemberView> .Serializer <ClanMemberView>(ClanMemberViewProxy.Serialize));
                }
                else
                {
                    num |= 4;
                }
                Int32Proxy.Serialize(memoryStream, instance.MembersCount);
                Int32Proxy.Serialize(memoryStream, instance.MembersLimit);
                if (instance.Motto != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Motto);
                }
                else
                {
                    num |= 8;
                }
                if (instance.Name != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Name);
                }
                else
                {
                    num |= 16;
                }
                Int32Proxy.Serialize(memoryStream, instance.OwnerCmid);
                if (instance.OwnerName != null)
                {
                    StringProxy.Serialize(memoryStream, instance.OwnerName);
                }
                else
                {
                    num |= 32;
                }
                if (instance.Picture != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Picture);
                }
                else
                {
                    num |= 64;
                }
                if (instance.Tag != null)
                {
                    StringProxy.Serialize(memoryStream, instance.Tag);
                }
                else
                {
                    num |= 128;
                }
                EnumProxy <GroupType> .Serialize(memoryStream, instance.Type);

                Int32Proxy.Serialize(stream, ~num);
                memoryStream.WriteTo(stream);
            }
        }