public void Deserialize(System.IO.BinaryReader reader) { Id = reader.ReadInt64(); ScreenName = reader.ReadString(); IsDataLacking = reader.ReadBoolean(); Name = reader.ReadString(); Description = reader.ReadString(); Location = reader.ReadString(); Url = reader.ReadString(); ProfileImageUri = reader.ReadUri(); IsProtected = reader.ReadBoolean(); IsVerified = reader.ReadBoolean(); IsTranslator = reader.ReadBoolean(); IsContributorsEnabled = reader.ReadBoolean(); IsGeoEnabled = reader.ReadBoolean(); StatusesCount = reader.ReadInt64(); FriendsCount = reader.ReadInt64(); FollowersCount = reader.ReadInt64(); FavoritesCount = reader.ReadInt64(); ListedCount = reader.ReadInt64(); Language = reader.ReadString(); if (!IsDataLacking) CreatedAt = reader.ReadDateTime(); }
public void Deserialize(System.IO.BinaryReader reader) { Id = reader.ReadInt64(); ScreenName = reader.ReadString(); Name = reader.ReadString(); Description = reader.ReadString(); Location = reader.ReadString(); Url = reader.ReadString(); IsDefaultProfileImage = reader.ReadBoolean(); ProfileImageUri = reader.ReadUri(); ProfileImageUriHttps = reader.ReadUri(); ProfileBackgroundImageUri = reader.ReadUri(); ProfileBackgroundImageUriHttps = reader.ReadUri(); ProfileBannerUri = reader.ReadUri(); IsProtected = reader.ReadBoolean(); IsVerified = reader.ReadBoolean(); IsTranslator = reader.ReadBoolean(); IsContributorsEnabled = reader.ReadBoolean(); IsGeoEnabled = reader.ReadBoolean(); StatusesCount = reader.ReadInt64(); FollowingCount = reader.ReadInt64(); FollowersCount = reader.ReadInt64(); FavoritesCount = reader.ReadInt64(); ListedCount = reader.ReadInt64(); Language = reader.ReadString(); CreatedAt = reader.ReadDateTime(); if (reader.ReadBoolean()) { UrlEntities = reader.ReadCollection<TwitterEntity>().ToArray(); } if (reader.ReadBoolean()) { DescriptionEntities = reader.ReadCollection<TwitterEntity>().ToArray(); } }