OSDN Git Service

TwitterEntityUrl.DisplayUrl, ExpandedUrl をNullableに変更
[opentween/open-tween.git] / OpenTween / ApplicationSettings.cs
1 // OpenTween - Client of Twitter
2 // Copyright (c) 2012      kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/>
3 // All rights reserved.
4 //
5 // This file is part of OpenTween.
6 //
7 // This program is free software; you can redistribute it and/or modify it
8 // under the terms of the GNU General public License as published by the Free
9 // Software Foundation; either version 3 of the License, or (at your option)
10 // any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public License
15 // for more details.
16 //
17 // You should have received a copy of the GNU General public License along
18 // with this program. If not, see <http://www.gnu.org/licenses/>, or write to
19 // the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
20 // Boston, MA 02110-1301, USA.
21
22 #nullable enable
23
24 using System;
25 using System.Collections.Generic;
26 using System.IO;
27 using System.Linq;
28 using System.Text;
29 using System.Windows.Forms;
30
31 namespace OpenTween
32 {
33     /// <summary>
34     /// アプリケーション固有の情報を格納します
35     /// </summary>
36     /// <remarks>
37     /// OpenTween の派生版を作る方法は http://sourceforge.jp/projects/opentween/wiki/HowToFork を参照して下さい。
38     /// </remarks>
39     internal static class ApplicationSettings
40     {
41         // =====================================================================
42         // アプリケーション情報
43
44         /// <summary>
45         /// アプリケーション名
46         /// </summary>
47         /// <remarks>
48         /// 派生版のアプリケーションでは名前にマルチバイト文字を含む場合があります。
49         /// ファイル名など英数字のみを含めたい用途ではこのプロパティではなく <see cref="AssemblyName"/> を使用します
50         /// </remarks>
51         public static string ApplicationName => Application.ProductName;
52
53         /// <summary>
54         /// アセンブリ名
55         /// </summary>
56         public static string AssemblyName => MyCommon.GetAssemblyName();
57
58         // =====================================================================
59         // フィードバック送信先
60         // 異常終了時などにエラーログ等とともに表示されます。
61
62         /// <summary>
63         /// フィードバック送信先 (メール)
64         /// </summary>
65         public const string FeedbackEmailAddress = "kim.upsilon@bucyou.net";
66
67         /// <summary>
68         /// フィードバック送信先 (Twitter)
69         /// </summary>
70         public const string FeedbackTwitterName = "@OpenTween";
71
72         /// <summary>
73         /// FeedbackTwitterName のユーザー宛にエラーレポートの DM を送信可能であるか
74         /// </summary>
75         /// <remarks>
76         /// エラーレポートを DM で受け付ける場合は、フォロー外からの DM を受け付ける設定にする必要があります
77         /// </remarks>
78         public static readonly bool AllowSendErrorReportByDM = true;
79
80         // =====================================================================
81         // Web サイト
82
83         /// <summary>
84         /// 「ヘルプ」メニューの「(アプリ名) ウェブサイト」クリック時に外部ブラウザで表示する URL
85         /// </summary>
86         public const string WebsiteUrl = "https://www.opentween.org/";
87
88         /// <summary>
89         /// 「ヘルプ」メニューの「ショートカットキー一覧」クリック時に外部ブラウザで表示する URL
90         /// </summary>
91         /// <remarks>
92         /// Tween の Wiki ページのコンテンツはプロプライエタリなため転載不可
93         /// </remarks>
94         public const string ShortcutKeyUrl = "https://ja.osdn.net/projects/tween/wiki/%E3%82%B7%E3%83%A7%E3%83%BC%E3%83%88%E3%82%AB%E3%83%83%E3%83%88%E3%82%AD%E3%83%BC";
95
96         // =====================================================================
97         // アップデートチェック関連
98
99         /// <summary>
100         /// 最新バージョンの情報を取得するためのURL
101         /// </summary>
102         /// <remarks>
103         /// version.txt のフォーマットについては http://sourceforge.jp/projects/opentween/wiki/VersionTxt を参照。
104         /// 派生プロジェクトなどでこの機能を無効にする場合は null をセットして下さい。
105         /// </remarks>
106         public static readonly string VersionInfoUrl = "https://www.opentween.org/status/version.txt";
107
108         // =====================================================================
109         // 暗号化キー
110
111         /// <summary>
112         /// APIキーの暗号化・復号に使用するパスワード
113         /// </summary>
114         public static readonly string EncryptionPassword = ApplicationName;
115
116         // =====================================================================
117         // Twitter
118         // https://developer.twitter.com/ から取得できます。
119
120         /// <summary>
121         /// Twitter API Key
122         /// </summary>
123         public static readonly ApiKey TwitterConsumerKey = ApiKey.Create("%e%EGv00cec1j05bMzbfAnsug==%ApO4PjZvnhixxFDqNh5qeqUTyAIEhoDvhhTaspVVjoA=%48Wxazf5JpDdIbkG0I8nme6/weUdEmZMRqfXAmCNr+Y=");
124
125         /// <summary>
126         /// Twitter API Key Secret
127         /// </summary>
128         public static readonly ApiKey TwitterConsumerSecret = ApiKey.Create("%e%p93BdDzlwbYIC5Ych/47OQ==%xYZTCYaBxzS4An3o7Qcigjp9QMtu5vi5iEAW/sNgoOoAUyuHJRPP3Ovs20ZV2fAYKxUDiu76dxLfObwI7QjSRA==%YEruRDAQdbJzO+y6kn7+U/uIyIyNra/8Ulo+L6KJcWA=");
129
130         /// <summary>
131         /// <see cref="OpenTween.Connection.TwitterComCookieHandler"/> で使用する Bearer token
132         /// </summary>
133         public static readonly ApiKey TwitterComBearerToken = ApiKey.Create("%e%D2/mWPJwkdhuxnXCCnPiAw==%mAH3yTqmvpdf7Zukmlan0yXhUoAuVTo0fBjOsI3RXwP3/NpS2V4/UmcwGy6aZPEl05wDrL9e1BCKdfbB4+cvQUasEGWU1RRW4KsLyzFMX+nqnvP6cgl2Oa7ek0KDT5xShl+gnOCq03dWBPY0uKrLZA==%5+REZK8MSrAzlMM4C6oph/rIJje8YqSDPOiHFiSOyh4=");
134
135         // =====================================================================
136         // Foursquare
137         // https://developer.foursquare.com/ から取得できます。
138
139         /// <summary>
140         /// Foursquare Client Id
141         /// </summary>
142         public static readonly ApiKey FoursquareClientId = ApiKey.Create("%e%zNX0U6Eul2bdpkzQgcd/WA==%koGoTYoVLvQ6T5bsnI+dJjJ+REMnlJIhTnibhI6MagmHPA5hzY6DQom+PpQxBZX2CS2fZW1Ac82HzTzb3J7gNw==%qOMdPQ3UN7IWT4jJegYQnRxorZm/zaEt7/n6fd1eFcM=");
143
144         /// <summary>
145         /// Foursquare Client Secret
146         /// </summary>
147         public static readonly ApiKey FoursquareClientSecret = ApiKey.Create("%e%3Zw+G9P32WgIi1ooBeDSCg==%coygRxFBSrxMW5o4dkD64ftx0C7axFkJlceb52XqDaiQKkf8q0Szavcw+t3MsxFQTkwL3ob7mehmCSdSpJPLTA==%XTrAyfrDBzdeKGPIXTD2JFU65uZqh8fs9tyf+fLaJeY=");
148
149         // =====================================================================
150         // bit.ly
151         // https://bitly.com/a/oauth_apps から取得できます。
152
153         /// <summary>
154         /// bit.ly Client ID
155         /// </summary>
156         public static readonly ApiKey BitlyClientId = ApiKey.Create("%e%VtBYaO301PMy/eesjAJwuQ==%wK9fwaXlaq2wOCbJqzfwUzf4h+xAUJ445+wjI6uT3ANyag2LPJBYpfCQ3V+qnNlR%kmyyVMp8JPubACjFEd1zZMV2bddMimSj86e/ONegTeI=");
157
158         /// <summary>
159         /// bit.ly Client Secret
160         /// </summary>
161         public static readonly ApiKey BitlyClientSecret = ApiKey.Create("%e%jvdQqgh0Aj4e8HANczWELA==%FHevK6YJ/5L083pCJnUQ65bfz+sbwLZw4hUXIOw9PXRa8YnmVZ2KMwuHRRbdZUZl%1f/0LoSAuC0wyfKMhiohXNPGWY7wyQbqr2XVyKtjpFk=");
162
163         // =====================================================================
164         // TINAMI
165         // http://www.tinami.com/api/ から取得できます。
166
167         /// <summary>
168         /// TINAMI APIキー
169         /// </summary>
170         public static readonly ApiKey TINAMIApiKey = ApiKey.Create("%e%OA+C4u5v/9Oc2xIOEKt6Ng==%xLrMgeXaYSIaW5LYEA2viA==%/0bWO/UMCYH2BRxPKvi7JCW/CXxp/JmincpFNRlvhOQ=");
171
172         // =====================================================================
173         // Microsoft Translator API (Cognitive Service)
174         // https://www.microsoft.com/ja-jp/translator/getstarted.aspx から取得できます。
175
176         /// <summary>
177         /// Translator Text API Subscription Key
178         /// </summary>
179         public static readonly ApiKey TranslatorSubscriptionKey = ApiKey.Create("%e%ysNsopqjk7fEikJNfX3ZtQ==%ZS4Gzq9PSUzBGKabQWi5To2nVLl8R3D+i/7nj5dACFAkBvQkxmrgJCnvON9cdF/+%1bayEnkpd4gbcyTTwB9PILWdku3YS52FuHskkpIhlXQ=");
180
181         // =====================================================================
182         // Imgur
183         // https://api.imgur.com/oauth2/addclient から取得できます
184
185         /// <summary>
186         /// Imgur Client ID
187         /// </summary>
188         public static readonly ApiKey ImgurClientId = ApiKey.Create("%e%YQirOk0lRw8zjhrTPlyRrQ==%ysNbeo//DruosSIzXquwiw==%126uNNTZshuw/SW9hd1ME/KCMpKSfjeboSRtQRfVQwc=");
189
190         /// <summary>
191         /// Imgur Client Secret
192         /// </summary>
193         public static readonly ApiKey ImgurClientSecret = ApiKey.Create("%e%+IHTR8uXh2Mig6zGkawjeA==%vYQDZ+Tw5Rol4mQRC/yzXywuaNPWgoL5kLIg5VdUiCnSX5EPGQC5+QUkTzGz/fqv%+mOv8ekXLoZKe05yyXJ8Sx0cjuimoPQA30k/571wVRw=");
194
195         // =====================================================================
196         // Mobypicture
197         // http://www.mobypicture.com/apps/my から取得できます
198
199         /// <summary>
200         /// Mobypicture Developer Key
201         /// </summary>
202         public static readonly ApiKey MobypictureKey = ApiKey.Create("%e%1FQ6vgxHCduEDyyJ7UK1ug==%xNBXVlAgJ8XiXZ1LSgGvEL1Vk1m4EzQ+6T/yigTgRHw=%xCAlJ1gBpe8G1Us6wXZBkYGxccFvRyRhmnFM4ocuhHQ=");
203
204         // =====================================================================
205         // Tumblr
206         // https://www.tumblr.com/oauth/apps から取得できます
207
208         /// <summary>
209         /// Tumblr OAuth Consumer Key
210         /// </summary>
211         public static readonly ApiKey TumblrConsumerKey = ApiKey.Create("%e%1jQuOn2+l8O9i0/ld/VV5Q==%SiBRxJWj4Cbq/btPs63Rr2xOyw4XgTlV+lVkHkvIapBRkUaqGJxV7R/j5ljX+QW0ruBXNy+cpZFeEZFfB2jvSQ==%3GdYHow0pAlPQRY/wquX1AaxjzSabStRj8zbTXct1S4=");
212     }
213 }