// 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
{
- internal sealed class ApplicationSettings
+ /// <summary>
+ /// アプリケーション固有の情報を格納します
+ /// </summary>
+ /// <remarks>
+ /// OpenTween の派生版を作る方法は http://sourceforge.jp/projects/opentween/wiki/HowToFork を参照して下さい。
+ /// </remarks>
+ 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();
+
+ //=====================================================================
// フィードバック送信先
// 異常終了時などにエラーログ等とともに表示されます。
/// <summary>
/// フィードバック送信先 (Twitter)
/// </summary>
- public const string FeedbackTwitterName = "@kim_upsilon";
-
- //=====================================================================
- // Twitter
- // https://dev.twitter.com/ から取得できます。
-
- /// <summary>
- /// Twitter コンシューマーキー
- /// </summary>
- public const string TwitterConsumerKey = "ST6eAABKDRKTqbN7pPo2A";
- public const string TwitterConsumerSecret = "BJMEiivrXlqGESzdb8D0bvLfNYf3fifXRDMFjMogXg";
-
- //=====================================================================
- // Lockerz (旧Plixi)
- // https://admin.plixi.com/Api.aspx から取得できます。
+ public const string FeedbackTwitterName = "@OpenTween";
/// <summary>
- /// Lockerz APIキー
+ /// FeedbackTwitterName のユーザー宛にエラーレポートの DM を送信可能であるか
/// </summary>
- public const string LockerzApiKey = "91083b55-f8f9-4b91-a0b3-f999e2e45af2";
+ /// <remarks>
+ /// エラーレポートを DM で受け付ける場合は、フォロー外からの DM を受け付ける設定にする必要があります
+ /// </remarks>
+ public static readonly bool AllowSendErrorReportByDM = true;
//=====================================================================
- // Twitpic
- // http://dev.twitpic.com/apps/new から取得できます。
+ // Web サイト
/// <summary>
- /// Twitpic APIキー
+ /// 「ヘルプ」メニューの「(アプリ名) ウェブサイト」クリック時に外部ブラウザで表示する URL
/// </summary>
- public const string TwitpicApiKey = "bbc6449ceac87ef10c546e4a0ca06ef4";
-
- //=====================================================================
- // TwitVideo
- // http://twitvideo.jp/api_forms/ から申請できます。
+ public const string WebsiteUrl = "https://www.opentween.org/";
/// <summary>
- /// TwitVideo コンシューマキー
+ /// 「ヘルプ」メニューの「ショートカットキー一覧」クリック時に外部ブラウザで表示する URL
/// </summary>
- public const string TwitVideoConsumerKey = "7c4dc004a88e821b02c87a0cde2fa85c";
+ /// <remarks>
+ /// Tween の Wiki ページのコンテンツはプロプライエタリなため転載不可
+ /// </remarks>
+ 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";
//=====================================================================
- // yfrog
- // http://stream.imageshack.us/api/ から取得できます。
+ // アップデートチェック関連
/// <summary>
- /// yfrog APIキー
+ /// 最新バージョンの情報を取得するためのURL
/// </summary>
- public const string YfrogApiKey = "HIDP42ZO6314ee2218e2995662bad5ae320c32f1";
+ /// <remarks>
+ /// version.txt のフォーマットについては http://sourceforge.jp/projects/opentween/wiki/VersionTxt を参照。
+ /// 派生プロジェクトなどでこの機能を無効にする場合は null をセットして下さい。
+ /// </remarks>
+ public static readonly string VersionInfoUrl = "https://www.opentween.org/status/version.txt";
//=====================================================================
- // Bing
- // http://www.bing.com/toolbox/bingdeveloper/ から取得できます。
+ // Twitter
+ // https://dev.twitter.com/ から取得できます。
/// <summary>
- /// Bing AppId
+ /// Twitter コンシューマーキー
/// </summary>
- public const string BingAppId = "ABD3DFF1AB47F3899A2203E0C5873CBE3E14E8D3";
+ public const string TwitterConsumerKey = "zIoJPq3FsuViPTAs89FetDHYz";
+ public const string TwitterConsumerSecret = "prTAs2fqLv12nHxlMoLQZT8AkpZt0yYb8A7ktGS2VYeRj0TddS";
//=====================================================================
// Foursquare
//=====================================================================
// 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
/// TINAMI APIキー
/// </summary>
public const string TINAMIApiKey = "4f48bb4858d36";
+
+ //=====================================================================
+ // Microsoft Translator API (Cognitive Service)
+ // https://www.microsoft.com/ja-jp/translator/getstarted.aspx から取得できます。
+
+ /// <summary>
+ /// Translator Text API Subscription Key
+ /// </summary>
+ public readonly static string TranslatorSubscriptionKey = "6c47d2ea341148bf856bdbfafd429db7";
+
+ //=====================================================================
+ // Imgur
+ // https://api.imgur.com/oauth2/addclient から取得できます
+
+ /// <summary>
+ /// Imgur Client ID
+ /// </summary>
+ public readonly static string ImgurClientID = "a5fff36fb83568c";
+
+ /// <summary>
+ /// Imgur Client Secret
+ /// </summary>
+ public readonly static string ImgurClientSecret = "af5d668a9aa83b34a8f0f735e12073edafbc9a5d";
+
+ //=====================================================================
+ // Mobypicture
+ // http://www.mobypicture.com/apps/my から取得できます
+
+ /// <summary>
+ /// Mobypicture Developer Key
+ /// </summary>
+ public readonly static string MobypictureKey = "quPWTX0UrPHxqdH7";
+
+ //=====================================================================
+ // Tumblr
+ // https://www.tumblr.com/oauth/apps から取得できます
+
+ /// <summary>
+ /// Tumblr OAuth Consumer Key
+ /// </summary>
+ public readonly static string TumblrConsumerKey = "Nsk62V6wMIqVNbiGyN0g3aDGBlgU7Fcb9GJ8Se0z2MUDHAY15l";
}
}