OSDN Git Service

C# 8.0 のnull許容参照型を有効化
[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.Linq;
27 using System.Text;
28 using System.Windows.Forms;
29
30 namespace OpenTween
31 {
32     /// <summary>
33     /// アプリケーション固有の情報を格納します
34     /// </summary>
35     /// <remarks>
36     /// OpenTween の派生版を作る方法は http://sourceforge.jp/projects/opentween/wiki/HowToFork を参照して下さい。
37     /// </remarks>
38     internal static class ApplicationSettings
39     {
40         //=====================================================================
41         // アプリケーション情報
42
43         /// <summary>
44         /// アプリケーション名
45         /// </summary>
46         /// <remarks>
47         /// 派生版のアプリケーションでは名前にマルチバイト文字を含む場合があります。
48         /// ファイル名など英数字のみを含めたい用途ではこのプロパティではなく <see cref="AssemblyName"/> を使用します
49         /// </remarks>
50         public static string ApplicationName => Application.ProductName;
51
52         /// <summary>
53         /// アセンブリ名
54         /// </summary>
55         public static string AssemblyName => MyCommon.GetAssemblyName();
56
57         //=====================================================================
58         // フィードバック送信先
59         // 異常終了時などにエラーログ等とともに表示されます。
60         
61         /// <summary>
62         /// フィードバック送信先 (メール)
63         /// </summary>
64         public const string FeedbackEmailAddress = "kim.upsilon@bucyou.net";
65
66         /// <summary>
67         /// フィードバック送信先 (Twitter)
68         /// </summary>
69         public const string FeedbackTwitterName = "@OpenTween";
70
71         /// <summary>
72         /// FeedbackTwitterName のユーザー宛にエラーレポートの DM を送信可能であるか
73         /// </summary>
74         /// <remarks>
75         /// エラーレポートを DM で受け付ける場合は、フォロー外からの DM を受け付ける設定にする必要があります
76         /// </remarks>
77         public static readonly bool AllowSendErrorReportByDM = true;
78
79         //=====================================================================
80         // Web サイト
81
82         /// <summary>
83         /// 「ヘルプ」メニューの「(アプリ名) ウェブサイト」クリック時に外部ブラウザで表示する URL
84         /// </summary>
85         public const string WebsiteUrl = "https://www.opentween.org/";
86
87         /// <summary>
88         /// 「ヘルプ」メニューの「ショートカットキー一覧」クリック時に外部ブラウザで表示する URL
89         /// </summary>
90         /// <remarks>
91         /// Tween の Wiki ページのコンテンツはプロプライエタリなため転載不可
92         /// </remarks>
93         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";
94
95         //=====================================================================
96         // アップデートチェック関連
97
98         /// <summary>
99         /// 最新バージョンの情報を取得するためのURL
100         /// </summary>
101         /// <remarks>
102         /// version.txt のフォーマットについては http://sourceforge.jp/projects/opentween/wiki/VersionTxt を参照。
103         /// 派生プロジェクトなどでこの機能を無効にする場合は null をセットして下さい。
104         /// </remarks>
105         public static readonly string VersionInfoUrl = "https://www.opentween.org/status/version.txt";
106
107         //=====================================================================
108         // Twitter
109         // https://dev.twitter.com/ から取得できます。
110
111         /// <summary>
112         /// Twitter コンシューマーキー
113         /// </summary>
114         public const string TwitterConsumerKey = "zIoJPq3FsuViPTAs89FetDHYz";
115         public const string TwitterConsumerSecret = "prTAs2fqLv12nHxlMoLQZT8AkpZt0yYb8A7ktGS2VYeRj0TddS";
116
117         //=====================================================================
118         // Foursquare
119         // https://developer.foursquare.com/ から取得できます。
120
121         /// <summary>
122         /// Foursquare Client Id
123         /// </summary>
124         public const string FoursquareClientId = "5H3K5YQPT55DNQUFEOAJFNJA5D01ZJGO2ITEAJ3ASRIDONUB";
125
126         /// <summary>
127         /// Foursquare Client Secret
128         /// </summary>
129         public const string FoursquareClientSecret = "JFRHP1L451M3AEPF11UZLTIIUZCZTZRVHVOWB5TQ0AJOVPBB";
130
131         //=====================================================================
132         // bit.ly
133         // https://bitly.com/a/oauth_apps から取得できます。
134
135         /// <summary>
136         /// bit.ly Client ID
137         /// </summary>
138         public const string BitlyClientId = "ddab8ec50f4459c315cbde9d923cf490923b6d2e";
139
140         /// <summary>
141         /// bit.ly Client Secret
142         /// </summary>
143         public const string BitlyClientSecret = "485c9d03dd264f8eeb4fc65d38e2762c4420cee7";
144
145         //=====================================================================
146         // TINAMI
147         // http://www.tinami.com/api/ から取得できます。
148
149         /// <summary>
150         /// TINAMI APIキー
151         /// </summary>
152         public const string TINAMIApiKey = "4f48bb4858d36";
153
154         //=====================================================================
155         // Microsoft Translator API (Cognitive Service)
156         // https://www.microsoft.com/ja-jp/translator/getstarted.aspx から取得できます。
157
158         /// <summary>
159         /// Translator Text API Subscription Key
160         /// </summary>
161         public readonly static string TranslatorSubscriptionKey = "6c47d2ea341148bf856bdbfafd429db7";
162
163         //=====================================================================
164         // Imgur
165         // https://api.imgur.com/oauth2/addclient から取得できます
166
167         /// <summary>
168         /// Imgur Client ID
169         /// </summary>
170         public readonly static string ImgurClientID = "a5fff36fb83568c";
171
172         /// <summary>
173         /// Imgur Client Secret
174         /// </summary>
175         public readonly static string ImgurClientSecret = "af5d668a9aa83b34a8f0f735e12073edafbc9a5d";
176
177         //=====================================================================
178         // Mobypicture
179         // http://www.mobypicture.com/apps/my から取得できます
180
181         /// <summary>
182         /// Mobypicture Developer Key
183         /// </summary>
184         public readonly static string MobypictureKey = "quPWTX0UrPHxqdH7";
185
186         //=====================================================================
187         // Tumblr
188         // https://www.tumblr.com/oauth/apps から取得できます
189
190         /// <summary>
191         /// Tumblr OAuth Consumer Key
192         /// </summary>
193         public readonly static string TumblrConsumerKey = "Nsk62V6wMIqVNbiGyN0g3aDGBlgU7Fcb9GJ8Se0z2MUDHAY15l";
194     }
195 }