#nullable enable
using System;
-using OpenTween.Api;
using OpenTween.Models;
using OpenTween.Setting;
+using OpenTween.SocialProtocol;
using OpenTween.Thumbnail;
using OpenTween.Thumbnail.Services;
public CultureService CultureService
=> this.cultureServiceLazy.Value;
- public TwitterApi TwitterApi
- => this.twitterApiLazy.Value;
-
- public Twitter Twitter
- => this.twitterLazy.Value;
+ public AccountCollection AccountCollection
+ => this.accountCollectionLazy.Value;
public ImageCache ImageCache
=> this.imageCacheLazy.Value;
=> this.mainFormLazy.Value;
private readonly Lazy<CultureService> cultureServiceLazy;
- private readonly DisposableLazy<TwitterApi> twitterApiLazy;
- private readonly DisposableLazy<Twitter> twitterLazy;
+ private readonly DisposableLazy<AccountCollection> accountCollectionLazy;
private readonly DisposableLazy<ImageCache> imageCacheLazy;
private readonly DisposableLazy<IconAssetsManager> iconAssetsManagerLazy;
private readonly DisposableLazy<ImgAzyobuziNet> imgAzyobuziNetLazy;
SettingManager.Instance = settings;
this.cultureServiceLazy = new(this.CreateCultureService);
- this.twitterApiLazy = new(this.CreateTwitterApi);
- this.twitterLazy = new(this.CreateTwitter);
+ this.accountCollectionLazy = new(this.CreateAccountCollection);
this.imageCacheLazy = new(this.CreateImageCache);
this.iconAssetsManagerLazy = new(this.CreateIconAssetsManager);
this.imgAzyobuziNetLazy = new(this.CreateImgAzyobuziNet);
private CultureService CreateCultureService()
=> new(this.Settings.Common);
- private TwitterApi CreateTwitterApi()
+ private AccountCollection CreateAccountCollection()
=> new();
- private Twitter CreateTwitter()
- => new(this.TwitterApi);
-
private ImageCache CreateImageCache()
=> new();
=> new(this.ImgAzyobuziNet);
private TweenMain CreateTweenMain()
- => new(this.Settings, this.TabInfo, this.Twitter, this.ImageCache, this.IconAssetsManager, this.ThumbnailGenerator);
+ => new(this.Settings, this.TabInfo, this.AccountCollection, this.ImageCache, this.IconAssetsManager, this.ThumbnailGenerator);
public void Dispose()
{
this.IsDisposed = true;
this.mainFormLazy.Dispose();
this.imgAzyobuziNetLazy.Dispose();
- this.twitterLazy.Dispose();
- this.twitterApiLazy.Dispose();
+ this.accountCollectionLazy.Dispose();
this.iconAssetsManagerLazy.Dispose();
this.imageCacheLazy.Dispose();
}