dev
Révision | d25c36875b7deb18477f1f855facbbea87126002 (tree) |
---|---|
l'heure | 2013-02-23 19:03:24 |
Auteur | Kimura Youichi <kim.upsilon@bucy...> |
Commiter | Kimura Youichi |
UserStreamsのunfollowイベントでエラーが起きていたのを修正
unfollow イベントに未対応であったため、未知のイベントとしてエラーログを吐き出していた模様。
@@ -213,9 +213,10 @@ namespace OpenTween | ||
213 | 213 | Deleted = 256, |
214 | 214 | ListCreated = 512, |
215 | 215 | ListUpdated = 1024, |
216 | + Unfollow = 2048, | |
216 | 217 | |
217 | 218 | All = (None | Favorite | Unfavorite | Follow | ListMemberAdded | ListMemberRemoved | |
218 | - Block | Unblock | UserUpdate | Deleted | ListCreated | ListUpdated), | |
219 | + Block | Unblock | UserUpdate | Deleted | ListCreated | ListUpdated | Unfollow), | |
219 | 220 | } |
220 | 221 | |
221 | 222 | public static void TraceOut(Exception ex, string Message) |
@@ -3,6 +3,7 @@ | ||
3 | 3 | ==== Ver 1.0.9-beta2(2013/xx/xx) |
4 | 4 | * CHG: APIレートリミット関連の実装を修正 |
5 | 5 | * FIX: アイコンキャッシュの破棄時にエラーが出ることがある問題を修正 |
6 | + * FIX: UserStreamsのunfollowイベントでエラーが起きていたのを修正 | |
6 | 7 | |
7 | 8 | ==== Ver 1.0.9-beta1(2013/02/08) |
8 | 9 | * ベータ版です |
@@ -4250,6 +4250,7 @@ namespace OpenTween | ||
4250 | 4250 | new EventTypeTableElement("deleted", MyCommon.EVENTTYPE.Deleted), |
4251 | 4251 | new EventTypeTableElement("list_created", MyCommon.EVENTTYPE.ListCreated), |
4252 | 4252 | new EventTypeTableElement("list_updated", MyCommon.EVENTTYPE.ListUpdated), |
4253 | + new EventTypeTableElement("unfollow", MyCommon.EVENTTYPE.Unfollow), | |
4253 | 4254 | }; |
4254 | 4255 | |
4255 | 4256 | public MyCommon.EVENTTYPE EventNameToEventType(string EventName) |
@@ -4416,6 +4417,8 @@ namespace OpenTween | ||
4416 | 4417 | } |
4417 | 4418 | evt.Target = ""; |
4418 | 4419 | break; |
4420 | + case "unfollow": | |
4421 | + return; | |
4419 | 4422 | case "favorite": |
4420 | 4423 | case "unfavorite": |
4421 | 4424 | evt.Target = "@" + eventData.TargetObject.User.ScreenName + ":" + WebUtility.HtmlDecode(eventData.TargetObject.Text); |