public TimelineViewModel(TimelineTabParameters param, IReactiveProperty <Status> inReplyTo, TabsModel tabs, IMastodonClient client) : base(param, inReplyTo) { switch (param.Type) { case TimelineType.Home: Statuses = new StatusesViewModel(new HomeTimelineModel(client), inReplyTo, tabs, param.StreamingOnStartup); break; case TimelineType.Local: Statuses = new StatusesViewModel(new LocalTimelineModel(client), inReplyTo, tabs, param.StreamingOnStartup); break; case TimelineType.Federated: Statuses = new StatusesViewModel(new FederatedTimelineModel(client), inReplyTo, tabs, param.StreamingOnStartup); break; } }
public AccountTabViewModel(AccountTabParameters param, IReactiveProperty <Status> inReplyTo, TabsModel tabs, IMastodonClient client) : base(param, inReplyTo) { GetAccount(param.Id); Statuses = new StatusesViewModel(new AccountTimelineModel(param.Id, client), inReplyTo, tabs); }