OSDN Git Service

OpenTween v2.4.2 リリース
[opentween/open-tween.git] / OpenTween / ApplicationSettings.cs
index 0028429..e7a2973 100644 (file)
 // the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 // Boston, MA 02110-1301, USA.
 
+#nullable enable
+
 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
+using System.Windows.Forms;
 
 namespace OpenTween
 {
@@ -32,9 +35,26 @@ namespace OpenTween
     /// <remarks>
     /// OpenTween の派生版を作る方法は http://sourceforge.jp/projects/opentween/wiki/HowToFork を参照して下さい。
     /// </remarks>
-    internal sealed class ApplicationSettings
+    internal static class ApplicationSettings
     {
         //=====================================================================
+        // アプリケーション情報
+
+        /// <summary>
+        /// アプリケーション名
+        /// </summary>
+        /// <remarks>
+        /// 派生版のアプリケーションでは名前にマルチバイト文字を含む場合があります。
+        /// ファイル名など英数字のみを含めたい用途ではこのプロパティではなく <see cref="AssemblyName"/> を使用します
+        /// </remarks>
+        public static string ApplicationName => Application.ProductName;
+
+        /// <summary>
+        /// アセンブリ名
+        /// </summary>
+        public static string AssemblyName => MyCommon.GetAssemblyName();
+
+        //=====================================================================
         // フィードバック送信先
         // 異常終了時などにエラーログ等とともに表示されます。
         
@@ -46,7 +66,7 @@ namespace OpenTween
         /// <summary>
         /// フィードバック送信先 (Twitter)
         /// </summary>
-        public const string FeedbackTwitterName = "@kim_upsilon";
+        public const string FeedbackTwitterName = "@OpenTween";
 
         /// <summary>
         /// FeedbackTwitterName のユーザー宛にエラーレポートの DM を送信可能であるか
@@ -62,7 +82,7 @@ namespace OpenTween
         /// <summary>
         /// 「ヘルプ」メニューの「(アプリ名) ウェブサイト」クリック時に外部ブラウザで表示する URL
         /// </summary>
-        public const string WebsiteUrl = "http://sourceforge.jp/projects/opentween/wiki/FrontPage";
+        public const string WebsiteUrl = "https://www.opentween.org/";
 
         /// <summary>
         /// 「ヘルプ」メニューの「ショートカットキー一覧」クリック時に外部ブラウザで表示する URL
@@ -70,7 +90,7 @@ namespace OpenTween
         /// <remarks>
         /// Tween の Wiki ページのコンテンツはプロプライエタリなため転載不可
         /// </remarks>
-        public const string ShortcutKeyUrl = "http://sourceforge.jp/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";
+        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";
 
         //=====================================================================
         // アップデートチェック関連
@@ -82,7 +102,7 @@ namespace OpenTween
         /// version.txt のフォーマットについては http://sourceforge.jp/projects/opentween/wiki/VersionTxt を参照。
         /// 派生プロジェクトなどでこの機能を無効にする場合は null をセットして下さい。
         /// </remarks>
-        public static readonly string VersionInfoUrl = "http://www.opentween.org/status/version.txt";
+        public static readonly string VersionInfoUrl = "https://www.opentween.org/status/version.txt";
 
         //=====================================================================
         // Twitter
@@ -95,15 +115,6 @@ namespace OpenTween
         public const string TwitterConsumerSecret = "prTAs2fqLv12nHxlMoLQZT8AkpZt0yYb8A7ktGS2VYeRj0TddS";
 
         //=====================================================================
-        // yfrog
-        // http://stream.imageshack.us/api/ から取得できます。
-
-        /// <summary>
-        /// yfrog APIキー
-        /// </summary>
-        public const string YfrogApiKey = "HIDP42ZO6314ee2218e2995662bad5ae320c32f1";
-
-        //=====================================================================
         // Foursquare
         // https://developer.foursquare.com/ から取得できます。
 
@@ -119,17 +130,17 @@ namespace OpenTween
 
         //=====================================================================
         // bit.ly
-        // https://bitly.com/a/account から取得できます。
+        // https://bitly.com/a/oauth_apps から取得できます。
 
         /// <summary>
-        /// bit.ly ログイン名
+        /// bit.ly Client ID
         /// </summary>
-        public const string BitlyLoginId = "opentween";
+        public const string BitlyClientId = "ddab8ec50f4459c315cbde9d923cf490923b6d2e";
 
         /// <summary>
-        /// bit.ly APIキー
+        /// bit.ly Client Secret
         /// </summary>
-        public const string BitlyApiKey = "R_76319a25e2420b8d2c42e812fe177d8b";
+        public const string BitlyClientSecret = "485c9d03dd264f8eeb4fc65d38e2762c4420cee7";
 
         //=====================================================================
         // TINAMI
@@ -141,13 +152,13 @@ namespace OpenTween
         public const string TINAMIApiKey = "4f48bb4858d36";
 
         //=====================================================================
-        // Windows Azure Marketplace
-        // https://datamarket.azure.com/account/keys から取得できます。
+        // Microsoft Translator API (Cognitive Service)
+        // https://www.microsoft.com/ja-jp/translator/getstarted.aspx から取得できます。
 
         /// <summary>
-        /// Windows Azure Marketplace アカウントキー
+        /// Translator Text API Subscription Key
         /// </summary>
-        public const string AzureMarketplaceKey = "UlOODyR2rVH0lfweya1VuY5KjE7L0ZjvQKQWlYgWsPw=";
+        public readonly static string TranslatorSubscriptionKey = "6c47d2ea341148bf856bdbfafd429db7";
 
         //=====================================================================
         // Imgur