• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

dev


Commit MetaInfo

修订版172c47e875ec007bf5e79c1b60f7679dc9d79059 (tree)
时间2013-06-11 10:44:49
作者ANIKITI <anikiti07@gmai...>
CommiterANIKITI

Log Message

UserStreams の list_user_(un)subscribed イベントを受信した際に未知のイベントとして扱われる問題を修正 (thx @Lolitapple!)

更改概述

差异

--- a/OpenTween/MyCommon.cs
+++ b/OpenTween/MyCommon.cs
@@ -214,9 +214,12 @@ namespace OpenTween
214214 ListCreated = 512,
215215 ListUpdated = 1024,
216216 Unfollow = 2048,
217+ ListUserSubscribed = 4096,
218+ ListUserUnsubscribed = 8192,
217219
218220 All = (None | Favorite | Unfavorite | Follow | ListMemberAdded | ListMemberRemoved |
219- Block | Unblock | UserUpdate | Deleted | ListCreated | ListUpdated | Unfollow),
221+ Block | Unblock | UserUpdate | Deleted | ListCreated | ListUpdated | Unfollow |
222+ ListUserSubscribed | ListUserUnsubscribed),
220223 }
221224
222225 public static string GetErrorLogPath()
--- a/OpenTween/Twitter.cs
+++ b/OpenTween/Twitter.cs
@@ -4460,6 +4460,8 @@ namespace OpenTween
44604460 new EventTypeTableElement("list_created", MyCommon.EVENTTYPE.ListCreated),
44614461 new EventTypeTableElement("list_updated", MyCommon.EVENTTYPE.ListUpdated),
44624462 new EventTypeTableElement("unfollow", MyCommon.EVENTTYPE.Unfollow),
4463+ new EventTypeTableElement("list_user_subscribed", MyCommon.EVENTTYPE.ListUserSubscribed),
4464+ new EventTypeTableElement("list_user_unsubscribed", MyCommon.EVENTTYPE.ListUserUnsubscribed),
44634465 };
44644466
44654467 public MyCommon.EVENTTYPE EventNameToEventType(string EventName)
@@ -4702,6 +4704,9 @@ namespace OpenTween
47024704 case "list_created":
47034705 evt.Target = "";
47044706 break;
4707+ case "list_user_subscribed":
4708+ case "list_user_unsubscribed":
4709+ return;
47054710 default:
47064711 MyCommon.TraceOut("Unknown Event:" + evt.Event + Environment.NewLine + content);
47074712 break;