Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public void Deserialize(System.IO.BinaryReader reader)
 {
     Id = reader.ReadInt64();
     StatusType = (StatusType)reader.ReadInt32();
     User = reader.ReadObject<TwitterUser>();
     Text = reader.ReadString();
     CreatedAt = reader.ReadDateTime();
     IsFavored = reader.ReadBoolean();
     if (reader.ReadBoolean())
     {
         Source = reader.ReadString();
     }
     InReplyToStatusId = reader.ReadNullableLong();
     InReplyToUserId = reader.ReadNullableLong();
     if (reader.ReadBoolean())
     {
         InReplyToScreenName = reader.ReadString();
     }
     RetweetedOriginalId = reader.ReadNullableLong();
     Latitude = reader.ReadNullableDouble();
     Longitude = reader.ReadNullableDouble();
     if (reader.ReadBoolean())
     {
         FavoritedUsers = reader.ReadIds().ToArray();
     }
     if (reader.ReadBoolean())
     {
         RetweetedUsers = reader.ReadIds().ToArray();
     }
     RetweetedOriginal = reader.ReadObject<TwitterStatus>();
     Recipient = reader.ReadObject<TwitterUser>();
     if (reader.ReadBoolean())
     {
         Entities = reader.ReadCollection<TwitterEntity>().ToArray();
     }
 }
Exemplo n.º 3
0
 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();
     }
 }