Exemplo n.º 1
0
 public void Deserialize(System.IO.BinaryReader reader)
 {
     Id = reader.ReadInt64();
     StatusType = (StatusType)reader.ReadInt32();
     IsDataLacking = reader.ReadBoolean();
     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>();
     Entities = reader.ReadCollection<TwitterEntity>().ToArray();
 }
Exemplo n.º 2
0
 public static void Store(TwitterUser user)
 {
     if (_isInShutdown) return;
     store.Store(user);
     lock (snResolverLocker)
     {
         screenNameResolver[user.ScreenName] = user.Id;
     }
 }