dev
修订版 | 172c47e875ec007bf5e79c1b60f7679dc9d79059 (tree) |
---|---|
时间 | 2013-06-11 10:44:49 |
作者 | ANIKITI <anikiti07@gmai...> |
Commiter | ANIKITI |
UserStreams の list_user_(un)subscribed イベントを受信した際に未知のイベントとして扱われる問題を修正 (thx @Lolitapple!)
@@ -214,9 +214,12 @@ namespace OpenTween | ||
214 | 214 | ListCreated = 512, |
215 | 215 | ListUpdated = 1024, |
216 | 216 | Unfollow = 2048, |
217 | + ListUserSubscribed = 4096, | |
218 | + ListUserUnsubscribed = 8192, | |
217 | 219 | |
218 | 220 | 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), | |
220 | 223 | } |
221 | 224 | |
222 | 225 | public static string GetErrorLogPath() |
@@ -4460,6 +4460,8 @@ namespace OpenTween | ||
4460 | 4460 | new EventTypeTableElement("list_created", MyCommon.EVENTTYPE.ListCreated), |
4461 | 4461 | new EventTypeTableElement("list_updated", MyCommon.EVENTTYPE.ListUpdated), |
4462 | 4462 | new EventTypeTableElement("unfollow", MyCommon.EVENTTYPE.Unfollow), |
4463 | + new EventTypeTableElement("list_user_subscribed", MyCommon.EVENTTYPE.ListUserSubscribed), | |
4464 | + new EventTypeTableElement("list_user_unsubscribed", MyCommon.EVENTTYPE.ListUserUnsubscribed), | |
4463 | 4465 | }; |
4464 | 4466 | |
4465 | 4467 | public MyCommon.EVENTTYPE EventNameToEventType(string EventName) |
@@ -4702,6 +4704,9 @@ namespace OpenTween | ||
4702 | 4704 | case "list_created": |
4703 | 4705 | evt.Target = ""; |
4704 | 4706 | break; |
4707 | + case "list_user_subscribed": | |
4708 | + case "list_user_unsubscribed": | |
4709 | + return; | |
4705 | 4710 | default: |
4706 | 4711 | MyCommon.TraceOut("Unknown Event:" + evt.Event + Environment.NewLine + content); |
4707 | 4712 | break; |