This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
/
Notice.cs
243 lines (208 loc) · 12.7 KB
/
Notice.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
using Flantter.MilkyWay.Views.Util;
using Reactive.Bindings;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Concurrency;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Flantter.MilkyWay.ViewModels.Services
{
public class Notice
{
private static Notice _Instance = new Notice();
private Notice()
{
this.ShowUserProfileCommand = new ReactiveCommand();
this.ShowConversationCommand = new ReactiveCommand();
this.ShowMediaCommand = new ReactiveCommand();
this.ShowStatusDetailCommand = new ReactiveCommand();
this.LoadMentionCommand = new ReactiveCommand();
this.ReplyCommand = new ReactiveCommand();
this.RetweetCommand = new ReactiveCommand();
this.FavoriteCommand = new ReactiveCommand();
this.RetweetFavoriteCommand = new ReactiveCommand();
this.UrlClickCommand = new ReactiveCommand();
this.ReplyToAllCommand = new ReactiveCommand();
this.ReplyToStatusesCommand = new ReactiveCommand();
this.SendDirectMessageCommand = new ReactiveCommand();
this.UrlQuoteRetweetCommand = new ReactiveCommand();
this.CopyTweetCommand = new ReactiveCommand();
this.ShowRetweetersCommand = new ReactiveCommand();
this.MuteUserCommand = new ReactiveCommand();
this.MuteClientCommand = new ReactiveCommand();
this.DeleteTweetCommand = new ReactiveCommand();
this.DeleteRetweetCommand = new ReactiveCommand();
this.ShowUserListsCommand = new ReactiveCommand();
this.OpenStatusUrlCommand = new ReactiveCommand();
this.ShowSearchCommand = new ReactiveCommand();
this.ShareStatusCommand = new ReactiveCommand();
this.ShowListMembersCommand = new ReactiveCommand();
this.ShowListStatusesCommand = new ReactiveCommand();
this.ShowRetweetsOfMeCommand = new ReactiveCommand();
this.ShowUserFollowInfoCommand = new ReactiveCommand();
this.RetweetStatusesCommand = new ReactiveCommand();
this.FavoriteStatusesCommand = new ReactiveCommand();
this.ShowMyListsCommand = new ReactiveCommand();
this.GetGapStatusCommand = new ReactiveCommand();
this.AddListColumnCommand = new ReactiveCommand();
this.AddFilterColumnCommand = new ReactiveCommand();
this.TweetAreaAccountChangeCommand = new ReactiveCommand();
this.TweetAreaDeletePictureCommand = new ReactiveCommand();
this.TweetAreaOpenCommand = new ReactiveCommand();
this.SearchSettingsFlyoutDeleteSearchQueryCommand = new ReactiveCommand();
this.ShowSettingsFlyoutCommand = new ReactiveCommand();
this.DonateCommand = new ReactiveCommand();
this.AuthAccountCommand = new ReactiveCommand();
this.AddAccountCommand = new ReactiveCommand();
this.AddColumnCommand = new ReactiveCommand();
this.DeleteAccountCommand = new ReactiveCommand();
this.DeleteColumnCommand = new ReactiveCommand();
this.SortColumnCommand = new ReactiveCommand();
this.ChangeColumnSelectedIndexCommand = new ReactiveCommand();
this.ShowLeftSwipeMenuCommand = new ReactiveCommand();
this.ShowChangeAccountCommand = new ReactiveCommand();
this.ChangeAccountCommand = new ReactiveCommand();
this.ExitAppCommand = new ReactiveCommand();
this.ShowMainSettingCommand = new ReactiveCommand();
this.ShowBehaviorSettingCommand = new ReactiveCommand();
this.ShowPostingSettingCommand = new ReactiveCommand();
this.ShowDisplaySettingCommand = new ReactiveCommand();
this.ShowNotificationSettingCommand = new ReactiveCommand();
this.ShowMuteSettingCommand = new ReactiveCommand();
this.ShowAccountsSettingCommand = new ReactiveCommand();
this.ShowAccountSettingCommand = new ReactiveCommand();
this.ShowAdvancedSettingCommand = new ReactiveCommand();
this.ShowAppInfoCommand = new ReactiveCommand();
this.ShowSupportAccountCommand = new ReactiveCommand();
this.ShowColumnSettingCommand = new ReactiveCommand();
this.ChangeBackgroundImageCommand = new ReactiveCommand();
this.ChangeThemeCommand = new ReactiveCommand();
this.DeleteMuteUserCommand = new ReactiveCommand();
this.DeleteMuteClientCommand = new ReactiveCommand();
this.UpdateMuteFilterCommand = new ReactiveCommand();
this.CopySelectedTweetCommand = new ReactiveCommand();
this.ReplyToSelectedTweetCommand = new ReactiveCommand();
this.SendDirectMessageToSelectedTweetCommand = new ReactiveCommand();
this.FavoriteSelectedTweetCommand = new ReactiveCommand();
this.RetweetSelectedTweetCommand = new ReactiveCommand();
this.ShowUserProfileOfSelectedTweetCommand = new ReactiveCommand();
this.ShowConversationOfSelectedTweetCommand = new ReactiveCommand();
this.ChangeSelectedTweetCommand = new ReactiveCommand();
this.IncrementColumnSelectedIndexCommand = new ReactiveCommand();
this.DecrementColumnSelectedIndexCommand = new ReactiveCommand();
this.ShowFilePickerMessenger = new Messenger();
this.ShowComfirmMessageDialogMessenger = new Messenger();
this.ShowMessageDialogMessenger = new Messenger();
this.ShowAuthorizePopupMessenger = new Messenger();
}
public static Notice Instance
{
get { return _Instance; }
}
public Messenger ShowFilePickerMessenger { get; private set; }
public Messenger ShowComfirmMessageDialogMessenger { get; private set; }
public Messenger ShowMessageDialogMessenger { get; private set; }
public Messenger ShowAuthorizePopupMessenger { get; private set; }
public ReactiveCommand ShowUserProfileCommand { get; private set; }
public ReactiveCommand ShowConversationCommand { get; private set; }
public ReactiveCommand ShowMediaCommand { get; private set; }
public ReactiveCommand ShowStatusDetailCommand { get; private set; }
public ReactiveCommand LoadMentionCommand { get; private set; }
public ReactiveCommand ReplyCommand { get; private set; }
public ReactiveCommand RetweetCommand { get; private set; }
public ReactiveCommand FavoriteCommand { get; private set; }
public ReactiveCommand RetweetFavoriteCommand { get; private set; }
public ReactiveCommand UrlClickCommand { get; private set; }
public ReactiveCommand ReplyToAllCommand { get; private set; }
public ReactiveCommand ReplyToStatusesCommand { get; private set; }
public ReactiveCommand SendDirectMessageCommand { get; private set; }
public ReactiveCommand UrlQuoteRetweetCommand { get; private set; }
public ReactiveCommand CopyTweetCommand { get; private set; }
public ReactiveCommand ShowRetweetersCommand { get; private set; }
public ReactiveCommand MuteUserCommand { get; private set; }
public ReactiveCommand MuteClientCommand { get; private set; }
public ReactiveCommand DeleteTweetCommand { get; private set; }
public ReactiveCommand DeleteRetweetCommand { get; private set; }
public ReactiveCommand ShowUserListsCommand { get; private set; }
public ReactiveCommand OpenStatusUrlCommand { get; private set; }
public ReactiveCommand ShowSearchCommand { get; private set; }
public ReactiveCommand ShareStatusCommand { get; private set; }
public ReactiveCommand ShowListMembersCommand { get; private set; }
public ReactiveCommand ShowListStatusesCommand { get; private set; }
public ReactiveCommand ShowRetweetsOfMeCommand { get; private set; }
public ReactiveCommand ShowUserFollowInfoCommand { get; private set; }
public ReactiveCommand RetweetStatusesCommand { get; private set; }
public ReactiveCommand FavoriteStatusesCommand { get; private set; }
public ReactiveCommand ShowMyListsCommand { get; private set; }
public ReactiveCommand GetGapStatusCommand { get; private set; }
public ReactiveCommand AddListColumnCommand { get; private set; }
public ReactiveCommand AddFilterColumnCommand { get; private set; }
public ReactiveCommand TweetAreaAccountChangeCommand { get; private set; }
public ReactiveCommand TweetAreaDeletePictureCommand { get; private set; }
public ReactiveCommand TweetAreaOpenCommand { get; private set; }
public ReactiveCommand SearchSettingsFlyoutDeleteSearchQueryCommand { get; private set; }
public ReactiveCommand ShowSettingsFlyoutCommand { get; private set; }
public ReactiveCommand DonateCommand { get; private set; }
public ReactiveCommand AuthAccountCommand { get; private set; }
public ReactiveCommand AddAccountCommand { get; private set; }
public ReactiveCommand AddColumnCommand { get; private set; }
public ReactiveCommand DeleteAccountCommand { get; private set; }
public ReactiveCommand DeleteColumnCommand { get; private set; }
public ReactiveCommand SortColumnCommand { get; private set; }
public ReactiveCommand ChangeColumnSelectedIndexCommand { get; private set; }
public ReactiveCommand ShowLeftSwipeMenuCommand { get; private set; }
public ReactiveCommand ShowChangeAccountCommand { get; private set; }
public ReactiveCommand ChangeAccountCommand { get; private set; }
public ReactiveCommand ExitAppCommand { get; private set; }
public ReactiveCommand ShowMainSettingCommand { get; private set; }
public ReactiveCommand ShowBehaviorSettingCommand { get; private set; }
public ReactiveCommand ShowPostingSettingCommand { get; private set; }
public ReactiveCommand ShowDisplaySettingCommand { get; private set; }
public ReactiveCommand ShowNotificationSettingCommand { get; private set; }
public ReactiveCommand ShowMuteSettingCommand { get; private set; }
public ReactiveCommand ShowAccountsSettingCommand { get; private set; }
public ReactiveCommand ShowAccountSettingCommand { get; private set; }
public ReactiveCommand ShowAdvancedSettingCommand { get; private set; }
public ReactiveCommand ShowAppInfoCommand { get; private set; }
public ReactiveCommand ShowSupportAccountCommand { get; private set; }
public ReactiveCommand ShowColumnSettingCommand { get; private set; }
public ReactiveCommand ChangeBackgroundImageCommand { get; private set; }
public ReactiveCommand ChangeThemeCommand { get; private set; }
public ReactiveCommand DeleteMuteUserCommand { get; private set; }
public ReactiveCommand DeleteMuteClientCommand { get; private set; }
public ReactiveCommand UpdateMuteFilterCommand { get; private set; }
public ReactiveCommand CopySelectedTweetCommand { get; private set; }
public ReactiveCommand ReplyToSelectedTweetCommand { get; private set; }
public ReactiveCommand SendDirectMessageToSelectedTweetCommand { get; private set; }
public ReactiveCommand FavoriteSelectedTweetCommand { get; private set; }
public ReactiveCommand RetweetSelectedTweetCommand { get; private set; }
public ReactiveCommand ShowUserProfileOfSelectedTweetCommand { get; private set; }
public ReactiveCommand ShowConversationOfSelectedTweetCommand { get; private set; }
public ReactiveCommand ChangeSelectedTweetCommand { get; private set; }
public ReactiveCommand IncrementColumnSelectedIndexCommand { get; private set; }
public ReactiveCommand DecrementColumnSelectedIndexCommand { get; private set; }
}
public class NoticeProvider
{
public Notice Notice { get { return Notice.Instance; } }
}
public class ShareNotice
{
private static ShareNotice _Instance = new ShareNotice();
private ShareNotice()
{
this.ShareContractAccountChangeCommand = new ReactiveCommand(new SynchronizationContextScheduler(SynchronizationContext.Current));
}
public static ShareNotice Instance
{
get { return _Instance; }
}
public ReactiveCommand ShareContractAccountChangeCommand { get; private set; }
}
public class ShareNoticeProvider
{
public ShareNotice Notice { get { return ShareNotice.Instance; } }
}
}