public static void Post(PostInterceptor interceptor) { Type type = interceptor.GetType(); if (Posts.ContainsKey(type)) { return; } Posts.Add(type, interceptor); }
// 検索結果の追加 public void AddPostToInnerStorage(PostClass post) { if (Posts.ContainsKey(post.StatusId)) { return; } Posts.Add(post.StatusId, post); _tmpIds.Add(new TemporaryId(post.StatusId, post.IsRead)); }